Tuesday, April 2, 2013

How to show product availability as image in product page of Virtuemart 2

To show value of product availability as image in product page of virtuemart 2 use this php code :
<?php echo JHTML::image(JURI::root().VmConfig::get('assets_general_path').'images/availability/'.$this->product->product_availability, $this-
>product->product_availability, array('class' => 'availability')); ?>

See here all other fields of product page in virtuemart 2 : click here
Disqus Comments