Shipping Director - Reference type

Beta 2 introduced the "Reference" type.  A reference is a type of variable that is really just a shortcut.  References will typically be used to specify the NopC objects you want to use in your expressions; it makes the expressions more readable, and also prevents you from having to repeatedly type the same object path.    You define a Reference variable with the Reference type, and you access a Reference by prefixing the variable name with "@".  For example:

Order

Type

Name

Expression

5

Reference

product

ProductVariant.Product

6

Reference

categories

[@product].Categories

You can see above that references can themselves access references.  And they can also be used in other expressions like when Packing:

Tags :  ReferenceType
Comments
Leave your comment
:
sample@email.tst
Created on: 6/26/2023 5:32 PM
1