FIX button continue shopping redirect to same page

Support desk for Multipurpose Quark Theme
GK User
Tue Jan 31, 2017 3:48 pm
Hi!

Had big problem with NEWS pro 5 module.
When adding to cart there is a popup button that has continue shopping and end shopping so when you click continue shopping the page redirects you to default Virtuemart store, and that is what client does not want, so here is a fix to the button continue shopping that does not redirects to default store, it just reload the same page.

Find file: padded.php

/public_html/components/com_virtuemart/views/cart/tmpl

Finde code line 23:

Code: Select all
echo '<a class="continue_link" href="' . $this->continue_link . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';


edit like this one
Code: Select all
echo '<a class="continue_link" href="javascript:document.location.reload(true)"' . $this->continue_link . '" >' . vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';


Hope that helps to someone...
;)
User avatar
Junior Boarder

teitbite
Sun Feb 05, 2017 10:27 am
Hi

Thank You for shearing, but this involves changes to Virtuemart component core files. This code is good, but file should be moved to template's /html/com_virtuemart/cart/ folder to eliminate overwriting files during Virtuemart update.
User avatar
Moderator


cron