Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › add free product by coupon – without other products in the cart!
I am trying to add a product from the store for free by a coupon code.
Unfortunately when I enter the coupon code, the code gets applied, but
the free product does not get added to the cart/order.
Is what I am trying to do even possible with your solution?
Also I am going to appy coupons via woocommerce API-requests.
Would that work?
Can you send me an url to the free product’s page and the coupon code?
Coupon for free product:
It works fine on my end:
What are the exact steps to reproduce the issue?
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.
It is not possible to add a coupon to an empty cart; so that won’t work.
What you can do is create a coupon with 100% discount for the single product (limit discount to 1 item!) and apply the coupon using an url, like this: http://ec2-18-195-39-108.eu-central-1.compute.amazonaws.com/warenkorb/?add-to-cart=557&apply_coupon=free-elgato-hd-pro
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.
I don’t know how you implemented the API, but try this:
1. Add the (free) product
2. Apply the coupon