PHPackages                             sherocommerce/module-featuredproduct - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sherocommerce/module-featuredproduct

ActiveMagento2-module

sherocommerce/module-featuredproduct
====================================

Magento 2 Featured Product Module

01PHP

Since Oct 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/klajdish/module-featuredproduct)[ Packagist](https://packagist.org/packages/sherocommerce/module-featuredproduct)[ RSS](/packages/sherocommerce-module-featuredproduct/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

---

FeaturedProduct Module
======================

[](#featuredproduct-module)

This Magento 2 module adds a custom featured product block to the homepage, with configurable options for SKU and image placement.

Features
--------

[](#features)

- **Product SKU Configuration**: Set the featured product SKU directly from the admin panel via the system configuration.
- **Image Placement Option**: Choose where the product image appears on desktop view — either on the left or the right of the product details.
- **Responsive Design**: The block is fully responsive, with a two-column layout on desktop and a one-column layout on mobile.
- **No SKU? No Block!**: If no SKU is set in the configuration, the block will not be displayed.

Requirements
------------

[](#requirements)

- **Magento Version**: Tested on Magento 2.4.6-p3.
- **PHP Version**: Compatible with PHP 8.0+ (tested on PHP 8.1).

Installation
------------

[](#installation)

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/SheroCommerce`
- Enable the module by running `php bin/magento module:enable SheroCommerce_FeaturedProduct`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Install the module composer by running `composer require sherocommerce/module-featuredproduct:dev-main`
- Enable the module by running `php bin/magento module:enable SheroCommerce_FeaturedProduct`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

Configuration
-------------

[](#configuration)

After installation, the module can be configured via the Magento admin panel:

- Navigate to **Stores** &gt; **Configuration** &gt; **Shero Commerce** &gt; **Featured Product**.
- **Product SKU**: Enter the SKU of the featured product you want to display.
- **Image Placement**: Select "Left" or "Right" to determine where the product image will appear relative to the details on the desktop version.

Notes
-----

[](#notes)

- **CSS BEM Methodology**: The LESS styles follow the BEM methodology for better structure and maintainability.
- **PHPCS Standard**: Applied Magento2 PHPCS coding standards.
- **General vs Specific Classes**: I intended to create more general classes, but those are better suited for theme-level scope.

Screenshots
-----------

[](#screenshots)

1. **Desktop Layout - Image on the Left:**

    [![Desktop Image Left](docs/images/screenshot-1.png)](docs/images/screenshot-1.png)
2. **Mobile Layout:**

    [![Mobile Layout](docs/images/screenshot-2.png)](docs/images/screenshot-2.png)
3. **Desktop Layout - Image on the Right:**

    [![Desktop Image Right](docs/images/screenshot-3.png)](docs/images/screenshot-3.png)
4. **Product Configuration:**

    [![Product Configuration](docs/images/screenshot-4.png)](docs/images/screenshot-4.png)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e83e97a9a20f21e7168aa23ff739cbac9d665a056a71530a1b1f89197c08199?d=identicon)[klajdish](/maintainers/klajdish)

---

Top Contributors

[![klajdish](https://avatars.githubusercontent.com/u/106752823?v=4)](https://github.com/klajdish "klajdish (5 commits)")

### Embed Badge

![Health badge](/badges/sherocommerce-module-featuredproduct/health.svg)

```
[![Health](https://phpackages.com/badges/sherocommerce-module-featuredproduct/health.svg)](https://phpackages.com/packages/sherocommerce-module-featuredproduct)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
