News:

Looking for documentation? Take a look on our wiki

Main Menu

button add to cart must not display when quantity stock is 0

Started by TAIWAR, July 07, 2014, 12:34:55 PM

Previous topic - Next topic

TAIWAR

VM 266
I have use this toipic to add button "add to cart" on liste category :
http://forum.virtuemart.net/index.php?topic=101451.0

But the problem is that it always display the  button add to cart and minus plus, even if the quantity in stock for the product is 0.
So I need to know how can I not display this button if there is no stock or replace this button by "not in stock" for example  ?

thank you.


jenkinhill

There is no stock/product availability check in the category layout, as add to cart is not part of the default VM2 templating. So either add some code to check stock or wait to use VM3 which does include add to cart in categories with stock checks for category and productdetails layouts.
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