Tutorials > Customize the Consumer Direct sample store > Add a new Change Flow feature
Add the option to enable or disable the feature to the Change Flow notebook
In this step of the tutorial, we will add a new page to the Change Flow notebook. The page will contain one check box that can be used to enable or disable the display of thumbnail images for the shopping cart items.
- Add a new page to the Change Flow notebook, using an existing page as a basis,...
- Navigate to the following directory:
- WC_eardi../images/locale/screensnap/Stores.war/WEB-INF/xml/tools/stores/ConsumerDirect/devtools/flow/ui
- workspace_dir\Stores\Web Content\WEB-INF\xml\tools\stores\ConsumerDirect\devtools\flow\ui
- List the contents of the directory and observe that an XML file exists for each page of the Change Flow notebook.
- Locate the OrderStatus.xml file.
- Make a copy of the OrderStatus.xml file in the same folder and name it ShopCart.xml.
- Open the ShoppingCart.xml file for editing.
- Remove the second <option-group> entry.
- Change all occurrences of OrderStatusPanel to ShopCartPanel.
- Change the occurrence of TrackStatus to ShopCartImages.
- Change all occurrences of OrderStatus to ShopCartImages.
- Change the value of the display-priority attribute of the panel element to 7. This will position the Shop Cart tab last in the navigation frame displayed with the Change Flow notebook.
- Save and close the file.
- Provide the text for the new page...
- Navigate to the following directory:
- WC_eardi../images/locale/screensnap/properties/tools/stores/ConsumerDirect/devtools/flow/ui
- workspace_di../images/locale/screensnap/wc/properties/tools/stores/ConsumerDirect/devtools/flow/ui
- Open the config_locale.properties file for your locale for editing and observe that a section exists for each page of the Change Flow notebook.
- Copy the Order Status panel section of the file to the bottom of the file and change the keys and values so that it appears...
############################################################ # Shopping Cart panel ############################################################ ShoppingCartPanel =Shopping Cart ShoppingCartPanel.title =Shopping Cart ShoppingCartPanel.description =Select the following check box to show thumbnail images for all items in the shopping cart ShoppingCartImages.checkboxEnable.description = ShoppingCartImages.checkboxEnable.label =Enable thumbnail images for shopping cart items
- Save and close the file.