swissup/module-featured-attributes dev-master

Featured attributes extension from Swissup

Type

magento2-module

License

OSL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Featured Attributes

Extension Manual

http://docs.swissuplabs.com/m2/extensions/featured-attributes/

Installation

cd <magento_root>
composer config repositories.swissup composer https://docs.swissuplabs.com/packages/
composer require swissup/module-featured-attributes --prefer-source
bin/magento module:enable Swissup_Core Swissup_FeaturedAttributes
bin/magento setup:upgrade

Insert code in template /Magento_Catalog/templates/product/list.phtml

<?php
    if ($this->helper('Magento\Catalog\Helper\Data')->isModuleOutputEnabled('Swissup_FeaturedAttributes')) {
        echo $block->getLayout()
            ->createBlock('Swissup\FeaturedAttributes\Block\Attributes')
            ->setProduct($_product)
            ->toHtml();
    }
?>

Enable extension and select attributes to display in Stores > Configuration > Swissup > Featured Attributes.