• Resolved adewebdev

    (@adewebdev)


    Is there a way to stop the checkout page saying a coupon has been applied even if the rule has not been met and no discount given?

    Example:
    Spend £80 get £20 off. If the subtotal has less than £80 and you apply the coupon it does not give the discount, but still says ‘coupon applied successfully’ which is going to cause confusion.

    Also is there a way to stop the coupon taking up 2 lines on the cart, one for the name of the voucher and one for the discount?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    Thank you for reaching out.

    1. Are you trying to remove coupon/ show coupon failed message when condition gets failed?
    If so, it is not possible via our plugin. So Sorry about it.

    By default, whenever a coupon is applied in cart, a message will be displayed.

    ?This is a Woocommerce functionality and not part of our plugin.?

    So, if you are entering the coupon code before the condition being matched, you will see a default woocommerce message, even though the discounts are not applied.?

    You can remove the message with a snippet:
    https://gist.github.com/Kowsaliya/c307fa78eb0a2c2b6d1fed2c73e30048

    You can add multiple coupons in line number 4,
    ?For Example : $applicable_coupons = array(‘sum’,’test2′);

    However, it might not be possible to remove the coupon name and the remove button.?It is only possible to remove the message.

    Thanks for understanding.

    2. Have you setup something like this?
    https://nimb.ws/YuCJ1L

    So that discount will be displayed in same line on cart and checkout pages.

    Hope this helps.

    Let us know in case of any further queries. We would be glad to assist you.

    Thanks
    Team Flycart

    Thread Starter adewebdev

    (@adewebdev)

    Thanks for your reply.

    1. I am hoping for failed coupon message. A coupon added to the native Woocommerce coupon tool will display a ‘you must spend £80’ if requirement is not met. But in Discount Rules it always says it’s applied, and shows up as an entry in the cart even if it hasn’t actually applied the discount. I’ve managed to work around this by adding them to Woocommerce and keeping rules for Discount Rules.

    2. Thanks, didn’t notice you had to keep the naming the same and that’s fixed it.

    Hi,
    Thanks for the confirmation.

    Also, happy that you have figured yourself. ??

    Feel free to reach us out in case of any further queries.

    Thanks
    Team Flycart

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Coupon says applied even if not valid’ is closed to new replies.