Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Documentation error: lineItem.unit.code does not exist in shpping rules #15

Open
ghost opened this issue Aug 28, 2019 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Aug 28, 2019

There is an error on this page https://oroinc.com/b2b-ecommerce/doc/current/admin-guide/shipping/shipping-rules/expression-lang#attributes-supported-in-shipping-and-payment-rule-expressions
Using lineItem.unit.code in shipping rule triggers

app.ERROR: Rule condition evaluation error: Neither the
property "unit" nor one of the methods "getUnit()", "unit()",
"isUnit()", "hasUnit()", "__get()" exist and have public access in class
"Oro\Bundle\ShippingBundle\Context\ShippingLineItem"

What works for me is lineItem.product_unit_code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants