I am trying to add a product to PrestaShop cart programmatically. I use the updateQty()
together with the quantity to update and the product id. However when I add the product to cart, it automatically adds 10 quantities of product. Am I using it the wrong way around?
I am using the actionCartSave
hook in my custom module.
I have tried this:
public function hookActionCartSave($params){
$cart = $params['cart'];
$cart->updateQty(1, 408);
}