Not every combination of options makes sense. A certain finish may only be available for one material, or a service may exclude another. This module lets you define relations between option values of a product. When the shopper selects a value in one option, values in other options are enabled, disabled or hidden on the product page according to your rules, so only valid combinations can be chosen.
Features
- Relations between a source option value and a target option value of the same product.
- Four relation types: “Allow” (the target value can only be chosen when the source value is selected), “Allow & Hide” (as Allow, but the target value is hidden otherwise), “Prohibit” (the target value cannot be chosen when the source value is selected) and “Prohibit & Hide” (as Prohibit, and the value is hidden).
- Unavailable values are disabled or hidden instantly on the product page, and an already selected value is cleared when it becomes unavailable.
- Works with drop-downs, multiple selects, radio buttons and checkboxes.
- Each relation can be switched active or inactive.
Configuration
Relations can be managed in two places:
- Infrangible > Product Option Relation > Manage, with a grid of all relations, an edit form and mass delete.
- In the product edit page, in the “Product Option Relation” section, for the relations of that product.
For each relation choose the product, the source option and value, the target option and value, the type, and whether it is active.
Good to know
The rules are applied on the product page while the shopper makes a selection. Relations always connect options of the same product.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-product-option-relationThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.