Лучший Ответ SmetDenis , 21 March 2016 - 11:26
Попробуйте изменить код элемента метода inStock() в файле:
\media\zoo\applications\jbuniversal\cart-elements\price\balance\balance.phpна следующий:
/**
* Check if item in stock
* @param $quantity
* @return bool
*/
public function inStock($quantity)
{
if (!$this->_isUseStock()) {
return true;
}
$quantity = $this->app->jbvars->number($quantity);
$inStock = $this->getValue();
if ($inStock == self::COUNT_AVAILABLE_YES) {
return true;
} elseif ($inStock == self::COUNT_AVAILABLE_NO) {
return true;
} elseif (($inStock == self::COUNT_REQUEST)) {
return true;
} elseif ($inStock >= $quantity) {
return true;
}
return false;
}
Перейти к сообщению










