# Omnibus
## Module overview
The module adapts the store to the requirements of the Omnibus directive.
### Functionality
1. Module displays the cheapest price of product in 30 days
2. Product indexer clear saved records older than 30 days
3. Module allow sent review only for customers who buy the product
## Configuration
After installing the module, head to Admin Panel, and go to `Stores -> Settings -> Configuration -> Aurora -> Aurora Omnibus`
![Config](/uploads/omnibus/config.png "Configuration")
** General / Enabled module ** - Enable/Disable module.
** Reviews / Add Review Policy Information ** - Enable/Disable information about the policy of adding reviews.
** Reviews / Information content ** - The content of information about the policy of adding reviews.
** Reviews / Link text ** - Text displayed as a link to the CMS page.
** Reviews / Cms Page ** - CMS page to which the link placed in the content of the information will direct.
** Reviews / Review Guard Enable ** - Enables/Disables the ability to add reviews only by logged in users who have purchased the product.
** Price / Price Info ** - Show/Hide the block containing the lowest price in the last 30 days.
Product details on the product page after module configuration:
![Sample 1](/uploads/omnibus/sample-1.png "Sample 1")
Details information about the opinion adding policy:
![Sample 2 Review Policy Info](/uploads/omnibus/sample-2-review-policy-info.png "Sample 2 Review Policy Info")
Listing price information:
![Sample 3 Listing](/uploads/omnibus/sample-3-listing.png "Sample 3 Listing")
## Instalation
### Composer
1. Add reporsitory to composer.json:
```
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:aurora-modules/module-omnibus.git"
}
...
]
```
2. Add package to composer.json:
```
"require": {
...
"aurora/module-omnibus": "1.*"
...
},
```
3. In magento root folder run commands:
```
$ composer update aurora/module-omnibus
$ php bin/magento module:enable Aurora_Omnibus
$ php bin/magento setup:upgrade
```
### Manual
1. Buy extension.
2. Unzip archive
3. Upload extension files on your server to: `{Magento root}/app/code/`
4. In magento root folder run commands:
```
$ php bin/magento module:enable Aurora_Omnibus
$ php bin/magento setup:upgrade
```
### Thank you for your interest in our products!
## Change Log
### v1.2.3
- Fix switching omnibus price for configurable
### v1.2.2
- Fix displaying product price
### v1.2.1
- Fix calculating omnibus price for configurable
- Fix displaying price for configurable if no option selected
- Added styles
### v1.2.0
- Changed price display method - removed extra block, applied customized price template.
- Added a new price type - Omnibus
- Removed the ability to set whether the price displayed is tax / excl. tax. The price is displayed as in the main shop configuration
- The ability to configure the display for products that are not on sale has been removed. Whenever a product has special price and the regular price is displayed, the omnibus price is displayed.
- Added display of price information on listings, grids, wishlist.
- Display of price information for bundle products has been improved.
- Added endpoint api
### v1.1.18
- Fix bug catch
### v1.1.17
- Added changing the price for configurable products
### v1.1.16
- Fix a bug - no price in the template for new products
### v1.1.15
- Fix bug - no setId when trying to change product price via API
### v1.1.14
- Extension attributes optimalization
- Added gitlab-ci
### v1.1.13
- Fix added extension attributes in configurable product
### v1.1.12
- Fix bug - error when price is null
### v1.1.11
- Added configuration option: Display Review Policy Information [Y/N]
- Added configuration option: Display your own content of Review Policy information. You can add link to cms page
- Added configuration option: link to CMS page [select]
- Added transtalion
- Fix bug: function on null
### v1.1.10
- Fix bug - omnibus price info is not display if product was disabled
### v1.1.9
- Fix reindexing prices in configurable products (reindex parrent product if simple product price change)
### v1.1.8
- Indexer optimalization
### v1.1.7
- Fix displaying price
- Improved Readme information
### v1.1.6
- Downgrade composer.json requirements
### v1.1.5
- Refactoring
- Improved PHPDocs
- Fix working for configurable protuct
- Improved translation
- If current product price is the lowest shows information "Current price is the lowest (in 30 days)."
- Change stored data
- Added cron job to refresch omnibus data
- Added indexer dependency to catalog_product_price
### v1.1.4
- Fix db_schema bug
### v1.1.3
- Fix bugs
### v1.1.2
- Fix Aurora menu in AdminPanel
- Refactoring - enable module in php 7.3
### v1.1.1
- Fix default config file
- Refactoring - enable module in Magento 2.4.3
### v1.1.0
- Change logic - store all product prices since 30 days, get prices from catalog_product_index_price
- Chaned the data stored in the database
- Added reindex stored price after save product
- Added configuration option: Show Lowest Price Block [Y/N]
- Added configuration option: Show if regular price [Y/N]
- Added configuration option: Enable/Disable Review Guard
- Added default configuration file
- Added link to Review Policy CMS page in information in review block
- Added creating review policy cms page after module installation
- Improved translation
- Improved Readme
- Improved PSR
- Removed whitelist