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

< Previous | Next >


Add properties to hold and display the dynamic text

In this step of the tutorial, we will update the consumer direct sample store dynamic properties files to add a new dynamic text message for the discount disclaimer on the DiscountDetailsDisplay.jsp page.

Every WebSphere Commerce store has three locale-specific properties files for store text. For the consumer direct sample store, these files are:

storetext_locale.properties

Contains the static text used in the store. For example, the Some restrictions may apply message is currently provided in this properties file.

storetext_dynamic_locale.properties

Contains the dynamic text used in the store. You will add a new property to represent the dynamic text message to this file.

storetext_dynamic_labels_locale.properties

Contains the text used in the Change Pages page to describe the message. You will add a new label and description for the dynamic text message to this file.


Procedure

  1. Navigate to the following directory:

  2. Open the storetext_dynamic_locale.properties file for editing.

  3. Insert the following text at the end of the file:

    # ShoppingArea/DiscountSection/DiscountDetailsDisplay.jsp
    Discount_Disclaimer = Some restrictions may apply. Discount cannot be combined with other offers.
    

  4. Save and close the file.

  5. Open the storetext_dynamic_labels_locale.properties file, located in the same directory, for editing.

  6. Insert the following text at the end of the file:

    # ShoppingArea/DiscountSection/DiscountDetailsDisplay.jsp
    DiscountDisclaimer = Discount disclaimer
    DiscountDisclaimer_Text =
    

  7. Save and close the file.

  8. Restart your WCS instance to load the changed properties files.

< Previous | Next >


+

Search Tips   |   Advanced Search