diff --git a/www/override/controllers/front/ProductController.php b/www/override/controllers/front/ProductController.php index b827647a..dca52a3a 100644 --- a/www/override/controllers/front/ProductController.php +++ b/www/override/controllers/front/ProductController.php @@ -125,6 +125,12 @@ class ProductController extends ProductControllerCore $impact = Product::getConfiguratorSelectedPriceTotal($this->product->id, $id_configurator); } + // Get quantity if product is in cart + $result = $this->context->cart->containsProduct($this->product->id, 0, 0, 0, $id_configurator); + if ($result) { + $this->context->smarty->assign('quantityBackup', $result['quantity']); + } + $this->context->smarty->assign('impactPrice', $impact); }