Option Set Calculations

  • Automatically Add Option Values:
    When Automatically Add Option Values is Checked, the application will add all values for all options within the option set together and set the products price.

    When Automatically Add Option Values is Unchecked, you can write your own custom formula for the option set. Any option that is part of the option set, will be available for use in the calculation. The value returned from this calculation will be the final price of your product.

You can use any of the following mathematical expressions in a calculation:

SymbolDescription
+Addition
Subtraction
*Multiplication
/Division
( )Open and close parenthesis

All Formulas will follow BEDMAS.

Brackets – First Priority
Exponents – Second Priority
Division – Third Priority
Multiplication – Third Priority
Addition – Fourth Priority
Subtraction – Fourth Priority

Calculation Variables allow you to insert other options, lookup tables and product variables in to the formula.

Below is a list of all option variable types available

Example column shows how an option named “size” would be included in a calculation or formula.

VariablesExampleDescription
Dropdown
Text
Paragraph
Email
sizereturns value or calculated formula value
Single Select
Swatch
Radio
Button
sizereturns value or calculated formula value
Multi Select
Swatch
Radio
Button
size
size.selectedcount
returns value or calculated formula value
returns the number of items selected
Numbersize
size.inputnumber
returns value or calculated formula value
returns user input number
Lookupsize
size.input1
size.input2
returns the number found in associated pricing table
returns user input number for input 1
returns user input number for input 2
Lookup Tablessizetable[ ]
sizetable[ 25, 55 ]
sizetable[size.input1,size.input2]
sizetable[variable, 20]
sizetable[variable, variable]
sizetable[6*variable, 30]
returns the number found in the pricing table (sizetable) based on the values provided in the brackets [ ]
Can accept another option variable or calculation as inputs.
The following are coming soon
Shopify Product Priceproduct_pricereturns the price of the product from Shopify
Shopify Product Quantityproduct_quantityreturns the quantity in the product page quantity selector
Shopify Metadata metadata01
metadata02
metadata03
metadata04
metadata05

metadata01
metadata02
metadata03
metadata04
metadata05
returns the value set from the option block settings. could be any product meta data.


Writing a calculation formula

To write a formula enter a combination of variables, mathematical expressions and your own number inputs.

If your calculation seems like wrong check that you have turned “Add Product Base Price to Calculated Option Price” is set to No.