Add Individual Price Levels to Merchandise Tags

This guide provides a step-by-step process for adding price levels to merchandise tags within Document Designer. The example used in this guide will show how to add two different price levels to the standard "Normal Basic" tag design.

In the example below, there are four price levels. We will add the MSRP ($50.00) and STORE ($52.00) price levels to the tag.

Price Levels Window showing all the levels

Step 1: Launch Document Designer

  1. Launch DocumentDesigner.exe and fill in the required fields: Server Name, Username, and Password.
  2. Click OK to authenticate.
  3. Once authenticated, select Merchandise Tags from the Area drop-down, and choose Normal Basic from the Document drop-down.
  4. Click the Edit button to modify the document.
  5. Once in the editor, go to File > Save As and save the file under a new name. Document Designer does not allow direct editing of default designs.

 

Step 2: Add DetailData and Footer Bands

  1. Add both a DetailData and Footer band to the design beneath the MasterData band. To do this, locate the Insert Band option on the toolbar.
  2. When prompted for the dataset while adding the DetailData band, choose the invnprice dataset. This allows the use of both the inventory and invnprice datasets.

folders at the top of the window: Code | Data | Page1, showing options menu

Once both bands are added, expand the Footer band and drag the content from the MasterData band into the Footer band. Your design should look similar to the image below.

MasterData: MasterData1 in the footer band

Step 3: Add Text Objects for Price Levels

1. Remove the inventoryACTSTRPRICE field from the design.

2. Add two blank text objects to represent the MSRP and STORE price levels.

3. You can locate the Text Object option on the toolbar.

pointing out the text tool in the menu on the left, below a check mark

4. Once added, the design should resemble the example below.

Master Data code tab for price levels

Step 4: Add Code for Price Levels

1. Click the Code tab located at the top left of the page to access the Code page.

2. Paste the following C++ code into the code section and save the design:

string MSRP_Price = "", Store_Price = "";                                                             

 

void DetailData1OnBeforePrint(TfrxComponent Sender) {

    if ( == "MSRP")

        MSRP_Price = FormatPrice();

 

    if ( == "STORE")

        Store_Price = FormatPrice();                           

}

 

void Footer1OnBeforePrint(TfrxComponent Sender) {

    Memo1.memo.text = MSRP_Price;

    Memo2.memo.text = Store_Price;          

}

Step 5: Assign Code to Events

  1. Assign the function headers from the code page to the DetailData and Footer events (specifically, the OnBeforePrint event).
  2. To do this:
    • Click the DetailData band so that it is highlighted.
    • Go to the Events tab and locate the OnBeforePrint event.
    • Paste in DetailData1OnBeforePrint as the function.
    • Repeat these steps for the Footer band, using the Footer1OnBeforePrint function header.

Refer to the images below for the expected result. Be sure to save your changes.

DetailData1: TfrxDetailData with Properties and Events folders at the top, looking at the Events folder

Footer1: TfrxFooter with Properties | Events

Step 6: Test the Design

  1. To test the tag design, go to Prism and locate an inventory item.
  2. Print a tag using the newly created design. Both the MSRP and STORE price levels should appear on the tag.
  3. If you notice abnormal spacing between the two prices, return to Document Designer and adjust the position of the text objects (Memo1 & Memo2) until the layout is correct.

 

The final product should display both MSRP and STORE price levels on the tag, as shown in the image below.

Print preview

Published on Nov 9, 2024 in Configuration & Settings

 

Find Another Article