Лучший Ответ RobertCh , 16 November 2015 - 19:14
I think it should be:
public function isValid()
{
$totalCount = $this->_order->getTotalCount();
if ($totalCount > 0 && $this->_getValue() > $totalCount) {
$message = JText::sprintf('JBZOO_ELEMENT_VALIDATOR_MINQUANTITY_ERROR', $this->_getValue());
throw new JBCartElementValidatorException($message);
}
}
Перейти к сообщению










