The coupon validation fails (if the coupon products doesn't match any product in current order). I found that the condition "Order contains a product that is referenced by the coupon" is where the rules found a exception. This is the rules debug:

7.93 ms Evaluating conditions of rule Coupon Validation: Check the referenced products. [edit]
8.21 ms The condition entity_has_field evaluated to TRUE [edit]
12.074 ms The condition data_is_empty evaluated to FALSE [edit]
15.591 ms Unable to get a data value. Error: Unknown data property commerce_product.
15.914 ms Unable to evaluate condition commerce_couponprodref_order_has_referenced_product. [edit]
15.952 ms AND evaluated to FALSE.
15.982 ms Finished reacting on event Validate a coupon.

Why this function doesn't identify correctly the commerce_product property? I debug the function and the data is get correctly but the rule wrapper encounter an exception.

Thanks!

Comments

AndyF’s picture

Thanks for reporting this. Should be fixed with 263041c - could you pull the latest code or use the dev version and let me know if you still have any issues?

Thanks

AndyF’s picture

Status: Active » Fixed

Please reopen if this isn't fixed for you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.