Creating a Formula

Creating a Formula

The formula is the price that the customer will see on the product page and will be calculated dynamically and displayed live as their input changes.

In the formula section you will need to define the formula based on the defined inputs in the elements.

Supported Mathematical Functions:
  1. The formula accepts: +, -, *, /
  2. Do things in parentheses first: ()
  3. ceil(label name) =>Rounds a number up to the nearest integer
  4. floor(label name) =>Rounds a number down to the nearest integer
  5. sqrt(label name) => Calculates the square root of the input
Use the label names to build the formula.

Example:

Dropdown labeled Color with options named Blue and Red. I want the price for each to be the options value * 100

Formula: Color * 100

If I want to add a base cost of $30 I would change the formula to: Color * 100+30
    • Related Articles

    • Building a Calculator

      1. On the side navigation click “Create New” 2. Make sure you are on the Elements tab 3. Select which element [link to elements section] you want to use and drag it to the canvas. You can add multiple elements to the same calculator and reposition ...
    • High level definitions

      1. Calculator: Each calculator can be embedded to a product page and needs to be configured. There is no limit to the amount of calculators you can build but you can only embed one calculator per product. 2. Elements: These are the building blocks ...
    • Element Types

      Dropdown: Displays a list of options in a dropdown menu. You assign a value to each option to be used in the formula. Tutorial: Number input: Allows your customers to enter a numerical value to be used in the formula. You can use the number that the ...
    • Image Selector Element

      Using our Image Selector element you can allow your customers to select any image from a swatch or dropdown selection. If you want the image of the selected option will even be displayed on as the main photo on the product page the caculator is ...