Download the PHP package infrangible/m2-catalog-product-swatches without Composer
On this page you can find all versions of the php package infrangible/m2-catalog-product-swatches. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infrangible/m2-catalog-product-swatches
More information about infrangible/m2-catalog-product-swatches
Files in infrangible/m2-catalog-product-swatches
Package m2-catalog-product-swatches
Short Description Groundwork for other Infrangible modules: shows variant-specific product information on configurable product pages as soon as the shopper selects a variant.
License MIT
Homepage https://www.infrangible.dev/modules/catalog-product-swatches
Informations about the package m2-catalog-product-swatches
Infrangible Catalog Product Swatches
Base of modules that show values of the selected variant on the page of a configurable product: the page knows which variant the selected swatches (or options) match and updates the values whenever the selection changes. The module changes nothing in the store on its own.
Usage
An observer of the event catalog_product_swatch_attributes (data: product, swatch_attributes) adds the attributes
whose values are shown:
- The values are the labels of the options in the store of the product, or the plain values of attributes without options; only enabled variants count.
createAndAddSwatchAttribute()adds an attribute with values of another source (product ID => value).- The template gets
attributeId,attributeCode,attributeCodeClass,attributeValueandattributeValueClass(code and value in lower case with_for other characters than letters and digits). - When the selection changes,
.column.maintriggers the eventswatch.changedwith the ID of the selected variant (or null) and the selected option IDs by attribute ID.
The Hyvä theme needs Infrangible Catalog Product Swatches Hyvä.
Requirements
- Magento Open Source or Adobe Commerce 2.4.6 or newer
- PHP 8.1 or newer
Installation
In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.
License
Infrangible Catalog Product Swatches is licensed under the MIT License - see the LICENSE file for details.
All versions of m2-catalog-product-swatches with dependencies
fewedev/base Version ~2.4.1
infrangible/m2-core Version ~5.0.4
infrangible/m2-foundation Version ~3.0.1
magento/framework Version ~103.0.6
magento/module-catalog Version ~104.0.0
magento/module-configurable-product Version ~100.4.0
magento/module-eav Version ~102.1.0
magento/module-swatches Version ~100.4.0
psr/log Version ~2.0.0||~3.0.0