Download the PHP package thousandmonkeys/m2-productattributeautoblock-module without Composer
On this page you can find all versions of the php package thousandmonkeys/m2-productattributeautoblock-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thousandmonkeys/m2-productattributeautoblock-module
More information about thousandmonkeys/m2-productattributeautoblock-module
Files in thousandmonkeys/m2-productattributeautoblock-module
Package m2-productattributeautoblock-module
Short Description A Magento 2 module add a static block to a product page (for instance an extra description) based on an attribute value. Multiple attributes with multiple values are supported.
License OSL-3.0 AFL-3.0
Informations about the package m2-productattributeautoblock-module
productAttributeAutoBlock_magento2
Add a static block to a product page (for instance an extra description) based on an attribute value. Multiple attributes with multiple values are supported.
Tested and working on magento 2.1.7 & Luma (other themes can and will vary).
Installation
- composer require thousandmonkeys/m2-productattributeautoblock-module
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy
Usage
Go to Stores/Configuration/thousandmonkeys/Product Attribute Auto Block
and enter a comma separated list of attribute ids (for instance color,size
).
The module adds another description block to the product page. It attempts to load a list of static blocks using identifiers in the format attributeid_attributevalue
(lowercase). So for an item with the color
attribute set to green
then identifier of your block should be color_green
. If a block is not found then nothing is shown.