Product Relations

Product relations can be used to connect products irrespective of category, typically for the purpose of displaying links to one product on the detail page of another.

Here’s how it works: Every related product must be assigned to a Product Relation Type. These products can then be displayed by a product publisher widget configured to source data from the appropriate type.

By placing more than one product publisher widget on a product detail page, you can list multiple sets of related products. For instance, one widget might display a set of products that are alternatives to the product featured on the page, while another might display products that are accessories to the featured product.

Follow these steps:

  1. Add product relation types.

  2. Create product relations.

  3. Configure your product detail page(s) to display relations.

Adding Product Relation Types

Since the only function of a product relation type is to distinguish product relations from those of other types, the only unique property it needs is a name. Follow these steps to create and name a new type:

  1. Go to Control PanelConfigurationSystem Settings. Find the Commerce section, click Catalog and go to the Product Relations tab.

  2. Click Add to create a new type, or click the Options button to edit or delete an existing one.

  3. Enter a name and click Save.

Creating Product Relations

Follow these steps:

  1. Go to the catalog, select a product, and click the Product Relations tab.

  2. Select a relation type from the tabs on the left.

    Figure 1: The row of tabs at the left allows you to create multiple sets of related products.

    Figure 1: The row of tabs at the left allows you to create multiple sets of related products.

  3. Click the Add button and then check the box next to each product you want to set as a product relation of this type. Click Add.

Displaying Product Relations

You can display product relations on a product display page by configuring a product publisher widget. You must have a product display page in place first.

Follow these steps:

  1. Go to your product display page and place a Product Publisher widget on the page.

  2. Go to the widget’s Options menu and click Configuration.

  3. Set Product-Selection to dataSource. Then go to the Data-Source drop-down menu and choose a product relation type to be displayed in the widget.

  4. Click Save and close the dialog box.

That’s it! Your product page should now display the related products you specified.

« AttachmentsConfiguration »
1 人中有 0 人觉得有帮助