PHPackages                             magenerds/baseprice - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. magenerds/baseprice

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

magenerds/baseprice
===================

This module displays base prices

2.1.0(5y ago)40107.4k↓17.8%40[18 issues](https://github.com/Magenerds/BasePrice/issues)[8 PRs](https://github.com/Magenerds/BasePrice/pulls)OSL-3.0PHP

Since Dec 30Pushed 5y ago14 watchersCompare

[ Source](https://github.com/Magenerds/BasePrice)[ Packagist](https://packagist.org/packages/magenerds/baseprice)[ RSS](/packages/magenerds-baseprice/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

Magenerds\_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:

- kg
- g
- mg
- l
- ml
- m
- cm
- mm

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
----------------------

[](#extension-installation)

The easiest way to install the Magenerds module is via composer

```
# add to composer require
composer require magenerds/baseprice

# run magento setup to activate the module
bin/magento set:up

```

Extension activation
--------------------

[](#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 `Stores > Configuration`.
There you will find the entry `Magenerds > Base Price`.
After clicking on it you see a dropdown box where you can enable/disable the module. Save the configuration and delete the cache.

[![BasePrice-Activation](_images/bp_activation.png?raw=true "BasePrice Activation")](_images/bp_activation.png?raw=true)

Extension configuration
-----------------------

[](#extension-configuration)

The extension can be configured if you go to `Stores > Configuration` and afterwards to `Magenerds > Base Price`.
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:

- {BASE\_PRICE}: Renders the calculated base price
- {REF\_AMOUNT}: Renders the reference amount
- {REF\_UNIT}: Renders the reference unit

**Example**: {BASE\_\_PRICE} / {REF\_\_AMOUNT} {REF\_\_UNIT} will render to 2.90€ / 10 kg in the frontend.

[![BasePrice-Template](_images/bp_config_1.png?raw=true "BasePrice Template")](_images/bp_config_1.png?raw=true)

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.

[![BasePrice-Mapping](_images/bp_config_2.png?raw=true "BasePrice Mapping")](_images/bp_config_2.png?raw=true)

How to use
----------

[](#how-to-use)

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

- Product amount: Select the amount the product gets selled with quantity 1
- Product unit: Select the unit the product gets selled with
- Reference amount: Select the reference amount the product price has to be calculated with
- Reference unit: Select the reference unit the product price has to be calculated with

**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:

- Product amount: 100
- Product unit: ml
- Reference amount: 1
- Reference unit: l

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

[![BasePrice-Usage](_images/bp_use.png?raw=true "BasePrice Usage")](_images/bp_use.png?raw=true)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 73.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~94 days

Recently: every ~229 days

Total

16

Last Release

2016d ago

Major Versions

1.3.0 → 2.0.02018-12-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc7198de4a15248d6df7f5622ef0470a18a672d2b5a33ed6098c8352886c134c?d=identicon)[magenerds](/maintainers/magenerds)

---

Top Contributors

[![sydekumf](https://avatars.githubusercontent.com/u/3983052?v=4)](https://github.com/sydekumf "sydekumf (31 commits)")[![Mardl](https://avatars.githubusercontent.com/u/35043036?v=4)](https://github.com/Mardl "Mardl (2 commits)")[![ffalkone](https://avatars.githubusercontent.com/u/39594405?v=4)](https://github.com/ffalkone "ffalkone (2 commits)")[![sippsolutions](https://avatars.githubusercontent.com/u/1697820?v=4)](https://github.com/sippsolutions "sippsolutions (2 commits)")[![NikolasMeyer](https://avatars.githubusercontent.com/u/3246790?v=4)](https://github.com/NikolasMeyer "NikolasMeyer (1 commits)")[![mvenghaus](https://avatars.githubusercontent.com/u/6408081?v=4)](https://github.com/mvenghaus "mvenghaus (1 commits)")[![Bullitt300](https://avatars.githubusercontent.com/u/6186155?v=4)](https://github.com/Bullitt300 "Bullitt300 (1 commits)")[![atlan](https://avatars.githubusercontent.com/u/3852341?v=4)](https://github.com/atlan "atlan (1 commits)")[![niclashoyer](https://avatars.githubusercontent.com/u/175808?v=4)](https://github.com/niclashoyer "niclashoyer (1 commits)")

### Embed Badge

![Health badge](/badges/magenerds-baseprice/health.svg)

```
[![Health](https://phpackages.com/badges/magenerds-baseprice/health.svg)](https://phpackages.com/packages/magenerds-baseprice)
```

###  Alternatives

[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)[magenerds/germanlaw

This module provides general settings for german stores

2178.6k](/packages/magenerds-germanlaw)[magepal/magento2-form-field-manager

Customer and Address Form Fields Manager for Magento2

293.8k](/packages/magepal-magento2-form-field-manager)[magenerds/richsnippet

This module provides rich snippet functionality

1025.3k](/packages/magenerds-richsnippet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
