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 2023-11-17 09:23 UTC

This package is auto-updated.

Last update: 2024-11-17 13:29:45 UTC


README

Latest Version on Packagist Software License Supported Magento Versions

Create an "is_sale" product attribute and update it automatically from the price attributes

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

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

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

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email avs@integer-net.de instead of using the issue tracker.

Credits

License

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