Hi Nicolas,
Thanks for your answer.
That code dont seem to change anything on the site. If i set the quantity to 1014 on a product the site shows available products 1014.
<div class="hikashop_product_stock">
<?php
if($this->row->product_quantity==1){
if(JText::_('X_ITEM_IN_STOCK')=='X_ITEM_IN_STOCK'){
$text = JText::sprintf('X_ITEMS_IN_STOCK',max($this->row->product_quantity-1000,0));
}else{
$text = JText::sprintf('X_ITEM_IN_STOCK',$this->row->product_quantity);
}
}else{
$text = JText::sprintf('X_ITEM_IN_STOCK',$this->row->product_quantity);
}
But if i instead changes this line
$text = JText::sprintf('X_ITEM_IN_STOCK',$this->row->product_quantity);
to
$text = JText::sprintf('X_ITEM_IN_STOCK',max($this->row->product_quantity-1000,0));
the page displays the correct quantity of some of the products, but not all.
Any ideas?
Regards,
Henrik