The list of pricebooks that should be active is saved in a system-level Site Preference called, SitePriceBooks
. This value can be set by importing a preferences.xml
file in a site import/export archive. The value of this site preference should be a colon (:
) separated list of pricebook IDs. eg:
<preference preference-id="SitePriceBooks">list-prices:sale-prices</preference>
The entire file should look like the following code snippet:
<?xml version="1.0" encoding="UTF-8"?>
<preferences xmlns="http://www.demandware.com/xml/impex/preferences/2007-03-31">
<standard-preferences>
<all-instances>
<preference preference-id="SitePriceBooks">list-prices:sale-prices</preference>
</all-instances>
</standard-preferences>
</preferences>
This file must be placed in a folder structure as shown below:
siteImport/
∟ sites/
∟ <siteID>/
∟ preferences.xml
Where <siteID>
is replaced with the ID of your site, for example: RefApp
. This folder structure would then be zipped using a command like:
zip -r siteImport.zip siteImport
Note: The folder and the resulting zip file name must be identically named. This zip file can be uploaded to WebDAV on SFCC instances and imported using the ImportSiteArchive system job step.