Show Continue Shopping Button on Cart Page
For people using Virtuemart can be sometimes confusing!
Like for example, when you add a product to your cart, then the next page which comes, shows CONTINUE SHOPPING button.
But when you click on VIEW CART on your Cart Module, then on the next page, the CONTINUE SHOPPING button doesnt exist. So, here is a little hack to show them on all cart pages.
Â
Â
Make a copy of, then edit this file:
components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php
Around
line 49 you should see this:
Code:
Â
if ($cart["idx"]) {
?>
<div align="center">
<?php
if( $continue_link != '') {
?>
<a href="/<?php echo $continue_link ?>" class="continue_link">
<?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
</a>
<?php
}
if (!defined('_MIN_POV_REACHED')) { ?>
Â
Â
Â
Just before the last line we're going to add 7 lines so it looks like this afterwards:

Code:
Â
if ($cart["idx"]) {
?>
<div align="center">
<?php
if( $continue_link != '') {
?>
<a href="/<?php echo $continue_link ?>" class="continue_link">
<?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
</a>
<?php
}
else {
?>
<a href="javascript:history.back();" class="continue_link">
<?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
</a>Â Â Â Â Â
<?php
}
if (!defined('_MIN_POV_REACHED')) { ?>
Â
Â
Save the file and test it.





joomlaservices
joomlaservices
394295112
joomlaservices
+91-9853790816
joomlaservices

Comments