How to create a dynamic product group and assign it to the homepage in shopware 6?

dynamic product group and assign

Dynamic Product Groups are groups of products that are automatically formed by dynamic rules based on specific criteria, such as product type, brand, price range, or performance data.

To create a dynamic product group and assign it to the homepage in shopware 6, Please follow the below steps.

Step 1: Login to the admin panel and go to Catalogues >Dynamic product groups.

Step 2: Click on the Add dynamic product group button to create a new dynamic product group.

Step 3: On a new dynamic product group, there are two options available over there.

  • General Information
  • Condition

General Information:

Name: Enter the name of the product group.

Description: Enter the description of the product group.

Conditions:

In the Conditions section, you will define rules using a corresponding module to determine which products belong to the product group. To make rules for changing product groups in Shopware 6, you need to specify a base property. By default, it is Product, but you can set the following base property:

  • Product
  • Has cover image
  • Product number
  • Stock
  • Active
  • Available stock
  • On clearance sale
  • Manufacturer product number
  • GTIN/EAN
  • Free shipping
  • Purchase price
  • Marked as promoted
  • Weight
  • Width
  • Height
  • Length
  • Release date
  • Rating average
  • Sales
  • Name
  • Description
  • Delivery time
  • Manufacturer
  • Visibility
  • Variant values
  • Properties
  • Categories
  • Tags
  • Price
  • Date of creation
  • Percentage ratio price/list price
  • Option III
  • Option II
  • Option I

Afterward, you must select an operator. I’m using the Available stock attribute, Shopware 6 allows you to choose from these values:

  • Is equal to
  • Is greater than
  • Is greater than/equal to
  • Is less than
  • Is less than/equal to
  • Is not equal to
  • Between

Let’s set “Is equal to”.

Now, set the value of the available stock to 1, making it the first condition that needs to be fulfilled.

Any products which has one item in stock will be part of this dynamic product group. And you can also see a preview of this condition by clicking on the “Preview” button.

To add additional condition for a product you can also use the “AND” button. All the condition must be met for the product to be part of the group.

You can also use the “OR” condition to create an alternative requirement. If one of the condition is met out of two, then the product will be included in the group.

The “SUBCONDITION” button creates additional rules that must be met with the main container. You can create several sub-conditions with various relationships to one another.

On the right side of the context menu, you can create a new rule before or after the existing rule. And, you can also delete the block using the same menu.

Step 4: Now click on the Save button to save the dynamic product group.

Note:- Dynamic group products can be used on Categories, Product comparisons, and Shopping experiences.

To assign the dynamic product group on the homepage. Follow the below steps.

Step 1: On the shopware 6 dashboard, go to Content > Shopping Experiences.

Step 2: Now, open the layout which you assign on the homepage.

Step 3: Choose the “Commerce” block category and assign the “Product slider” element.

Step 4: On the Content section of element settings.

  • Slider Title:- Enter the product slider title which will display on the homepage.
  • Product assignment:- In this section, there are two options available Manual assignment and Dynamic product group. Choose the Dynamic product group option.
  • Dynamic product group:- Choose the Dynamic product group which we created.

Step 5: Click on the Save button and clear the cache.

It will look like this on the homepage.

Please contact us at manish@bay20.com or call us at +91-8800519180 for any support related to shopware. You can also visit the Shopware 6 development page to check the services we offer.