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

Symbol | Description |
---|---|

+ | Addition |

– | Subtraction |

* | Multiplication |

/ | Division |

( ) | Open and close parenthesis |

All Formulas will follow **BEDMAS**.

**B**rackets – First Priority**E**xponents – Second Priority**D**ivision – Third Priority**M**ultiplication – Third Priority**A**ddition – Fourth Priority**S**ubtraction – 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.

Variables | Example | Description |
---|---|---|

Dropdown Text Paragraph | size | returns value or calculated formula value |

Single SelectSwatch Radio Button | size | returns value or calculated formula value |

Multi SelectSwatch Radio Button | size size.selectedcount | returns value or calculated formula value returns the number of items selected |

Number | sizesize.inputnumber | returns value or calculated formula value returns user input number |

Lookup | size 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 Tables | sizetable[ ] 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 Price | product_price | returns the price of the product from Shopify |

Shopify Product Quantity | product_quantity | returns 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.