Download the PHP package magenerds/baseprice without Composer

On this page you can find all versions of the php package magenerds/baseprice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of baseprice with dependencies

Informations about the package baseprice

Magenerds_BasePrice

With this extension you can show the base price of volume products to your customers.
If you have products which you sell in amounts and units this extension can calculate the base price.
The extension installs the following basic units and its conversions:

You can also extend the units and edit all conversions. Furthermore the display of the base price is editable. This extension also works for configurable products if you provide the necessary information for the configurable’s simple products.

Extension installation

The easiest way to install the Magenerds module is via composer

Extension activation

At any time you can enable and disable this extension in the system configuration.
You can do this by opening the backend menu .
There you will find the entry .
After clicking on it you see a dropdown box where you can enable/disable the module. Save the configuration and delete the cache.

Extension configuration

The extension can be configured if you go to and afterwards to .
After enabling the extension you can edit the base price template in order to influence the base price rendering in the frontend. You can type in whatever you want.
There are three variables available to render the base price information:

Example: {BASEPRICE} / {REFAMOUNT} {REF__UNIT} will render to 2.90€ / 10 kg in the frontend.

The extension install basic units and its conversions. But you can edit these conversions, delete the units or extend it with further units and its conversions.
Just click on Add below all those conversions in order to add another unit row. You define the product unit on the left side and the reference unit (the unit which the price will be calculated to) on the right side.

How to use

Every product needs detailed information about the base price calculation. There are four attributes which every product has:

Example: You have a product which is a bottle of milk which is 100 ml of size. It costs 2 €.
You want to display the price of milk for 1 l which is 20 €.
Therefore you have to configure your product like the following:

You can configure the attributes in a product edit mask under the tab Base Price on the left side.


Version
Requires magento/framework Version ^100.0.0|^101.0.0|^102.0.0|^103.0.0
magenerds/dashboard Version ^1.0

The package magenerds/baseprice contains the following files

Loading the files please wait ....