An open API service indexing awesome lists of open source software.

https://github.com/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
https://github.com/integer-net/magento2-product-is-new-attribute

Last synced: 23 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# IntegerNet_ProductIsNewAttribute Magento Module

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
![Supported Magento Versions][ico-compatibility]

---

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](CHANGELOG.md) for more information on what has changed recently.

## Contributing

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

## Security

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

## Credits

- [Andreas von Studnitz][link-author]
- [All Contributors][link-contributors]

## License

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

[ico-version]: https://img.shields.io/packagist/v/integer-net/magento2-product-is-new-attribute.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-compatibility]: https://img.shields.io/badge/magento-2.3%20|%202.4-brightgreen.svg?logo=magento&longCache=true&style=flat-square

[link-packagist]: https://packagist.org/packages/integer-net/magento2-product-is-new-attribute
[link-author]: https://github.com/avstudnitz
[link-contributors]: ../../contributors