Author Topic: Continue Shopping - 404 Redirect  (Read 2510 times)

urzh12

  • Beginner
  • *
  • Posts: 27
  • A beginner
Continue Shopping - 404 Redirect
« on: June 09, 2016, 02:25:11 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Continue Shopping - 404 Redirect
« Reply #1 on: June 09, 2016, 10:37:41 am »
are u testing on localhost?
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

urzh12

  • Beginner
  • *
  • Posts: 27
  • A beginner
Re: Continue Shopping - 404 Redirect
« Reply #2 on: June 10, 2016, 02:41:45 am »
yes..

MagikCommerce

  • Beginner
  • *
  • Posts: 16
  • A beginner
    • http://www.magikcommerce.com
Re: Continue Shopping - 404 Redirect
« Reply #3 on: June 10, 2016, 16:10:51 pm »
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

  • Beginner
  • *
  • Posts: 27
  • A beginner
Re: Continue Shopping - 404 Redirect
« Reply #4 on: June 13, 2016, 15:17:07 pm »
Thank you. is this normal localhost browsing behavior though? I just want to make sure I'm actually having an issue

urzh12

  • Beginner
  • *
  • Posts: 27
  • A beginner
Re: Continue Shopping - 404 Redirect
« Reply #5 on: June 13, 2016, 15:22:21 pm »
What would I replace in the function to just have "continue shopping" button return to homepage?

MagikCommerce

  • Beginner
  • *
  • Posts: 16
  • A beginner
    • http://www.magikcommerce.com
Re: Continue Shopping - 404 Redirect
« Reply #6 on: June 13, 2016, 16:42:57 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

  • Beginner
  • *
  • Posts: 27
  • A beginner
Re: Continue Shopping - 404 Redirect
« Reply #7 on: June 13, 2016, 20:01:55 pm »
Thanks - that worked.