<!-- TITLE: Automatic Related Products En -->
<!-- SUBTITLE: A quick summary of Automatic Related Products En -->
# Automatic Related Products for Magento 2
## Introduction:
Automate adding related, up-sells and cross-sells products for particular products. You can use variety conditions to customize displayed products.
## Installation with Composer:
* connect to your server with SSH,
* navigation to your project and run these commands:
```text
$ composer require aurora/module-automatic-related-products
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Update with Composer (if extension was installed by Composer):
```text
$ composer update aurora/module-automatic-related-products
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Installation without Composer:
* buy extension,
* unzip archive,
* upload extension files on your server to: {Magento root}/app/code
* in Magento root folder run commands:
```text
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
```
## Features
### Front office features:
* you can display related products and upsells products native blocks in product page automatically for all products which match conditions criteria,
![Image 1](/uploads/automatic-related-products/image-1.png "Image 1")
![Image 3](/uploads/automatic-related-products/image-3.png "Image 3")
* In cart native block with cross-sell products will be displayed if added products match conditions criteria.
![Image 7](/uploads/automatic-related-products/image-7.png "Image 7")
### Back office options:
* create, edit and remove rules,
![Image 4](/uploads/automatic-related-products/image-4.png "Image 4")
* set conditions for applied products and for appropriate products to display within blocks.
![Image 5](/uploads/automatic-related-products/image-5.png "Image 5")
### Configuration:
* you can configure maximum products to display in block and their sorting in:
Stores >> Configuration >> Sales >> Automatic Related Products.
![Image 6](/uploads/automatic-related-products/image-6.png "Image 6")
### Creating new rule:
* you can create new rule in: Marketing >> Related Products Rules
* press on the "Add New Rule" button and then fill appropriate fields in form,
* after complete, click “Save Rule” and clear cache,
Note: if particular product has been set related products manually then these products will be displayed instead products generated by rules.
![Image 2](/uploads/automatic-related-products/image-2.png "Image 2")
## Demo
demo1.magecreation.com
## Changlog
### 1.3.0
- Fix code syntex with standards
- Fix unit tests
### 1.2.1
- Add AddToCart checkbox option on related products
### 1.2.0
- Fix products sort order
- Add AddToCart option to CrossSell products
### 1.1.17
- Change controllers to implemate http interfaces
### 1.1.16
- Remove ObjectManager at AbstractRelate
### 1.1.15
- Update to Magento version 2.4.5
### 1.1.14
- Update to Magento version 2.4.
### 1.1.13
- Fix related products type
### 1.1.12
- Add strict_types
### 1.1.11
- Change README
### 1.1.1
- Added compatibility with Magento Community 2.3 version.
- Added a Back Office switch which allows the Store administator to choose whether manually added related products on the product page are more important that ones chosen with module or not.