News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VirtueMart 2.6.0a

Started by davidmf, May 15, 2014, 18:00:20 PM

Previous topic - Next topic

davidmf

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,
;)

JoomTut

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 ?>
http://www.joomtut.com - How to Joomla!
Joomla! & VirtueMart Pro Support.
http://www.joomtut.com/joomla-clip.html - 14 steps to creating a Joomla! website with video clip tutorials