How to use the 'same as' condition for the color attribute of the configurable products?

How to use the 'same as' condition for the color attribute of the configurable products?

Starting with version 2.26.0 it is possible to display related products using the ‘same as’ condition based on child options of configurable products. You need to install the 'amasty/module-automatic-related-products-subscription-functionality' package from composer suggest to use this functionality (the functionality is available as a part of an active product subscription or support subscription).  It is also available on the Hyva theme. Please additionally install the 'amasty/module-automatic-related-products-sub-func-hyva' package.

How it works:

  1. When the Apply "Same As" Condition is configured with the Color attribute, the Related Products block for configurable products is generated based on the attributes of the selected simple option. 

  1. If the Update Related Products Block for Configurable Product Options setting is enabled and the configurable product itself does not have a Color value assigned, the Related Products block is displayed only after a simple option is selected.



  1. Before a simple option is selected, the Related Products block is not displayed for configurable products that do not have the Color attribute assigned.
  2. If no matching products are found for the Same As condition, the Related Products block is not displayed (including for simple products).
  3. When the selected child option of a configurable product is changed, the Related Products block is refreshed according to the Color attribute of the newly selected child product.