2017 © Pedro Peláez
 

magento2-module m2-productattributeautoblock-module

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.

image

thousandmonkeys/m2-productattributeautoblock-module

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.

  • Monday, April 23, 2018
  • by lingwooc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 97 % Grown

The README.md

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., (*1)

Tested and working on magento 2.1.7 & Luma (other themes can and will vary)., (*2)

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)., (*3)

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., (*4)

The Versions

23/04 2018

dev-master

9999999-dev

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.

  Sources   Download

OSL-3.0 AFL-3.0

08/04 2018

v1.0.1

1.0.1.0

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.

  Sources   Download

OSL-3.0 AFL-3.0