Gift is not removed when adding coupon
-
You closed this topic from 10 months ago, but this is still an issue: https://wordpress.org/support/topic/gift-still-working-with-discount/
If I enter a coupon that lowers the cart subtotal below the threshold I’ve defined in the gift category, the gift is not removed from the cart.
-
This topic was modified 8 years, 2 months ago by
jeppe.
The page I need help with: [log in to see the link]
-
This topic was modified 8 years, 2 months ago by
-
Hi @jeppeskovsgaard,
We didn’t close that ticket (its still pinned to the top – so everyone can see it).– right now Giftable doesn’t support coupon codes, we have a plan to release an update (that will work with coupon codes) – in next few months.
– you can create a custom function that will remove GIFT and GIFTABLE from the page with: woocommerce_applied_coupon, woocommerce_coupons_enabled filters when the coupon code is applied ( WC()->cart->applied_coupons ).
Okay. I’ll try that. Thanks!
I hope you’ll make an update soon. 🙂
Hi @jeppeskovsgaard,
Could you just share how many “Gifts” are you having?
– how many coupons?
– do you have one or a lot of Gift categories?If we get time, maybe we could create small function/plugin that will remove GIFT X if a Coupon X is used, please share as much as you can with us via email support [at/] decom.ba
-
This reply was modified 8 years, 2 months ago by
DecomTeam.
Hi @jeppeskovsgaard,
If you have just 1 coupon code We created this code that you can edit – its working with coupon code coupon01 and it will remove all gifts you define in items_id_to_remove.If you get any issues, bugs send it please to us – so we can check/fix it,
I hope it helps.-
This reply was modified 8 years, 2 months ago by
DecomTeam.
Hello @decomteam
I have:
- 1 gift category
- 25 coupons (more being added weekly/monthly by the marketing department)
- 12 gifts
Thanks a lot for the gist. I really appreciate that. However I have 25 coupons. I’m not a PHP developer, so I don’t know how to make it dynamic and work with any amount of coupons. I think I’ll wait till you come up with a solution for the plugin. It looks like you’re not that far from a working solution. 🙂
Oh, @jeppeskovsgaard
Then that code will not work (its created to work with one coupon code and multiple gifts).Not sure about today but I will see to extend it to all coupons and all gifts – then it can be useful for you.
If any coupone code is used = remove all gifts and hide giftable carousel?Sounds great.
Let’s say I’ve set a minimum value in the gift category for 100$.
A user has added products to the cart with a total value of 110$ and adds a free gift to the cart.
Now the same user adds a -20$ off coupon, which brings the cart subtotal to 90$. The subtotal is now lower than the defined minimum value of 100$, so the user is no longer eligible for a free gift. The free gift added to the cart is removed as well as the carousel.
That is how it should work. I hope that makes sense.
Hi @jeppeskovsgaard,
colleague created small “beta” plugin: It doesnt check price/total, it will just remove all products “Gifts” when “Coupon Code” is used.
Screenshot – Product dataBETA:
https://github.com/apsolut/decom-small-giftable-coupon-alternative
*if you could test it and send us a feedback,have in mind its BETAThanks for that @decomteam.
What’s the status for implementing a permanent fix in the primary/core plugin?
Dont have ETA about that, did you check a plugin, is it working for you ?
Okay. Fair enough. 🙂
Yes, I did. The gifts are not removed when applying a coupon.
See my test here: https://www.screenmailer.com/v/IiyjBaUKMZEX32Y
Could you just test the same case 1. Add Gift 2. Add coupon code 3. Refresh page (F5) ?
– just to check something.Will try to investigate today whats going on, as I tested it with theme StoreFront – it was working
Still not working: https://www.screenmailer.com/v/1WMBaIbV7VjR4O0
I tried the same when logged out. Still doesn’t work.
I use Storefront Theme btw.
Hi @jeppeskovsgaard,
I just re-tested it – from my side it looks like its working:
Video ShowcaseWooCommerce 3.3.4 ?
StoreFront latest ?*maybe re-download git add-on
-
This reply was modified 8 years, 1 month ago by
DecomTeam.
Hmm. Okay I’ll try disabling some plugins and test again.
It’s the latest WooCommerce and Storefront version, yes.
-
This reply was modified 8 years, 2 months ago by
The topic ‘Gift is not removed when adding coupon’ is closed to new replies.