PHPackages                             integer-net/magento2-product-sale-attribute - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. integer-net/magento2-product-sale-attribute

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

integer-net/magento2-product-sale-attribute
===========================================

Create an "is\_sale" product attribute and update it automatically from the "price" and "special\_price" attributes

1.0.0(2y ago)21.1kMITPHPPHP ~7.4||~8.1

Since Nov 17Pushed 2y ago5 watchersCompare

[ Source](https://github.com/integer-net/magento2-product-sale-attribute)[ Packagist](https://packagist.org/packages/integer-net/magento2-product-sale-attribute)[ RSS](/packages/integer-net-magento2-product-sale-attribute/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

IntegerNet\_ProductSaleAttribute Magento Module
===============================================

[](#integernet_productsaleattribute-magento-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/83f35bbb2f0d37b1842ceeb50bf1f37c514b3db1c7c7dbdca0480b6a9eed491d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74656765722d6e65742f6d6167656e746f322d70726f647563742d69732d73616c652d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/integer-net/magento2-product-sale-attribute)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Supported Magento Versions](https://camo.githubusercontent.com/5e4d61c6b305db26156ae5a47b1a3c597a2f7b0326fef306ad41db9357328690/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5e4d61c6b305db26156ae5a47b1a3c597a2f7b0326fef306ad41db9357328690/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

---

Create an "is\_sale" product attribute and update it automatically from the price attributes

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

[](#installation)

1. Install it into your Magento 2 project with composer:

    ```
    composer require integer-net/magento2-product-sale-attribute

    ```
2. Enable module

    ```
    bin/magento setup:upgrade

    ```

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

[](#configuration)

You can disable auto generation in `Store -> Configuration -> Catalog -> Product "Is Sale" Attribute -> Will be updated automatically every night` per Store View.

Usage
-----

[](#usage)

A sale product attribute "Is Sale" (`is_sale`) will be created upon installation of this module. A cronjob is running every night at 00:01 and regenerates the value of this attribute for each product, depending on the content of the price attributes (`price` and `special_price`) and catalog price rules.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Andreas von Studnitz](https://github.com/avstudnitz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

906d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78e73cb79c6200c1d74eb632e79da9d227041735160b9795a1146537ba58f386?d=identicon)[integer-net](/maintainers/integer-net)

---

Top Contributors

[![avstudnitz](https://avatars.githubusercontent.com/u/662059?v=4)](https://github.com/avstudnitz "avstudnitz (6 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/integer-net-magento2-product-sale-attribute/health.svg)

```
[![Health](https://phpackages.com/badges/integer-net-magento2-product-sale-attribute/health.svg)](https://phpackages.com/packages/integer-net-magento2-product-sale-attribute)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27659.1k4](/packages/nosto-module-nostotagging)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

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