Download the PHP package opengento/module-minimal-price without Composer
On this page you can find all versions of the php package opengento/module-minimal-price. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opengento/module-minimal-price
More information about opengento/module-minimal-price
Files in opengento/module-minimal-price
Package module-minimal-price
Short Description This extension allows to set if a product is minimalPrice and can show its price by scope and customer group.
License MIT
Homepage https://github.com/opengento/magento2-minimal-price
Informations about the package module-minimal-price
Minimal Price Module for Magento 2
This extension allows to set a minimal price to a product (MAP).
- Setup
- Composer installation
- Setup the module
- Features
- Did You Know
- Support
- Authors
- License
Setup
Magento 2 Open Source or Commerce edition is required.
Composer installation
Run the following composer command:
Setup the module
Run the following magento command:
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
:
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 to the issue tracker.
Authors
License
This project is licensed under the MIT License - see the LICENSE details.
That's all folks!
All versions of module-minimal-price with dependencies
magento/framework Version *
magento/module-eav Version *
magento/module-catalog Version *
magento/module-catalog-rule Version *