We are only using woocommerce as a shopping backend. So our whole communication with the system is over api.
I am not really sure your solution would work for us.
Thanks for your help anyway.
Thanks for you response. I think we missunderstood.
I want a free product to be added to the cart, when I enter the coupon.
There don’t have to be any other product in the cart.
So the user should be able to add the coupon and get the product for free. We want to do that as some kind of promotion.
Coupon for free product:
Alright it works.