@order codes

Applies to: 4.5 NeoPackProfessional, PackBuilder


This article assumes the reader has a good understanding of ordering in Version 4. It is highly recommended at least the following articles are consulted prior to this one.

Ordering in Version 4

Understanding orders

Offers, products and packages - an overview

@order @package @product

Version 4.5 introduced several variations of the @order tag. Whereas the @order tag will continue to list all packages in all orders for a given subject, the variants take into account order sets and the subjects' current order. This makes the various @order tags ideal for including on packing and proofing slips and labels.

The situation

The various @order tags are perhaps best described by way of example.

Consider the subject John Smith who has four orders for a particular job spread across three different order sets:

Orderkey OrderSet Packages
XCV43WE5
Default set
PK1
2CD7TWK5
RetakeDay
PK2
KLWS32FF
2015-05-06
PK3 PK4
9T4QS5QF
2015-05-06
PK5

@order

The @order tag will list all packages for all orders for a given subject. For John Smith the result will be:

[PK1] / [PK2] / [PK3] / [PK4] / [PK5]

The @order tag need not be placed on a layout that is 'ordered' via a package code. The layout can simply be selected for a subject in Point and Click Mode or used in an Item in Item Sheets Mode

@order-defaultset

The @order-defaultset tag will list all packages for all orders in the default orderset only. For John Smith the result will be:

[PK1]

The @order-defaultset tag need not be placed on a layout that is 'ordered' via a package code. The layout can simply be selected for a subject in Point and Click Mode or used in an Item in Item Sheets Mode

@order(orderset) where orderset is the name of a specific order set

The @order(orderset) tag will list all packages for all orders in the specified set. For John Smith a tag of @order(RetakeDay) will result in:

[PK2]

Whereas a tag of @order(2015-05-06) will result in:

[PK3] / [PK4] / [PK5]

The @order(orderset) tag need not be placed on a layout that is 'ordered' via a package code. The layout can simply be selected for a subject in Point and Click Mode or used in an item in Item Sheets Mode

@order-thisset

The @order-thisset will list all packages for all orders in the order's set. With the John Smith example above if @order-thisset is used on a product ordered with either PK3, PK4 or PK5 , the result will be:

[PK3] / [PK4] / [PK5]

The @order-thisset tag can only be used on a packlayout that is ordered via a Package Code. As such it will be blank if used directly in Point and Click or Item Sheets Modes.

@order-thisorder

The @order-thisorder will list all packages in the current order only ignoring any other orders. With the John Smith example above if @order-thisorder was used on a product ordered with either PK3, PK4 the result would be:

[PK3] / [PK4]

However if @order-thisorder was used in package PK5 the result would be:

[PK5]

The @order-thisorder tag can only be used on a packlayout that is ordered via a Package Code. As such it will be blank if used directly in Point and Click or Item Sheets Modes.

End of article


Recent Discussions

08 May, 2018 04:24 AM
02 May, 2018 08:13 PM
04 Apr, 2018 03:46 PM
26 Mar, 2018 02:00 PM
23 Mar, 2018 09:27 AM