integer-net / magento2-product-is-new-attribute
Create an "is_new" product attribute and update it automatically from the "news_from_date" and "news_to_date" attributes
Installs: 1 307
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 0
Open Issues: 1
Type:magento2-module
Requires
- php: ~7.4||~8.1
- magento/framework: ^103.0.0
Requires (Dev)
- magento/magento-coding-standard: @dev
- pds/skeleton: ^1.0
- phpro/grumphp: ^v0.21.0
- phpstan/phpstan: ^0.12.0
- phpunit/phpunit: ^6.0|^9.0
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-11-04 18:49:20 UTC
README
Create an "is_new" product attribute and update it automatically from the "news_from_date" and "news_to_date" attributes
Installation
-
Install it into your Magento 2 project with composer:
composer require integer-net/magento2-product-is-new-attribute
-
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 avs@integer-net.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.