Blog posts tagged with 'ReferenceType'

RSS
Shipping Director - Reference type- Sunday, January 1, 2012

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 (1)