Fix for MPC discounted, bad if statement
This commit is contained in:
@@ -396,6 +396,8 @@ class B2BPayments extends PaymentModule implements PrestaShop\PrestaShop\Core\Mo
|
||||
$id_product = (int)$embeddedProductAttributes['id_product'];
|
||||
$prices = $this->calculateMPC($id_product, $id_product_attribute);
|
||||
$this->smarty->assign([
|
||||
'mpc_old_float' => $prices['old_price'],
|
||||
'mpc_new_float' => $prices['new_price'],
|
||||
'mpc_old' => $this->context->getCurrentLocale()->formatPrice($prices['old_price'], $this->context->currency->iso_code),
|
||||
'mpc_new' => $this->context->getCurrentLocale()->formatPrice($prices['new_price'], $this->context->currency->iso_code)
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user