Get Quantity Back cart<=>product
This commit is contained in:
parent
fca88bee36
commit
969b968069
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user