Repository Forums Support WooCommerce Extended Coupon Features PRO add free product by coupon – without other products in the cart!

Topic Resolution: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3379
    jens.praekelt
    Participant

    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?

    Thanks,
    Jens

    #3380
    Soft79
    Keymaster

    Can you send me an url to the free product’s page and the coupon code?

    #3383
    jens.praekelt
    Participant
    #3384
    Soft79
    Keymaster

    It works fine on my end:

    https://imghost.io/image/QFgvM

    What are the exact steps to reproduce the issue?

    #3385
    jens.praekelt
    Participant

    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.

    #3386
    Soft79
    Keymaster

    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

    #3387
    jens.praekelt
    Participant

    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.

    #3388
    Soft79
    Keymaster

    I don’t know how you implemented the API, but try this:

    1. Add the (free) product
    2. Apply the coupon

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.