### Requirements
__________________
* PHP 7.2
    * `ionCube` module
* MySQL 5.7

### CRONs
__________________
```
* * * * * /usr/bin/php /var/www/trends-hunters.com/www/oc_cli.php catalog tool/mail >> /var/www/trends-hunters.com/storage/logs/crontab.log 2>&1
*/3 * * * * /usr/bin/php /var/www/trends-hunters.com/www/oc_cli.php catalog tool/telegram
5 * * * * /usr/bin/php /var/www/trends-hunters.com/www/oc_cli.php adaccess oc_cli/filter_generate
* * * * 1-5 /usr/bin/php /var/www/trends-hunters.com/www/oc_cli.php adaccess oc_cli/newsletter_update_price_reminder
0 1 * * * /usr/bin/php /var/www/trends-hunters.com/www/oc_cli.php adaccess oc_cli/remove_old_products
* 0 3 * * * wget https://trends-hunters.com/index.php?route=extension/feed/google_sitemap/buildSitemap
0 8 * * * wget https://trends-hunters.com/index.php?route=api/currency/refresh
```

### Hints
__________________
#### Database migrations
* Go to util directory to use (`cd util`)
* Don't forget to install composer dependencies (`composer install`)
##### Useful commands:
* Show available commands
````
bin/database
````
* Show migrations status
````
bin/database migrations:status
````
* Generate empty migration file
````
bin/database migrations:generate
````
* Executed all new migrations
````
bin/database migrations:migrate
````
* Executed only one of new migrations
````
bin/database migrations:migrate next
````
* Revert last executed migration
````
bin/database migrations:migrate prev
````
* Create category All and link existing products to it
```
php ./oc_cli.php adaccess oc_cli/default_category
```

----
#### Configs
* Add constant to main config.php
```
define('IN_SHOWROOM_FILTER_ID', '9');
```
* Add constant to **admin** config.php
```
define('OLD_SIZE_CHART_OPTION_ID', '13');
```
