Fixed the undefined variable in payment module
This commit is contained in:
@@ -627,11 +627,11 @@ abstract class PaymentModuleCore extends Module
|
||||
$used = array('incl' => 0, 'excl' => 0);
|
||||
if (!isset($cart_rules[$key]['remaining'])) {
|
||||
$cart_rules[$key]['remaining'] = $cart_rule['obj']->reduction_amount;
|
||||
if ((int) $cart_rule['obj']->reduction_currency !== (int) $cart->id_currency) {
|
||||
if ((int) $cart_rule['obj']->reduction_currency !== (int) $this->context->cart->id_currency) {
|
||||
$cart_rules[$key]['remaining'] = Tools::convertPriceFull(
|
||||
$cart_rule['obj']->reduction_amount,
|
||||
new Currency($cart_rule['obj']->reduction_currency),
|
||||
new Currency($cart->id_currency)
|
||||
new Currency($this->context->cart->id_currency)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user