Slogan LiveZilla Live Help

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.

Comments

Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
button_logo_portfolio
button_quote
button_testimonials

Subscribe Tutorials

Enter your email address:

Paypal Donation

Enter Amount:

Subscribe Joomla Tutorials Newsletter

Name:

Email:


Enter your email address: