Jump to content

How To Add A Gift From The Controller?


lokai

Recommended Posts

Hello everybody
 
I need to know how to add a product gift.
 
Actually, in OrderController override i have this:
if (...){
$Cart = $this->context->cart;
		$Cart->updateQty($quantity, $id_product, $id_product_attribute = null, $id_customization = false, $operator = 'up', $id_address_delivery = 0, $shop = null, $auto_add_cart_rule = true);}

But I need this product to be a gift or to be priced 0 without cart rules, any clue?

 

Thanks in advance

 

Edited by lokai (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...