Get Quantity Back cart<=>product

This commit is contained in:
Michael RICOIS 2017-09-20 14:54:58 +02:00
parent fca88bee36
commit 969b968069

View File

@ -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);
}