Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Slightly less illiterate version.
  • Loading branch information
lingwooc authored Jul 4, 2017
1 parent 06065f3 commit 96f4ced
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# productAttributeAutoBlock_magento2
Add a static block to a product page (for instance an extra description) based on an attribute value. Only one attribute is currently supported.
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.6 & Luma (other themes can and will vary).
Tested and working on magento 2.1.7 & Luma (other themes can and will vary).

# Installation
- Extract over your magento installation.
Expand All @@ -10,4 +10,6 @@ Tested and working on magento 2.1.6 & Luma (other themes can and will vary).
- php bin/magento setup:static-content:deploy

# Usage
Go to Stores/Configuration/thousandmonkeys/Product Attribute Auto Block and enter the id of the attribute (for instance "color"). The module adds another description block to the product page. It attempts to load a static block using and identifier in the format attributeid_attributevalue. So for an item with the color attribute color set to green then identifier of your block should be color_green. If a block is not found then nothing is shown.
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.

0 comments on commit 96f4ced

Please sign in to comment.