Hi,
Again I need little help with php.
I want to display delivery time on product page and hide it if product sold out with custom message.
After reading some topics I have added this code:
<div class="hikashop__custom_delivery">
<?php
if($this->row->product_quantity > 0)
echo ' <span class="hikashop_product_deliver_time pull-right">'.JText::_('CUSTOM_DELIVERY_TIME').'</span><span class="hikashop_product_deliver pull-right">'.JText::_('CUSTOM_DELIVERY').'</span>';
else
echo ' <span class="hikashop_product_soldout_message">'.JText::_('CUSTOM_SOLDOUT').'</span>';
?>
</div>
So if item stock is 1 it will display message ( 'CUSTOM_DELIVERY_TIME, CUSTOM_DELIVERY ) if its sold out it will display other message ( CUSTOM_SOLDOUT ). That's OK.
However if item stock is more then 1 it will not display what I need. How can I have to display message ( 'CUSTOM_DELIVERY_TIME, CUSTOM_DELIVERY ) if stock is 1 or more and display ( CUSTOM_SOLDOUT ) if product is sold out?
Could anyone help me to fix it?
Kind Regards