Setting and Displaying Shopping Parameters in the UI
The Set Shopping Parameters action is available in the “hamburger” menu to set the shopping parameter values. This action will only appear if the commerce delegate has defined any shopping parameters; otherwise it’s hidden.
To customize the Set Shopping Parameters dialog, update the following template and controller:
delivery\app\views\shoppingParams\shoppingParams.html
delivery\app\views\shoppingParams\shoppingParamsController.js
The shopping parameters are stored in the session storage with the key “SHOPPING_PARAMS” and the page is reloaded.
• SessionStorage maintains a separate storage area for each given origin that's available for the duration of the page session. This means that opening the same page in a new tab or window will cause a new session to be initiated and so the prior shopping parameters won’t be shown.
• Changing dealerships will also cause the shopping parameters to be cleared out from the session storage.
An example Set Shopping parameter dialog:
• The shopping parameters are retrieved from the session storage and displayed in the header of PTC Arbortext Content Delivery UI if any of them are set as shown below as an example.
To customize the shopping parameters in the header, update the following template:
delivery\app\views\header\shoppingParameters.tmpl.html