How to add the continue shopping button to the Virtuemart Module Shopping Cart screen.


Continue shopping button virtuemart spanish

The "continue shopping" button appears on the shopping cart screen of virtuemart for joomla normally, but if you click the link to the shopping cart via the Joomla Virtuemart Module, it's not there. Here is how to put it back.


Note. This is for Virtuemart 1.1.9 but if you find the problem on another version, you may be able to solve it the same way. It makes no difference which Joomla version you are running (you should have at least 1.5.26 really).

To put the continue shopping button back, you have to edit a file:
Components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php

Note. If you have a custom Virtuemart template, you would not look in the "default" folder, this would instead be the folder of your custom template.

Edit the shop.cart.tpl.php file.

Change:


<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
    }


To this:


    <?php
            ?>

         <a href="/<?php echo $continue_link ?>" class="continue_link">
             <?php echo $VM_LANG->_('PHPSHOP_CONTINUE_SHOPPING'); ?>
         </a>
        <?php



What I have done is simple removed the condition. What I mean is, before it only showed the continue shopping button under certain situations. I don't care what the condition was, I want the button to always be displayed so I remove the "if" condition.

There are other ways to get the continue shopping button on the virtuemart for Joomla shopping cart page when you click through the virtuemart module, but this seamed to me the quickest and easiest.


Posted in Joomla