You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,8 +24,15 @@ Create an "is_new" product attribute and update it automatically from the "news_
29
24
30
25
## Configuration
31
26
27
+
You can disable auto generation in `Store -> Configuration -> Catalog -> Product "Is New" Attribute -> Will be updated automatically every night` per Store View.
28
+
32
29
## Usage
33
30
31
+
A new product attribute "Is new" (`is_new`) will be created upon installation of this module.
32
+
A cronjob is running every night at 00:01 and regenerates the value of this attribute for each
33
+
product, depending on the content of the "Set Product as New From" (`news_from_date` and
34
+
`news_to_date`) date attributes.
35
+
34
36
## Changelog
35
37
36
38
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
@@ -39,26 +41,6 @@ Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed re
39
41
40
42
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
41
43
42
-
## Testing
43
-
44
-
### Unit Tests
45
-
46
-
```
47
-
./vendor/bin/phpunit tests/unit
48
-
```
49
-
50
-
### Magento Integration Tests
51
-
52
-
0. Configure test database in `dev/tests/integration/etc/install-config-mysql.php`. [Read more in the Magento docs.](https://devdocs.magento.com/guides/v2.4/test/integration/integration_test_execution.html)
53
-
54
-
1. Copy `tests/integration/phpunit.xml.dist` from the package to `dev/tests/integration/phpunit.xml` in your Magento installation.
55
-
56
-
2. In that directory, run
57
-
``` bash
58
-
../../../vendor/bin/phpunit
59
-
```
60
-
61
-
62
44
## Security
63
45
64
46
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
@@ -74,16 +56,8 @@ The MIT License (MIT). Please see [License File](LICENSE) for more information.
0 commit comments