Prerequisites to configure the merchandising attribute
Follow the steps in this document to create a merchandisable attribute dictionary and configure the attribute to be known by the HCL Commerce application. After the configuration, while uploading the products, Marketplace Seller’s name as attribute value is automatically assigned to a seller’s products as a descriptive attribute.
Before you begin
- Create a predefined value type of the attribute in the attribute dictionary with a Data Type as Text.
- Enable the Use in merchandising flag.
- To save the configuration effort, use MarketplaceSellers
as an identifier. This identifier is configured as the default value.Note: Use a different identifier if the identifier conflicts with existing attributes.
- Create the attribute in the attribute dictionary in the Catalog Asset Store as
the attribute is assigned to products managed in the catalog asset store. For
example, EmeraldCAS store. See Creating attributes in the attribute dictionary for more
information.Note: Do not create values for the attribute in the attribute directory, as a Marketplace Seller’s name is populated automatically once the seller starts uploading products.
- This attribute is managed by the HCL Commerce Marketplace feature, so create a dedicated attribute dictionary for this purpose. Do not modify and delete once the attribute dictionary is in use.
- This attribute can be used immediately when the Marketplace Seller starts uploading products. Setting it up before onboarding a Marketplace seller is recommended to ensure all their products are assigned with this attribute
- Suppose you are operating multiple marketplaces and allow Marketplace Sellers to contribute to different master catalogs in different catalog asset stores. In that case, you must create one attribute in each attribute dictionary with the same identifier.
Procedure
-
Open the wc-component.xml file available at the following
location for editing:
- Runtime: /profile/installedApps/localhost/ts.ear/xml/config/com.ibm.commerce.foundation/wc-component.xml
- Toolkit: <Installation Directory>/workspace/WC/xml/config/com.ibm.commerce.foundation/wc-component.xml
-
Locate the following property:
<!-- Marketplace seller attribute identifier. -->
<_config:property name="SellerAttributeIdentifier" value="MarketplaceSellers"/>
- Update the value with the attribute identifier you have created. If you want to disable this automatic assignment to the seller’s products, you can set it to an empty value.
- Re-deploy or restart the commerce server.