Hi,
You can already implement such feature in your product page.
Thanks to view override, you can edit the view "product | quantity".
In this view, the quantity is display like that:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
So you can remove it and display in image depending the value of "$this->row->product_quantity".
In the view there are three section.
The first when the product quantity is unlimited
if($this->row->product_quantity==-1){
/* ... */
}
The second when the product quantity have a value
}elseif($this->row->product_quantity>0){
?>
<div class="hikashop_product_stock">
<?php
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
/* ... */
}
And the last one, when the product does not have stock.
}else{
?>
<div class="hikashop_product_no_stock">
<?php
echo JText::_('NO_STOCK');
/* ... */
Regards,