News:

Looking for documentation? Take a look on our wiki

Main Menu

Continue Shopping - 404 Redirect

Started by urzh12, June 09, 2016, 02:25:11 AM

Previous topic - Next topic

urzh12

I'm using virtue mart bundled with the Horme 3 Joomla template. My "continue shopping" button on any page goes to a 404 redirect page everytime. I have only recently tested this so I BELIEVE this was never work. When it redirects, it is showing this URL localhost/index.php?option=com_virtuemart&view=category&virtuemart_category_id=7&Itemid=101

I read that this is due to an item ID not populating correctly in VirtueMart?

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

urzh12


MagikCommerce

Hello,

You can debug code and customize continue shopping link as expected in following file.

      - /components/com_virtuemart/controllers/cart.php.

There is a following function
     function public function addJS() with code as $continue_link = JRoute::_('index.php?option=com_virtuemart' . $categoryLink);

Thanks

urzh12

Thank you. is this normal localhost browsing behavior though? I just want to make sure I'm actually having an issue

urzh12

What would I replace in the function to just have "continue shopping" button return to homepage?

MagikCommerce

Quote from: urzh12 on June 13, 2016, 15:22:21 PM
What would I replace in the function to just have "continue shopping" button return to homepage?


$continue_link = JRoute::_('index.php?option=com_virtuemart' . $categoryLink);

replace with
$continue_link = JURI::base();

urzh12