Formula Based Custom Pricing

Formula Based Custom Pricing

Compatible With: Community 2.0, 2.1

Tech Specifications

Current Version:
Stable Build
04 July, 2017
Extensions, Content & Customizations
License Type:
Academic Free License 3.0 (AFL)


Calculate product price based on your custom math formula.

Other Extensions by MageArray

Form Builder


Back to top

Have you ever come to a situation when the product price needs a custom mathematical formula depending on the product options selected? This extension provides pricing for your products having the complex pricing structure which depends on some mathematical formula. For example: {width}*{height}*{price} OR ({Pi}*({Radius}*{Radius})) (in this formula Pi= 3.14 which needs to be defined in static variables for equation) OR {width}*{height}*{option-one_price}+({width}+{height}*1.5) OR {length}*{width}*{height}*{price} and so on...

When you install and enable this extension, it will add a formula pricing tab in product page(admin area) where you can write a custom formula to calculate the price. You can also define static variables in the "Static Variables For Equation" (text area) and use them in the custom formula for price calculation. The system will use the defined formula to calculate the product price.

This extension allows you to calculate prices of multi-dimensional, variable sized products like
Liquids sold in volume
Blinds sold in length and width
Fabric in meter or yard Flooring sold in square feet
Variable mulch sold in the cubic yard
Wallpaper sold based on wall dimensions
Printing and Banners store
Foam sold in the cubic foot
Fencing for house,garden, etc
Tarps sold in meter
Wrapping paper sold according to surface area

FAQ - Common questions about Formula Based Custom Pricing

Question:- Can I use product attributes in the formula?
Answer:- Yes, you can use product attributes in the final formula or condition of discount/upcharge.

Question:- Can I use round method in the formula?
Answer:- Yes, you can use various methods like round(), floor(), ceil() etc. in the formula.

Question:- Can I use static value in the formula?
Answer:- Yes, you can use static value in the formula. To use, the static value in the formula you need to declare the variables in "Static Variables For Equation".

Question:- Can I use validation for custom option?
Answer:- Yes, you can set minimum and maximum value for the text type custom option.

Question:- Which type of custom option, can I use in formula pricing?
Answer:- You can use the text field, text area, dropdown type in formula pricing.

Question:- Can I run this on my staging or development site, too?
Answer:- Yes, you can use this module for your staging or development website.


  • Ability to create multiple rules and formulas within a single product
  • Full flexible control over the final price via a chain of conditions
  • Ability to use product options within conditions and price formulas
  • Ability to use product attributes within conditions and price formulas
  • Ability to use math functions like round(), floor(), ceil()etc.

Release Notes

Back to top


  • Compatible with CE: 2.0 2.1
  • Stability: Stable Build
  • Description:

    Version 1.0.0
    - Initial Release


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