• Resolved BClifton

    (@omegadm)


    I really like the idea of this plugin and it mostly works. However, here is my issue…

    -My coupon rules mean the coupon is only valid for 1 item (max value = £30).
    -With the coupon added to a url, the visitor lands and coupon is applied correctly
    -But the visitor then decides to add a second item to cart – which breaks the coupon rules
    -The normal behaviour of Woo is to show an warning message that the coupon has been removed and the coupon line item is removed form the basket. However, using this plugin the /cart page shows no warning. Also, the coupon still shows as an item though it has no value. So very confusing.

    Can this be fixed?

    Best regards, Brian

    https://wordpress.org/plugins/woocommerce-auto-added-coupons/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter BClifton

    (@omegadm)

    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…

    Thread Starter BClifton

    (@omegadm)

    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?

    Thread Starter BClifton

    (@omegadm)

    After a series of updates, all appears well.

    Thanks for checking back

    Best regards, Brian

    Thread Starter BClifton

    (@omegadm)

    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?

    Thread Starter BClifton

    (@omegadm)

    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…?

    Thread Starter BClifton

    (@omegadm)

    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?

    Thread Starter BClifton

    (@omegadm)

    Thanks for looking into this. See:

    http://sandbox.brianclifton.com/shop/plugins-list.png

    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.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Coupon present when it should be removed’ is closed to new replies.