Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.
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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions