News:

Looking for documentation? Take a look on our wiki

Main Menu

How to show Cart button in cart module ALWAYS?

Started by amymattian, December 05, 2019, 10:23:14 AM

Previous topic - Next topic

amymattian

Hi,
is there a way to ALWAYS show the CART Button in the shopping cart module, even if there is no products in the cart?

NOw the Cart button shows up ONLY when there is a product in the cart. We would like the button show ALWAYS. Is there a way to do this?

- Anne

jenkinhill

For the default VM cart module I used this in an override of  modules/mod_virtuemart_cart/tmpl/defult.php 
Find:

<?php if ($data->totalProduct) echo  $data->cart_show?>


Change to:

<?php echo  $data->cart_show?>


Quick and dirty, probably not correct code but it worked.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum