Data Import
Locate the metadata > changeup_import directory within the distribution. We’re going to have to make a few changes to the data files within.
Rename the metadata > changeup_import > sites > [MERCHANT-SITE-ID] directory to be the ID of the site the cartridge is being installed for.
If the site is assigned to a shared library, open library.xml for editing and in the primary <library> node, add the attribute library-id, making its value the ID of the shared library to import the content assets into.
<library xmlns=“http://www.demandware.com/xml/impex/library/2006-10-31"
library-id=“site-lib-id
”
>
Open metadata > changeup_import > inventory-lists > inventory.xml for editing. Modify the list- id value in the <header> node to be the ID of the inventory list the site is assigned to.
<header list-id="
MERCHANT-LIST-ID
">
NOTICE: If your recurring inventory import is using the REPLACE method, you will need to include the donation product’s inventory within that feed so it is always present. For reference of the inventory setup, look at the inventory.xml file included in the distribution.
Open metadata > changeup_import > catalogs > storefront-catalog > catalog.xml for editing. Modify the catalog-id value in the node to be the ID of the storefront catalog the site is using for categorization.
code <catalog xmlns="http://www.demandware.com/xml/impex/catalog/2006-10-31" catalog-id="
MERCHANT-STOREFRONT-CATALOG-ID
">
Open metadata > changeup_import > jobs.xml for editing. Modify the site-id value in the context node to be the ID of the site the cartridge is being installed for.
NOTICE: If your recurring storefront catalog import is using the REPLACE method, you will need to include the donation product within that feed so it is always present. For reference of the inventory setup, look at the catalog.xml file under the storefront-catalog directory included in the distribution.
Now create a zip file from the changeup_import directory, ensuring the zip file is named changeup_import.zip
On the B2C Commerce instance, you are installing the data on, navigate to Administration > Site Development > Site Import & Export and upload the changeup_import.zip file you created in the last step.
Import the data. Select the changeup_import.zip archive and click the Import button.
Last updated