Skip to content

Create an "is_new" product attribute and update it automatically from the "news_from_date" and "news_to_date" attributes

License

Notifications You must be signed in to change notification settings

integer-net/magento2-product-is-new-attribute

Repository files navigation

IntegerNet_ProductIsNewAttribute Magento Module

Latest Version on Packagist Software License Supported Magento Versions


Create an "is_new" product attribute and update it automatically from the "news_from_date" and "news_to_date" attributes

Installation

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

    composer require integer-net/magento2-product-is-new-attribute
    
  2. Enable module

    bin/magento setup:upgrade
    

Configuration

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

Usage

A new product attribute "Is new" (is_new) 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 "Set Product as New From" (news_from_date and news_to_date) date attributes.

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 [email protected] instead of using the issue tracker.

Credits

License

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

About

Create an "is_new" product attribute and update it automatically from the "news_from_date" and "news_to_date" attributes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages