Jump to content

Function updateQty() $id_customization


Recommended Posts

Bonjour à tous,

J'aimerais savoir comment fonctionne la function updateQty(). J'arrive bien à ajouter un article sans aucun paramètre, mais j'aimerais savoir comment remplir par exemple deux champs textes du produit pour ajouter l'article au panier.

$qty = 1;

$Cart = $this->context->cart;
$Cart->updateQty($qty, 9, $id_product_attribute = null, $id_customization = false, $operator = 'up', $id_address_delivery = 0, $shop = null, $auto_add_cart_rule = true);
        

Merci!

Edited by MyTheValentinus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...