Hi,
I' have a different issue with "1 item in stock". I have a multilingual site and for some reason the "1 item in stock" is showing on the non English site as well. All other values works fine and I get the translation o.k. but 1 will always show in English
Tried to play with the code and add a special JText for 1 item but that didn't work either:
if($this->row->product_quantity==1){
if(JText::_('X_ITEM_IN_STOCK')=='X_ITEM_IN_STOCK'){
$text = JText::_('1_ITEMS_IN_STOCK');
}else{
$text = JText::sprintf('X_ITEM_IN_STOCK');
}
}else{
$text = JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity);
}
echo '<span class="hikashop_product_stock_count">'.$text.'<br/></span>';
if($config->get('button_style','normal')=='css'){
echo '<br />';
}
Checked maybe I have a template override but no.
Can you please help?[/strike]
UPDATE
Just after posting this I've noticed the little S that was added to the language constant and found out that this X_ITEM_IN_STOCK was missing from my language files. Problem solved thank you very much