Develop > Persistence layer > Data assets > Create catalog assets


Display store-catalog assets

After associating a catalog, catalog groups, and catalog entries to a store, assign JSP templates to display the catalog entries and catalog groups by creating these relationships in the database. Create these relationships in the format of XML files that can be loaded into the database using the loading utilities


Procedure

  1. Before you can create store-catalog relationships, ensure that you have created the store data assets.

  2. In order to display the catalog groups (categories) in the store, assign JSP templates to the catalog groups. You can assign a particular display page template to a catalog group or a default template to display all catalog groups. Using the following example as the guide, assign catalog group templates by adding information to the DISPCGPREL table. Complete this task for each template to assign to the catalog groups:

    <dispcgprel
    catgroup_id="0"
    devicefmt_id="-1"
    dispcgprel_id="@dispcgprel_id_1"
    mbrgrp_id="0"
    pagename="ShoppingArea/CatalogSection/CategorySubsection/CategoriesDisplay.jsp"
    storeent_id="@storeent_id_1"
    rank="0"
    />
    

    There is a sequence field called RANK in the DISPCGPREL table that will determine which view will be chosen if there are multiple views that satisfy the criteria for display.

  3. To display the catalog entries (products, items, packages, static kits, bundles, and dynamic kits) in the store, assign JSP templates to the catalog entries. You can assign a default template to display all catalog entries, or a default to display each type of catalog entry, for example, a template for products and another template for items, or a specific template for a specific catalog entry. Using the following example as your guide, assign templates by adding information to the DISPENTREL table. Complete this task for each template to assign to the catalog entries:

    <dispentrel
    auctionstate="0"
    catentry_id="0"
    catenttype_id="PackageBean"
    devicefmt_id="-1"
    dispentrel_id="@dispentrel_id_4"
    mbrgrp_id="0"
    pagename="ShoppingArea/CatalogSection/CatalogEntrySubsection/PackageDisplay.jsp"
    storeent_id="@storeent_id_1"
    rank="0"
    />
    

    There is a sequence field called RANK in the DISPENTREL table that will determine which view will be chosen if there are multiple views that satisfy the criteria for display.


Related concepts

Catalog assets


+

Search Tips   |   Advanced Search