On a D7 site I maintain we're seeing a lot of the following error when an anonymous visitor goes from the cart page to the checkout page:
User: Anonymous (not verified)
Location https://example.com/checkout/27013
Referrer https://example.com/cart
Message Unable to get variable commerce_order, it is not defined.
FWIW there's a rule configured that uses the "commerce_rules_extra_process_checkout_page" rules condition.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | commerce_rules_extra-n3320775-4.patch | 1.35 KB | damienmckenna |
Comments
Comment #2
damienmckennaThis error is also logged when the visitor performs operations that result in an AJAX request, e.g. they fill in an email address and the system checks if an account exists for them.
Comment #3
damienmckennaThis comes from Commerce Rules Extra.
Comment #4
damienmckennaThe problem appears to be that when the rule is initiated the order isn't passed in.
Does this work?
Comment #5
damienmckennaComment #6
perignon commentedI do not have a way of testing this any longer. So I will go off your word that it addressed the problem.
Comment #8
perignon commentedCommitted to 7.x-2.x