Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to Create a Product Display Entity Reference and Block View of Related Products
This will guide you through creating a Related Products block for Drupal Commerce. I found this thread while looking for a solution myself. I am happy to answer any questions or suggestions for improvement.
Add a new Entity Reference field. For this example, the field is labeled "Related Products", and named "pd_related_products". The widget type is Autocomplete.
Choose the number of values. For this example, this is set to "Unlimited".
Select the "Target type" of "Node".
Select the target bundles. For this example, there is only one product display. Therefore, we highlight "Product Display".