3 hours ago, Prestafan1234 said:I got the original code to work, but I had to remove this line:
(int) $id_customization,
It seems to work just as desired now, it is possible to add 1 product to the cart, even accross different products, which is what I need. I will just remove the arrows next to the quantity, as they do not work (it does not allow to add more than one product even if you move the count up)
try using (int)$id_customization, there's no space after bracket in latest PS version.
After you got rid of this value check if changes work with product combinations as this value is afaik responsible for additional product attributes.
Unless you don't sell product with combinations.
Second thing is that you should check if updateQty function doesn't use $cartProductQuantity elsewhere, as changes use it's own $getCountInCart instead of $cartProductQuantity. Just switch it and check. I don't know the differences in latest PS version but you should notice what's going on. Try enabling debug mode.