VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: MAD King on September 25, 2018, 18:55:50 PM

Title: Remove Category Name in Cart URL
Post by: MAD King on September 25, 2018, 18:55:50 PM
Hello,

I am not sure how to disable this and if it ven can be disabled, but I am getting a funny URL when in cart.
When I am adding some items from categories into the cart I am getting one of the categories shown in the cart's URL.

Example:

shop-gadgets/phones/cart.html?op_redirected=1&lang=en

Can this be removed/disabled?

Thanks
Title: Re: Remove Category Name in Cart URL
Post by: GJC Web Design on September 25, 2018, 20:26:23 PM
Ask Stan .. that's a OPC url
Title: Re: Remove Category Name in Cart URL
Post by: MAD King on September 25, 2018, 20:48:02 PM
Quote from: GJC Web Design on September 25, 2018, 20:26:23 PM
Ask Stan .. that's a OPC url
No, he says it is coming from a plugin.
Since it is VM related I thought it is coming from a VM plugin.

Quote Stan:
Quote....the categories is shown because it's set up in modules per Itemid / menu configuration in your joomla.
Title: Re: Remove Category Name in Cart URL
Post by: hellorain on September 26, 2018, 04:41:41 AM
Hello,

I comment in file: com_virtuemart/router.php
               
//$categoryRoute = $helper->getCategoryRoute($query['virtuemart_category_id']);

and... it works for me.


Best Regards,
hellorain.
Title: Re: Remove Category Name in Cart URL
Post by: MAD King on September 27, 2018, 03:12:19 AM
Thanks, but I am wonder why it is not already implemented?