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:
- 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.
- 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.
- Before a simple option is selected, the Related Products block is not displayed for configurable products that do not have the Color attribute assigned.
- If no matching products are found for the Same As condition, the Related Products block is not displayed (including for simple products).
- 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.
Related Articles
How to assign simple options to configurable products?
In order to assign simple products to the configurable ones, it is necessary for them to already exist in Magento. Therefore, at first, I'd recommend importing all the products. Here are the minimum required fields to import a new product: Root ...
How should I submit configurable products with their variants to Google Merchant?
Google advises using the item group ID [item_group_id] attribute to group product variants in the product data. Variants are a group of similar products that only differ from one another by product details like size [size], color [color], material ...
Is it possible to assign different statuses for child products of a configurable/bundle/grouped product?
The extension allows setting different statuses to products based on their attributes (like color, size, SKU, stock availability, etc) and dynamically change the status depending on the available quantity of the product. The feature is available for ...
Why can’t I use an attribute as a condition in Where to Display and Products to Display tabs?
Some attributes might not be available in the conditions list when you create a new related rule. To add an attribute to the conditions, follow the steps below: Step 1. Navigate to Stores → Attributes → Product, choose the attribute and open the ...
Can I create a discount that will/won't be applied to certain products?
This article contains instructions on how you can limit discount application to specific products. This approach is universal, and can be used not only in promotions from Amasty modules, but also in default cart prices rules. If you can't find the ...