Your [LAB_LABEL] Order

Number: [CUSTOMER_ORDER_ID]
Date: [CURRENT_DATE] [CURRENT_TIME]
For: [CUSTOMER_NAME]
[CUSTOMER_EMAIL]


[BEGIN_ITEM_LIST] [BEGIN_UNIT_LIST] [BEGIN_IF("" == "book")] [BEGIN_IF( == 1)] [END_IF] [END_IF] [BEGIN_IF("" == "package")] [BEGIN_IF( == 1)] [END_IF] [END_IF] [BEGIN_IF("" == "")] [END_IF] [END_UNIT_LIST] [END_ITEM_LIST]
Item # Photo Images Print Size Options Quantity Price per print Total
Book
[ITEM_PRODUCT_DESCRIPTION]

Quantity: [ITEM_QUANTITY]
Package
[ITEM_PRODUCT_DESCRIPTION]

Quantity: [ITEM_QUANTITY]
[UNIT_ORDER_INDEX] [BEGIN_UNIT_NODE_LIST] [UNIT_NODE_IMAGE_FILE_NAME][UNIT_NODE_TEXT]
[END_UNIT_NODE_LIST]
[UNIT_PRODUCT_DESCRIPTION] [BEGIN_UNIT_OPTIONS_LIST] [UNIT_OPTION_LABEL] $[UNIT_OPTION_PRICE]
[END_UNIT_OPTIONS_LIST]
[UNIT_QUANTITY] $[UNIT_PRICE] $[UNIT_TOTAL_PRICE]
Order Options [BEGIN_ORDER_OPTIONS_LIST] [ORDER_OPTION_LABEL] $[ORDER_OPTION_PRICE]
[END_ORDER_OPTIONS_LIST]
Shipping [SHIPPING_LABEL]  $[SHIPPING_TOTAL_PRICE]
Total Prints: [NUMBER_OF_PRINTS] Total Price: $[TOTAL_PRICE]

Click to show Print Size Summary
[BEGIN_PRODUCT_SUMMARY_LIST] [END_PRODUCT_SUMMARY_LIST]

Click to show Packages Summary
[SET_MACRO( USER_DEF_PACKAGE_COUNT, 0)][\] [BEGIN_ITEM_LIST][\] [//\] We are only interested in package items [BEGIN_IF("" == "package")][\] [SET_MACRO_FROM_ATTRIBUTE( PACKAGE_ID, label)][\] [//\] See if we already have this package [SET_MACRO( PACKAGE_INDEX, -1)][\] [SET_MACRO( INDEX, 0)][\] [SET_MACRO(THE_PACKAGE_QUANTITY, 1)][\] [BEGIN_WHILE( < )][\] [SET_MACRO_FROM_MACRO( PACKAGE_INDEX_ID, PACKAGE__ID)][\] [BEGIN_IF("" == "")][\] [SET_MACRO( PACKAGE_INDEX, )][\] [SET_MACRO_FROM_MACRO( PACKAGE_COUNT, PACKAGE__COUNT)][\] [SET_MACRO( PACKAGE__COUNT, + )][\] [SET_MACRO_FROM_MACRO( CURRENT_ITEM_LIST, PACKAGE__ITEM_LIST)] [SET_MACRO( PACKAGE__ITEM_LIST, ",")][\] [SET_MACRO( , * 1)][\] [END_IF][\] [SET_MACRO( INDEX, + 1)][\] [END_WHILE][\] [//\] If PACKAGE_INDEX is still -1 then this is a new package [BEGIN_IF( == -1)][\] [//\] Increment the USER_DEF_PACKAGE_COUNT and create the associated macros [SET_MACRO( PACKAGE_INDEX, )][\] [SET_MACRO( USER_DEF_PACKAGE_COUNT, + 1)][\] [SET_MACRO( PACKAGE__ID, "")][\] [SET_MACRO( PACKAGE__COUNT, )][\] [SET_MACRO( PACKAGE__ITEM_LIST, "")][\] [SET_MACRO( PACKAGE__UNIT_COUNT, 0)][\] [//\] Go through this items units and add them to the list of units in this package [BEGIN_UNIT_LIST][\] [//\] Don't use UNIT_INDEX as a macro as that is already reserved as a standard macro [SET_MACRO_FROM_MACRO( UNIT_INDX, PACKAGE__UNIT_COUNT)][\] [SET_MACRO( PACKAGE__UNIT_COUNT, + 1)][\] [SET_MACRO( PACKAGE__UNIT__DESCRIPTION, "")][\] [END_UNIT_LIST][\] [END_IF][\] [END_IF][\] [END_ITEM_LIST][\] [//\] Disgorge the list of Packages [SET_MACRO( A_TAB, " ")][\] [SET_MACRO( PACKAGE_INDEX, 0)][\] [BEGIN_WHILE( < )][\] [//\] Get the package id in a simple evaluable macro and write it out [SET_MACRO_FROM_MACRO( THE_PACKAGE_ID, PACKAGE__ID)][\] [SET_MACRO_FROM_MACRO( ORDER_PACKAGE_COUNT, USER_DEF_PACKAGE_COUNT)][\] [SET_MACRO_FROM_MACRO( THE_PACKAGE_COUNT, PACKAGE__COUNT)] [SET_MACRO_FROM_MACRO( THE_PACKAGE_ITEM_LIST, PACKAGE__ITEM_LIST)] [BEGIN_WHILE( < )][\] [//\] Get the description in a simple evaluable macro and write it out [SET_MACRO_FROM_MACRO( THE_DESCRIPTION, PACKAGE__UNIT__DESCRIPTION)][\] [SET_MACRO( UNIT_INDX, + 1)][\] [END_WHILE][\] [SET_MACRO( PACKAGE_INDEX, + 1)][\] [END_WHILE] [SET_MACRO( PACKAGE_INDEX, 0)][\] [BEGIN_WHILE( < )][\] [//\] Get the package id in a simple evaluable macro and write it out [SET_MACRO_FROM_MACRO( THE_PACKAGE_ID, PACKAGE__ID)][\] [SET_MACRO_FROM_MACRO( ORDER_PACKAGE_COUNT, USER_DEF_PACKAGE_COUNT)][\] [SET_MACRO_FROM_MACRO( THE_PACKAGE_COUNT, PACKAGE__COUNT)] [SET_MACRO_FROM_MACRO( THE_PACKAGE_ITEM_LIST, PACKAGE__ITEM_LIST)] [SET_MACRO( UNIT_INDX, 0)][\] [SET_MACRO_FROM_MACRO( PACKAGE_UNIT_COUNT, PACKAGE__UNIT_COUNT)][\] [BEGIN_WHILE( < )][\] [//\] Get the description in a simple evaluable macro and write it out [SET_MACRO_FROM_MACRO( THE_DESCRIPTION, PACKAGE__UNIT__DESCRIPTION)][\] [SET_MACRO( UNIT_INDX, + 1)][\] [END_WHILE][\] [SET_MACRO( PACKAGE_INDEX, + 1)][\] [END_WHILE]

Click to show Images Summary
[BEGIN_IMAGE_SUMMARY_LIST] [END_IMAGE_SUMMARY_LIST]