Hi,
Are you sure it is working. Cause I tried with default view of showcart and it was same. Adding same variant again with quantity of 1 to wishlist would give not on sale anymore. Looked into code and I see this:
$stockText = "<span class='hikashop_red_color'>".JText::_('NOT_ENOUGH_STOCK')."</span>";
but for unknown reason it dosesnt work for me....I also checked language file and everything is fine, no override and default is: Not enough in stock
I think this is the code responsible for this and it is same as in default hikashop view file:
<?php
$app = JFactory::getApplication();
$config =& hikashop_config();
$i = 1;
$k = 1;
$total_quantity = 0;
if(!empty($this->rows)){
$productClass = hikashop_get('class.product');
$group = $this->config->get('group_options',0);
foreach($this->rows as $cart){
if($group && $cart->cart_product_option_parent_id) continue;
if(!@$cart->hide){
$total_quantity += $cart->cart_product_quantity;
$productClass->addAlias($cart);
$quantityLeft = $cart->product_quantity - $cart->cart_product_quantity;
$inStock = 1;
if(($cart->product_quantity - $cart->cart_product_quantity) >= 0 || $cart->product_quantity == -1){
if($cart->product_quantity == -1)
$stockText = "<span class='hikashop_green_color'>".JText::sprintf('X_ITEMS_IN_STOCK',JText::_('HIKA_UNLIMITED'))."</span>";
else
$stockText = "<span class='hikashop_green_color'>".JText::sprintf('X_ITEMS_IN_STOCK',$cart->product_quantity)."</span>";
}else{
if($cart->product_code != @$cart->cart_product_code){
$stockText = "<span class='hikashop_red_color'>".JText::_('HIKA_NOT_SALE_ANYMORE'). "</span>";
}else{
$stockText = "<span class='hikashop_red_color'>".JText::_('NOT_ENOUGH_STOCK')."</span>";
}
$inStock = 0;
}
if($k ==1)$k = 0;else $k =1;
?>
So what could be the problem?
Regards