• Resolved cjfl

    (@cjfl)


    Hi!

    There seems to be a problem with the passing of the condition rules. This used to work fine but now doesn’t, all of a sudden.

    I have a condition set to give discounted shipping on orders >39€.

    Conditions: Subtotal greater than 39€

    I have just received an order for a 23€ item that had discounted shipping. That should not happen. When I try to create the same order, I get both normal shipping and discounted shipping as available options at checkout.
    I have enabled debug mode, and the rule passes, even though it should fail. So, the subtotal of the shopping basket is 23€ and I get the following result in debug:

    OVER 39€ DISCOUNT

    Conditions – All conditions have to pass (AND)
    Subtotal – greater than – 39€ Pass
    Pass

    Actions Enable shipping methods – Post – Discounted rate

    This should fail with a subtotal of 23€


    Then I set up a redundant rule that disables the discounted shipping option for orders < 39€, to see what would happen.

    < 39€ DISABLE DISCOUNT

    Conditions – All conditions have to pass (AND)
    Subtotal – less than or equal – 39€ Pass
    Pass

    Actions Disable shipping methods – Post – Discounted rate

    This also passes. That is not even logically possible. The one condition is greater than 39€ and the other less than or equal 39€

    Despite the fact that the rule to disable the discount shipping also passed, it is still available as a shipping option at checkout.

    Something is amiss here. Please help!

    • This topic was modified 1 year, 10 months ago by cjfl.
    • This topic was modified 1 year, 10 months ago by cjfl.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Trio

    (@wooelements)

    Hello,

    A common reason for this is that there is a currency symbol after the amount. This would cause it to equate to 0 € and pass every time. I’m referring to this field.

    This is something that’s on the development backlog so that only numbers can be entered so it will be a bit more easier in the future.

    Closing this now but feel free to reopen if this doesn’t solve the problem.

    Thread Starter cjfl

    (@cjfl)

    Thanks for the quick reply! The currency sign seems to have been the culprit. It works fine, now that I removed it.
    I do wonder how that changed though. It used to be ok and I hadn’t touched these settings for months, then all of a sudden it didn’t work anymore. Mysterious.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditions no longer passing correctly’ is closed to new replies.