<!-- TITLE: New and Sale Pages - Magento 2 module documentation-->
# New and Sale Pages Module
## Module overview
New and sale product's page
* Sales page available on `/salespage/` page (eg. https://sample.local/salespage/) - base on `Special Price` product attribute
* New products page available on `/newproducts/` page (eg. https://sample.local/newproducts/) - base on `Set Product as New From/To` product attributes
## Module compatibility
This module is compatibile with Magento Community versions: **2.4**
## How it works
### Sales page
Set for product `Special Price` attribute on a selected product at **Catalog > Products** and list of sale products is avalible on `/salespage/` page
![Sales](/uploads/new-and-sale-pages/sales.png "Sales")
### New products page
Set for product `Set Product as New From/To` attributes on a selected product at **Catalog > Products** and list of new products is avalible on `/newproducts/` page
![Sales](/uploads/new-and-sale-pages/newproducts.png "New products")
## Installation
### Composer
1. Add repo to composer.json:
```text
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:aurora-modules/new-and-sale-pages.git"
}
...
],
```
2. Add package to composer.json:
```text
"require": {
...
"aurora/module-new-and-sale-pages": "*"
...
},
```
3. In Magento root folder run commands:
```text
composer update aurora/feed
php bin/magento module:enable Aurora_NewAndSalePages
php bin/magento setup:upgrade
```
### Manual
1. Unzip archive.
2. Upload extension files on your server to:
```text
{Magento root}
└── app/
└── code
```
3. In Magento root folder run commands:
```text
php bin/magento module:enable Aurora_NewAndSalePages
php bin/magento setup:upgrade
```
### Thank you for your interest in our products!
## Changelog
### v1.1.0
- GitLab CI/CD.
- Code refactoring - coding standards, type hints.
### v1.0.0
- Module init.