News:

Support the VirtueMart project and become a member

Main Menu

Remove Category Name in Cart URL

Started by MAD King, September 25, 2018, 18:55:50 PM

Previous topic - Next topic

MAD King

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
Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

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.
Joomla! 4.4.5
VirtueMart 4.2.12 11012

hellorain

Hello,

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

and... it works for me.


Best Regards,
hellorain.
Raincreatives - Virtuemart & Mobile Commerce Experts

MAD King

Thanks, but I am wonder why it is not already implemented?
Joomla! 4.4.5
VirtueMart 4.2.12 11012