Adding a new store archive to the Publish wizard

You can add a store archive to the Publish wizard in either the default view, or in a particular view. You must have Site Administrator access to complete either of these tasks.

Procedure

  • To add the new store archive to the default view:
    1. Ensure that you have Site Administrator access.
    2. Open the WebSphere Commerce configuration file and locate the SarPath attribute of the DevTools element. If the directory specified by this attribute does not already exist, create it.
    3. Copy the store archive file that you want to add to the directory identified in step 2.
    4. Verify that the new store archive is displayed in the Default view of the Publish wizard.
  • To add the store archive to a particular view:
    1. Copy the SARRegistry.xml file to a local directory from:
      • For IBM i OS operating systemSolarisLinuxAIXWindows WC_installdir/wc.ear/xml/tools/devtools
      • WebSphere Commerce Developerworkspace_dir/wc/xml/tools/devtools/
    2. Edit the SARRegistry.xml file created in step 1.
    3. Add a SampleSAR element for the archive you are adding; for example:
      
         <SampleSAR fileName="ConsumerDirect.sar"
      relativePath="ConsumerDirect">               
                      <view name="ConsumerDirect" />
                      <view name="default" />
                      <html locale="de_DE" featureFile=""
      sampleSite="de_DE/B2C/FashionFlow/index.html"/>
                      <html locale="en_US" featureFile=""
      sampleSite="en_US/B2C/FashionFlow/index.html"/>
                      <html locale="es_ES" featureFile=""
      sampleSite="es_ES/B2C/FashionFlow/index.html"/>
                      <html locale="fr_FR" featureFile=""
      sampleSite="fr_FR/B2C/FashionFlow/index.html"/>
                      <html locale="it_IT" featureFile=""
      sampleSite="it_IT/B2C/FashionFlow/index.html"/>
                      <html locale="ja_JP" featureFile=""
      sampleSite="ja_JP/B2C/FashionFlow/index.html"/>
                      <html locale="ko_KR" featureFile=""
      sampleSite="ko_KR/B2C/FashionFlow/index.html"/>
                      <html locale="pt_BR" featureFile=""
      sampleSite="pt_BR/B2C/FashionFlow/index.html"/>
                      <html locale="zh_CN" featureFile=""
      sampleSite="zh_CN/B2C/FashionFlow/index.html"/>
                      <html locale="zh_TW" featureFile=""
      sampleSite="zh_TW/B2C/FashionFlow/index.html"/>
              </SampleSAR>
      
      Where:
      fileName
      The name of the store archive.
      relativePath
      The directory path relative to the sampleSarPath attribute of the DevTools element in the WebSphere Commerce configuration file.
      name
      The name of the view that the store archive will display in from the Publish user interface. Note that a store archive may display in multiple views. For example, ConsumerDirect.sar will display in both the Consumer Direct view and the default view.
      locale
      The locale for the HTML preview files.
      featureFile
      Deprecated and no longer used.
      sampleSite
      The location of the locale-specific store preview page relative to the following path:
      • WC_eardir/SiteAdministration.war/ tools/devtools/preview
    4. Upload the modified file into the EAR by following the steps to upload a single file. See, Deploying J2EE assets for a single file.
    5. Verify that the new store archive is displayed in the appropriate view of the Publish wizard.