Product Price Formula

Product Price Formula



Magento Platform
Open Source (CE)
2.1, 2.2
Extends Page Builder

Tech Specifications

Current Version:
Stable Build
18 January, 2018
Extensions, Content & Customizations, Product Content
License Type:


Powerful extension to calculate the product price based on your custom math formula and product options.

Other Extensions by ITORIS INC


Back to top

The purpose of Product Price Formula is to provide more flexibility with the product price calculation. The website administrator can now use any custom mathematical formula to calculate the final product price. The input to formula is custom options the customer chooses on the form or the product attributes defined by the website administrator.

The price formula can be of any complexity, have math functions and constants, have conditional branching.

The extension will be useful for those who need a custom method of price calculation not supported by Magento, like:

  • Price calculation based on the object size or dimensions
  • Complex tier price calculation based on quantity and the custom options selected
  • Single setup fees for a bulk purchase not dependent on the quantity ordered
  • Additional fees that depend on multiple custom options or product attributes together



  • Ability to create complex logical conditions like: if () {} elseif () {} elseif () etc.
  • Ability to create multiple rules and formulas within a single product
  • Full flexible control over the final price via a chain of conditions
  • Conditional branching
  • Ability to use product options within conditions and price formulas
  • Ability to use product attributes within conditions and price formulas
  • Ability to use configurable options. Full support of configurable products
  • Ability to use quantity in conditions and formulas, allows creating custom tier pricing
  • Ability to use math functions like sin(), cos(), sqrt(), pow(), etc.
  • Ability to create different formulas for different customer groups
  • Ability to limit formulas in time by setting the date range. You can create limited time offers.
  • Ability to apply formula either to the item price or the row total in cart
  • Ability to calculate product's shipping weight based on your custom formula
  • Ability to disallow purchasing the product based on your custom validation criteria (formula or combination of custom options)
  • Ability to copy formulas from one product to multiple ones
  • Ability to export, import, backup formulas via a file



  1. You sell building materials where price bases on the object dimensions multiplied by the rate. See the "Price based on object size" DEMO
  2. You need to apply a single setup fee to a bunch of products not depending on the quantity ordered. See the "Setup Fee" DEMO
  3. You have a price matrix or a special promotion based on specific product options selected. See the "Price Matrix" DEMO


Release Notes

Back to top


  • Compatible with Open Source (CE) : 2.1 2.2
  • Stability: Stable Build
  • Description:

    1.6.3 (2017-10-11)
    * Fixed issue with saving custom validation criteria

    1.6.2 (2017-09-29)
    ^ Added compatibility with Magento 2.2

    1.6.1 (2017-09-27)
    ^ Skipping calculations if no active formula available for product

    1.6.0 (2017-08-31)
    + Calculating product prices on category pages too
    * Fixed attribute conflict of variable {tier_price}
    ^ Added support of international money formats like X,XXX.XX and X.XXX,XX

    1.5.7 (2017-08-10)
    + Added variable {tier_price} that returns the current tier price based on quantity selected
    ^ Improved JavaScript selector for the priceBox on the page


  • Compatible with Open Source (CE) : 2.1
  • Stability: Stable Build
  • Description:

    1.2.1 (2016-06-23)
    Added compatibility with Magento 2.1
    Fixed issue with duplicated price in cart totals for configurable products


Back to top
The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Q & A

Back to top


Back to top