Author Topic: Remove Category Name in Cart URL  (Read 199 times)

MAD King

  • Jr. Member
  • **
  • Posts: 325
  • VirtueMart Version: Latest
Remove Category Name in Cart URL
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Remove Category Name in Cart URL
« Reply #1 on: September 25, 2018, 20:26:23 pm »
Ask Stan .. that's a OPC url
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

  • Jr. Member
  • **
  • Posts: 325
  • VirtueMart Version: Latest
Re: Remove Category Name in Cart URL
« Reply #2 on: September 25, 2018, 20:48:02 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.

hellorain

  • Jr. Member
  • **
  • Posts: 102
    • Raincreatives - Virtuemart & Mobile Commerce Experts
  • Skype Name: support.raincreatives
Re: Remove Category Name in Cart URL
« Reply #3 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.
Raincreatives - Virtuemart & Mobile Commerce Experts

MAD King

  • Jr. Member
  • **
  • Posts: 325
  • VirtueMart Version: Latest
Re: Remove Category Name in Cart URL
« Reply #4 on: September 27, 2018, 03:12:19 am »
Thanks, but I am wonder why it is not already implemented?