swissup/module-featured-attributes

Featured attributes extension from Swissup

Installs: 1 231

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 6

Forks: 2

Open Issues: 0

Type:magento2-module

1.1.7 2023-03-13 11:42 UTC

This package is auto-updated.

Last update: 2024-10-13 15:34:16 UTC


README

Extension Manual

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

Installation

For clients

There are several ways to install extension for clients:

  1. If you've bought the product at Magento's Marketplace - use Marketplace installation instructions
  2. Otherwise, you have two options:

For developers

Use this approach if you have access to our private repositories!

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

Usage

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.