Push customization to production environment
In this lesson, you will push the customization created in the Auth environment to the Live environment.
Before you begin
Procedure
Do the following to push the index from the Auth environment to the Live
environment:
-
Activate the Production Environments with Push to Live (PTL) end to end. This
step assumes that you have created the Push-to-Live connectors. If the
connectors are not created, see step 4 of Creating a NiFi service connector.
-
Depending on the HCL Commerce version you use, the steps to obtain search
indices and profit margin values in the live environment differ:
- For HCL Commerce Versions 9.1.10.0+ to 9.1.13.0, see Reading Search indices and profit margin values in a Live environment.
- For HCL Commerce Version 9.1.14.0+, see Reading search indices and profit margin values in a Live environment.
- For HCL Commerce Version 9.1.15, see Reading indices in a Live environment.
-
Use a REST client and execute the following POST commands to verify that the
search index data are available.
http://ElasticSearchServerName:30200/live.storeId.product/_search
-
Modify the user data field name mapping to map the profit margin field to user
data using the configuration API.
- Modify the store to display the profit margin only in store preview.
-
Validate that the Profit Margin is
visible on the Store Preview of the Production Environment.
Note: There is no need to create the Profit Margin Web Activity, as it is already created by running stagingprop utility and propagating it from the authoring database.