https://github.com/opengento/magento2-minimal-price
This module allows the merchants to set a minimal price for products.
https://github.com/opengento/magento2-minimal-price
magento magento-2 magento-extension magento-module magento2 magento2-extension magento2-extension-free magento2-module minimal-price price pricing
Last synced: about 1 year ago
JSON representation
This module allows the merchants to set a minimal price for products.
- Host: GitHub
- URL: https://github.com/opengento/magento2-minimal-price
- Owner: opengento
- License: mit
- Created: 2024-11-09T22:09:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-10T07:52:07.000Z (over 1 year ago)
- Last Synced: 2025-05-30T01:41:18.598Z (about 1 year ago)
- Topics: magento, magento-2, magento-extension, magento-module, magento2, magento2-extension, magento2-extension-free, magento2-module, minimal-price, price, pricing
- Language: PHP
- Size: 26.4 KB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Minimal Price Module for Magento 2
[](https://packagist.org/packages/opengento/module-minimal-price)
[](./LICENSE)
[](https://packagist.org/packages/opengento/module-minimal-price/stats)
[](https://packagist.org/packages/opengento/module-minimal-price/stats)
This extension allows to set a minimal price to a product (MAP).
- [Setup](#setup)
- [Composer installation](#composer-installation)
- [Setup the module](#setup-the-module)
- [Features](#features)
- [Did You Know](#did-you-know)
- [Support](#support)
- [Authors](#authors)
- [License](#license)
## Setup
Magento 2 Open Source or Commerce edition is required.
### Composer installation
Run the following composer command:
```
composer require opengento/module-minimal-price
```
### Setup the module
Run the following magento command:
```
bin/magento setup:upgrade
```
**If you are in production mode, do not forget to recompile and redeploy the static resources.**
## Features
Define the minimal price availability for a product. The price is capped to the minimal value if any special price,
tier price or catalog rule tries to price down the limit.
### Product Attributes
- `minimal_price`, available in the "Advanced Pricing" group.
If you use the native import export tool provided with Magento, the attribute `minimal_price` is mapped with the field `map_price`.
## Did You Know
### An hiding an never completed feature
While working on this project, it appears that Magento already has an attribute with code "minimal_price".
This attribute exists in Magento since forever. It's actually a system attribute which is not visible through the admin panel.
There is also a few method that refers to this attribute, such as:
- \Magento\Catalog\Model\Product::getMinimalPrice (Called in \Magento\Catalog\Pricing\Price\FinalPrice::getMinimalPrice)
- \Magento\Catalog\Model\ResourceModel\Product\Collection::joinMinimalPrice (Never called)
This attribute and methods are not used in the Commerce edition neither.
There is also some trace there: `\Magento\CatalogImportExport\Model\Export\Product`:
```
...
'minimal_price' => 'map_price',
'msrp' => 'msrp_price',
'msrp_enabled' => 'map_enabled',
...
```
This suggests that `minimal_price` is mapped as "Minimum Advertised Price" (MAP). MAP policies are legal documents brands
use to define the lowest legally possible advertised price for a product. It does set the minimum, some penalties may be
applied if a seller violates the MAP.
This module updates and reuse this existing attribute in order to give it a true usage.
## Support
Raise a new [request](https://github.com/opengento/magento2-minimal-price/issues) to the issue tracker.
## Authors
- **Opengento Community** - *Lead* - [](https://twitter.com/opengento)
- **Thomas Klein** - *Maintainer* - [](https://github.com/thomas-kl1)
- **Contributors** - *Contributor* - [](https://github.com/opengento/magento2-minimal-price/graphs/contributors)
## License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) details.
***That's all folks!***