Automated Related Products

Integrators can now show automated related products instead of manually adding them. The relationship is computed by checking the occurrences of other products on all orders made in the past. The items are sorted in descending order of their rank.

Enabling Features

By default, the manual related products will be active. To change this, go to Core dna DXP > Prodcatalogue > Configure > Manage Configuration > Product Relationships and enable "Enable Automated Relationship". You can also specify the maximum number of items that will be displayed in the front end (defaults to 10). Once enabled, you will be able to see the generated related products that were computed from the previous day's data.

Preview Results

DXP

After enabling this feature, you can see the list of products that are generated in the Product's Relations Tab. The interface will replace the manual relationship page and will just be a list of products. These list are read only.

Front End

The way previous integrations for the related products should not be affected by this update. The related products can be accessed using the $product object passed in the product details page and calling the getRelatedProducts(). If the automated related product feature is turned on, then the method will return the automated result, otherwise it will just display the manual related products. The returned data is an array of product objects.

Remarks

The automated related products are being generated once every day. This means that new products that were just created will not have any items, which makes sense since they don't have any orders yet. This will be updated the next day.