Also, if a visitor manually removes their coupon (via link on /cart page) and empties their cart, then uses the coupon link again, the message displayed is that the coupon is already applied.
Agreed it is an odd set of events… but shouldn’t the coupon be cleared if the visitor does this?
Brian
Plugin Author
Soft79
(@josk79)
Did you mark the coupon as an Auto Coupon by any chance? In your case it should not be marked as an Auto Coupon.
It is by design that no warning is showed when an Auto Coupon is automatically removed.
The fact that the coupon is still displayed after breaking the rules shouldn’t happen though, I’ll try to reproduce this issue these days. Please stay tuned…
Hi – no, coupon is not marked as auto-coupon.
Let me know if you need any trouble shooting help.
Plugin Author
Soft79
(@josk79)
I tried to reproduce your issue, but failed. Do you use the latest version 1.1.5? Do you use any other plugins that might interfere?
If you can send me (temporary) login credentials to your store to kalverdijk+hotmail.com I can take a look.
Plugin Author
Soft79
(@josk79)
Do you still need support?
After a series of updates, all appears well.
Thanks for checking back
Best regards, Brian
hmmm – this has come back… Here’s is a detailed scenario that is reproducible:
I have 3 auto-add coupons:
A. purchase 2-4 books
B. purchase 5-9 books
C. purchase 10+ books
Go to: http://sandbox.brianclifton.com/shop/product/successful-analytics-book/
– Add 10 books to the cart. Coupon C is automatically applied.
– Change your mind and reduce the number of books in the cart to say 7
What should happen:
Coupon C should be removed and Coupon B applied
However, although a message shows that Coupon C is invalid and has been removed, there is still a line item for it with coupon name/description in the /basket and /cart pages. The amount field is empty.
In addition, the problem now is how does the visitor apply Coupon B (or any other coupon)?
Even when the basket is emptied and the new lesser number of books added (7), the message is that “Coupon C is invalid and has been removed”. A line still shows with blank for the amount. In other words there is no way to proceed, the same message is constantly repeated (“Coupon C is invalid and has been removed”) – even if the browser is closed and reopened the issue persists. The only option is to go back to the original quantity i.e. 10 books, for the transaction to proceed.
Notes:
-the same problem occurs in different browsers.
-the issue occurs when orders are increased into another coupon threshold (as well as decreased)
Best regards, Brian
plugin v2.0.0
Plugin Author
Soft79
(@josk79)
As far as I know, your scenario is not standard WooCommerce functionality:
A. purchase 2-4 books
B. purchase 5-9 books
C. purchase 10+ books
Do you use any other plugins for this functionality?
Its standard functionality within Woo i.e. Product% coupons valid between certain values:
The book value is £19.99, so:
Coupon A: £39 – 80 (2-4 books)
Coupon B: £99 – 180 (4-9 books)
Coupon C: £199+ (10 or more)
However, I wonder if Woo is rounding numbers up for discounts…?
this error message is also cropping up on the /checkout page:
Notice: Undefined index: success in /home/brianclifton/sandbox_html/shop/wp-content/plugins/woocommerce-auto-added-coupons/includes/wjecf-autocoupon.php on line 229
Plugin Author
Soft79
(@josk79)
I’ll look into it.
What version of WooCommerce and WordPress do you use?
Can you provide me a list of all plugins and versions, please?
Plugin Author
Soft79
(@josk79)
Could you send me credentials to kalverdijk hotmail.com so I can check it out ? Can I play around a bit with the site, because it’s a sandbox?
I can’t reproduce the issue in my environment.
Plugin Author
Soft79
(@josk79)
Please try the development version 2.1.0-b1.
- This will fix the notice on the checkout page
- This might fix the other issue as well because I changed the hooks that are used for application/removal of the auto coupons
Can you give it a try and let me know? If this doesn’t fix the issue I would have to test in your environment as I can’t reproduce the issue on my environment.