Develop > Presentation layer > Customize marketing > Work with Product Advisor


Create a metaphor XML input file

Create an XML input file to specify which store's metaphors you want to build, update, or delete with the create metaphor scheduler command.

Before creating an XML input file, determine the following for the catalog data to work with:

For more information about the XML specifications, see the pabatch.dtd file located...

Also, see the online help file documenting the Product Advisor XML input file DTD.

To create an input file:


Procedure

  1. Open a text editor. In the following directory, or a directory of the choice create a new XML file, or use the sample metaphor input XML file as a template:

    • WC_INSTALL/xml/tools/pa

    • WC_INSTALL\xml\tools\pa

  2. Type the following to specify processing information and the store ID for this execution of PACreateMetaphorBatchCmd scheduler command:

    <?xml version="1.0"?>   
    <builder>      
    <store SID="6001">
    </store>   
    </builder>
    

    where SID is the desired store ID. All other tags for this input file should be placed between the store begin and end tags.

  3. To build either a Product Explorer or a Product Comparison metaphor, use the following tags to specify the category to which the metaphor applies. <category ID="1"> </category>

  4. Refer to the online help file that details the preparation of the metaphor that to create:

    • Prepare a Product metaphor

    • Prepare a Guided Sell metaphor

      You can create more than one metaphor in the XML file. Category elements can contain both Product Comparison and Product Explorer metaphors, as long as they relate to that category.

      To create Product metaphors for different categories requires multiple category elements. Category elements cannot contain Guided Sell metaphors.

      Note that metaphors are defined for a particular category, and therefore will use the same set of attributes for all languages. If values do not exist for a specific language, or the attribute itself doesn't have a translated name, then the value will not be shown. This means that there is no default language for an attribute.

  5. Save the file.


Related concepts

Dynamic data beans

Widget beans


Related tasks

Create metaphors using the command utilities

Prepare a Product metaphor

Prepare a Guided Sell metaphor

Related reference

Product Advisor XML input file DTD

Sample: Product Advisor metaphor XML input file

Sample: Product Advisor JSP files


+

Search Tips   |   Advanced Search