Skip to content

A Magento 2 module for adding descriptions to product attributes.

License

Notifications You must be signed in to change notification settings

dmatthew/magento2-attribute-description

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1361fa0 · May 18, 2022

History

40 Commits
Apr 15, 2018
Aug 28, 2016
Apr 15, 2018
Aug 5, 2016
Jul 19, 2016
Apr 15, 2018
Aug 5, 2016
Aug 3, 2016
May 31, 2018
Apr 15, 2018
May 18, 2022
Jul 19, 2016

Repository files navigation

Dmatthew_AttributeDescription Module for Magento 2

This is a Magento 2 module that adds the ability to add desciptions to product attributes. Add descriptions to configurable attributes and display them on your product view pages. Use attribute descriptions to help explain complex attributes to your customers. If you have unique attributes that need additional explanations beyond the attribute's name then this module will work for you. Attribute descriptions are stored in a new eav_attribute_description table.

Managing Attribute Descriptions Though the Admin

Screenshot

Developer Usage

General Usage

/** @var $attribute Dmatthew\AttributeDescription\Model\Entity\Attribute **/
$description = $attribute->getStoreDescription($storeId);

Frontend Usage

The attribute description has been added to the JSON configuration for the Configurable product type. This means developers can use the product attribute description in any JS code which utilizes the \Magento\ConfigurableProduct\Block\Product\View\Type::getJsonConfig() function.

License

MIT