To populate text nodes using a "Textbox Group", populate the Product Code field of an option item using the convention of "Node." + text node name + ".Text". Please note that capitalization does matter when options are populated in DP2. Make sure that you are typing "Node." with a capital "N" and ".Text" with a capital "T".
Examples
Option Name = "Personalization Text" Type = "textbox group" Option Item 1: Title = "Team Name" Product Code = "Node.TeamName.Text" Option Item 2: Title = "Player Name" Product Code = "Node.PlayerName.Text"
To add text to a text node after the customer's entered text, add the suffix text to the option item's "Billing Code" field after the text "suffix:". To add text to a text node before the customer's entered text, add the prefix text to the option item's "Billing Code" field after the text "prefix:".
Example
Option Name = "Personalization Text" Type = "textbox group" Option Item 1: Title = "First Name" Product Code = "Node.FirstName.Text" Billing Code = "suffix: 2013"
If you would like to allow customers to choose the DP2 Layout ID (or the ROES UID or Product Code) based on a menu selection, add a "Drop Down Menu" type Option to product. In the "Product Code" field for each Option Item, put the text "override" (without the quotes). In the "Product Value" field, put the DP2 Layout ID that corresponds with the Option Item.
Please Note: Using an option to override a Layout ID currently works with standard retail price list items and composite products, but not items within a fixed or variable package.
Examples
Option Name = "Product Type Selection" Type = "drop down menu" Option Item 1: Title = "Style A" Product Code = "override" Product Value = "STYLECODEA" Option Item 2: Title = "Style B" Product Code = "override" Product Value = "STYLECODEA"
Example showing how to Override Product Code based on a product option selection while populating multiple products. See our Populate Multiple Products page for information about populating multiple products with a single product code. Please make sure you test this solution to verify products are populated as expected.
Option Item 1: Title = "Style A" Product Code = "override" Product Value = "1/8x10codeA;2/5x7codeA" Option Item 2: Title = "Style B" Product Code = "override" Product Value = "1/8x10codeB;2/5x7codeB"
To populate various options in a DP2 layout (or in generic XML data) dynamically using either a "checkbox group" or a "drop down menu", populate both the "Product Code" and "Product Value" fields as shown in the examples below. In our testing, we have found that any option editable using DP2's layout editor can be adjusted dynamically using DP2 script. Viewing the layout text file is helpful to determine that text should be populated in the SimplePhoto "Product Code" field.
When testing layout option population, here is a short cut to running several tests quickly without having to repeatedly place the same test order using the SimplePhoto ordering interface. Place one test order in SimplePhoto with the appropriate product option in place. Turn off DP2 Process Commands, run the test order through the SimplePhoto DP2 Bridge Order Import program, then make a copy of the DP2 job text file in the Process Commands folder. Turn on Process Commands in DP2 to import the order. To re-run the test, delete the order that was just imported in DP2. Edit the DP2 job text file you copied earlier and copy the file to your Process Commands folder.
Please note that capitalization does matter when options are populated in DP2. Make sure that you are typing "Node." with a capital "N", ".Ifile" with a capital "I", "Keyword." with a capital "K", etc.
Examples
Generic background selection example
Option Name = "Select Backgroud"
Type = "drop down menu"
Option Item 1:
Title = "Clouds"
Product Code = "background"
Product Value = "bg_cloud"
Option Item 2:
Title = "Forest"
Product Code = "background"
Product Value = "bg_forest"
DP2 color options example
Option Name = "Color Options"
Type = "drop down menu"
Option Item 1:
Title = "Sepia"
Product Code = "Keyword.Aftereffects.Sepia"
Product Value = "C:\Eastman Kodak/KPro Applications/KPDP2/Tables/sepia.txt"
Option Item 2:
Title = "B&W"
Product Code = "Keyword.Aftereffects.ColorMatrix"
Product Value = "C:\Eastman Kodak/KPro Applications/KPDP2/Tables/blackAndWhiteMatrix.txt"
DP2 greeting cards example
Option Name = "Holiday Card Style"
Type = "drop down menu"
Option Item 1:
Title = "Style 1 - Merry Christmas"
Product Code = "Node.Node10000.Ifile"
Product Value = "\\fileservername\printgraphics\holiday templates\vertical\merrychristmas.jpg"
Option Item 2:
Title = "Style 2 - Happy New Year"
Product Code = "Node.Node10000.Ifile"
Product Value = "\\fileservername\printgraphics\holiday templates\vertical\happynewyear.jpg"