Remember Me
Log in

Product Price Formula for Magento® 2 (v1.9.5)

Product Price Formula for Magento2
  • Magento® Community 2.0.x - 2.4.x
  • Magento® Enterprise 2.0.x - 2.4.x
User Guide: Product Price Formula for Magento® 2 User Guide PDF
Product Price Formula
Full version for Magento Community Edition
Pack includes:
  • Extension for Magento CE 2.x
  • License key for 1 Magento Website
  • FREE Support
  • Documentation
2.x Community
Full Regular$299.00
Need Installation?
4 months(included)
PayPal Buy Now Add to Cart

Have you ever come to a situation when the product price needs a custom mathematical formula based on the product options selected or on the quantity ordered? Create your custom math formula using our Product Price Formula module for Magento® 2.


  • Ability to create complex logical conditions like: if () {} elseif () {} elseif () etc.
  • Ability to create multiple rules and formulas in the same 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 use custom constants and interim variables NEW
  • Ability to use arrays in formulas NEW
  • Ability to create different formulas for different customer groups or per customer NEW
  • Ability to create different formulas for different store views
  • 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
  • Formula applied on category pages, search results, product view, shopping cart, checkout, wishlist, and in other places.


previewpreview preview preview preview preview preview preview preview preview preview preview preview
Calculation based on the object size


  • You need to apply a single setup fee to a bunch of products not depending on the quantity ordered. See the "Setup Fee" DEMO
Multiple products, single setup fee


Price matrix


Math operators and functions

Use the following condition and math operators:

Operator Explanation Example
() Sub condition ( {sku1} + {sku2} ) / PI
+ Addition {sku1} + 10
- Subtraction {sku1} - 10
* Multiplication 2 * PI * {sku_radius}
/ Division {sku1} / 1.5


Math functions:

Function Explanation
abs(x) Returns the absolute value of x
acos(x) Returns the arccosine of x, in radians
asin(x) Returns the arcsine of x, in radians
atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2(y,x) Returns the arctangent of the quotient of its arguments
ceil(x) Returns x, rounded upwards to the nearest integer
cos(x) Returns the cosine of x (x is in radians)
exp(x) Returns the value of Ex
floor(x) Returns x, rounded downwards to the nearest integer
log(x) Returns the natural logarithm (base E) of x
max(x,y,z,...,n) Returns the number with the highest value
min(x,y,z,...,n) Returns the number with the lowest value
pow(x,y) Returns the value of x to the power of y
random() Returns a random number between 0 and 1
round(x) Rounds x to the nearest integer
sin(x) Returns the sine of x (x is in radians)
sqrt(x) Returns the square root of x
tan(x) Returns the tangent of an angle



Constant Explanation
E Returns Euler's number (approx. 2.718)
LN2 Returns the natural logarithm of 2 (approx. 0.693)
LN10 Returns the natural logarithm of 10 (approx. 2.302)
LOG2E Returns the base-2 logarithm of E (approx. 1.442)
LOG10E Returns the base-10 logarithm of E (approx. 0.434)
PI Returns PI (approx. 3.14)
SQRT1_2 Returns the square root of 1/2 (approx. 0.707)
SQRT2 Returns the square root of 2 (approx. 1.414)



Variable Explanation
{configured_price} Price after product options selected
{initial_price} Price before options selected
{price} Price after all calculations applied
{tier_price} Current tier price when QTY changed
{special_price} Special price configured in the product
{attribute_code} Any product attribute name enclosed into {}
{option_sku} Call any product option by its SKU enclosed into {}
{option_sku.qty} The quantity of sub-option if Dynamic Product Options installed
{option_sku.price} Get the price of option by sku
{option_sku.length} Get the length of entered text
{configurable_pid} Returns the ID of currently selected product within the configurable product
{customer_id} The ID of logged in customer. 0 if not logged in.
{qty} Product quantity selected



Customer Reviews
Write Review
Your Rating: *
Nickname: *
Summary: *
Review: *

Questions & Answers

Questions & Answers
Ask Your Question
Nickname: *
Email: * (will not be shown to public)
Question: *

Change Log

risk free
Risk-Free Investment
No risk at all. 60-day money back guarantee.
simple licensing
Simple Licensing
One license per one Magento® installation. No store, website, or domain limitation. No monthly or hidden fees.
Try before purchasing
Free Updates
Get six months of free updates! Simply download the latest version of your favorite extension from our website when you need it.
Free Installation Service
Free Installation Service
Contact Us and we will help you install our extensions absolutely for FREE.
full open source
Full Open Source
No obfuscation, no encryption. Only Full Open Source extensions. Ideal for customizations.
Following Magento Standards
Following Magento® Standards
All our extensions are written following Magento® code standards.
Professionally Tested Modules
Professionally Tested Modules
We do our best to keep quality of our extensions: performance, functional, and cross-browser testing.
Comprehensive Documentation
Comprehensive Documentation
Detailed documentation for all extensions is available online and in PDF. Forum and FAQs.
Outstanding Support
Outstanding Support
Free and friendly EST time support. Help, tips & tricks, and even small customizations will be provided.
Long Term Strategy
Long Term Strategy
8+ years in eCommerce. We grow to provide you even better services and extensions, and are always open to customers' suggestions.