Tutorials > Customize the Consumer Direct sample store > Add dynamic text

< Previous | Next >


Add a section to the storefront configuration file

In this step of the tutorial, we will add a section to the storefront configuration file, StoreFront.xml, that will add an option for setting the discount disclaimer text to the Change Pages page.

To add the option for setting the discount disclaimer text to the Change Pages page:

  1. Navigate to the following directory:

  2. Open the StoreFront.xml file for editing.

  3. Add the following lines to the store-front-text element:

    <!-- ShoppingArea/DiscountSection/DiscountDetailsDisplay.jsp -->
    <page>
      
    <label>
         
    <message key="DiscountDisclaimer"                    
                   resource="storetext_dynamic_labels"/>
      
    </label>
      
    <description>
         
    <message key="DiscountDisclaimer_Text"
                   resource="storetext_dynamic_labels"/>
      
    </description>
      
    <content>
         
    <message key="Discount_Disclaimer"
                   resource="storetext_dynamic"/>
      
    </content>
      
    <location file="tools/stores/$storeDir$/text/preview/$locale$/Preview_DiscountDisclaimer.html"/>
    </page>
    

  4. Save and close the file.

< Previous | Next >


+

Search Tips   |   Advanced Search