- Posts: 234
- Thank you received: 4
Stock level
13 years 10 months ago #76946
by mad-q
Stock level was created by mad-q
Hello, is there a way in which that when stock levels fall below say 5 that rather than saying 4 it can say "less than 5" or "call to check". It is just that if we have our stock out then a customer will (we hope) not be upset?
Yours
Iain
Yours
Iain
Please Log in or Create an account to join the conversation.
13 years 10 months ago #77043
by Xavier
Replied by Xavier on topic Stock level
Hi,
The way to do that is editing the view "product / quantity" and check the stock quantity. If the stock is under "5" change the text displayed.
Try to replace the line:
By:
The way to do that is editing the view "product / quantity" and check the stock quantity. If the stock is under "5" change the text displayed.
Try to replace the line:
Code:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
Code:
if($this->row->product_quantity<5)
echo '<span class="hikashop_product_stock_count">'.JText::_('Less than 5 products').'</span><br/>';
else
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
The following user(s) said Thank You: mad-q
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds