ProductVariants (optional)
https://github.com/magesuite/product-variants
This module adds the possibility to configure and display variations of a given product. All product variants are standalone simple products and they are all displayed on the product grid.
Â
Installation
This module is optional
composer require "creativestyle/magesuite-product-variants" ^1.0.0
Â
User Manual
Admin settings
Admin settings can be found in Stores -> Configuration -> MageSuite -> Product Variants
Name | Value | Comment |
---|---|---|
Is Enabled |  Yes/No | Default value: Yes |
Attribute Code | Â | Default attribute is "article_group_id" |
Short Name Pattern |
|
|
Â
In the product edit form article_group_id
(or another field, if the name of the attribute is custom) should be filled:
It is also possible to provide custom name in Variant Name
field. In such case settings from Short Name Pattern
will be ignored.
Â
Backend
Backend documentation and review of this documentation is needed.
Â
Frontend
Variant switcher template (MageSuite_ProductVariants::product/variant_switcher.phtml
) is added to the PDP buybox. It builds HTML and initializes Magento dropdown
widget.
n the XML dropdown label can be configured:
<block class="MageSuite\ProductVariants\Block\Product\VariantSwitcher" name="product.info.variant_switcher">
<arguments>
<argument name="label" xsi:type="string" translate="true">Product variants</argument>
</arguments>
</block>
Â
Frontend screens
Â
Styling
Product variants is an optional module and its styling must be enabled in pdp.ts
entry:
import 'MageSuite_ProductVariants';
Â