/classes/Cart.php
if ($cart_rule['obj']->reduction_percent > 0 || $cart_rule['obj']->reduction_amount > 0)
меняем на
if ($cart_rule['obj']->reduction_percent != 0 || $cart_rule['obj']->reduction_amount > 0)
/classes/CartRule.php
'reduction_percent' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPercentage'),
меняем на
'reduction_percent' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'),
далее
elseif ($cart_rule['reduction_percent'] > 0)
меняем на
elseif ($cart_rule['reduction_percent'] > -100)
далее
if ($this->reduction_percent && $this->reduction_product > 0)
меняем на
if ($this->reduction_percent && $this->reduction_product > -100)
/controllers/admin/AdminCartRulesController.php
if ((float)Tools::getValue('reduction_percent') < 0 || (float)Tools::getValue('reduction_percent') > 100)
меняем на
if ((float)Tools::getValue('reduction_percent') < -100 || (float)Tools::getValue('reduction_percent') > 100)
/admin/themes/default/template/controllers/cart_rules/actions.tpl
Все строчки
getFieldValue($currentObject, 'reduction_percent')|floatval > 0
меняем на
getFieldValue($currentObject, 'reduction_percent')|floatval > -100