Tutorials > Customize the Consumer Direct sample store > Add dynamic text
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
- Navigate to the following directory:
- WC_eardi../images/locale/screensnap/Stores.war/WEB-INF/classes/ConsumerDirect
- workspace_dir\Stores\WebContent\WEB-INF\classes\ConsumerDirect
- Open the storetext_dynamic_locale.properties file for editing.
- 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.
- Save and close the file.
- Open the storetext_dynamic_labels_locale.properties file, located in the same directory, for editing.
- Insert the following text at the end of the file:
# ShoppingArea/DiscountSection/DiscountDetailsDisplay.jsp DiscountDisclaimer = Discount disclaimer DiscountDisclaimer_Text =
- Save and close the file.
- Restart your WCS instance to load the changed properties files.