Stock level

  • Posts: 234
  • Thank you received: 4
12 years 3 hours ago #76946

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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 40 minutes ago #77043

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:

						echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
By:
						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.062 seconds
Powered by Kunena Forum