VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: davidmf on May 15, 2014, 18:00:20 PM

Title: VirtueMart 2.6.0a
Post by: davidmf on May 15, 2014, 18:00:20 PM
Cheers,

I need to show in product details the number of product units available to buy, but only if there are any available.
By default I can only show a image when the stock is zero.

Thanks,
;)
Title: Re: VirtueMart 2.6.0a
Post by: JoomTut on May 16, 2014, 11:36:00 AM
Use this code for category page:
<?php echo $product->product_in_stock ?>

Use this code for product page:
<?php echo $this->product->product_in_stock ?>