Accessing Global Options in formulas

Posted by:

If you want to access a field created via global product options within a formula you can use the function GetGlobalField

This function will ask you for the global product ID and the field ID you want to use.

For example, below I have a global product option that adds the text box ‘Full Name’ ...

Continue Reading →
0

Using Math Functions

Posted by:

Inside a formula, you can type Math. (including the dot) to bring up a list of mathematical functions that you can use

The list includes the number of parameters that the function requires and its explanation, for example, to get the absolute value of a number you can use:

Math.abs(10.11);

Continue Reading →
0

Creating multi-price options

Posted by:

There are different ways to create multi-price options, in this tutorial we are going to cover them

Changing price using conditional logic

If you just want to use different fixed prices depending on the options selected (you don’t need to do any arithmetical operation to calculate an option price) the best way to do this is by using conditional logic. To change the price with conditions do the following.

1.- Select a field and go to the condition tab

Continue Reading →
0

Using formulas to calculate price for each option

Posted by:

There are many fields (like checkboxes and dropdowns) where you can set a fixed value for each item

But you can also use formulas to change the price of each item dynamically, to do se follow these steps:

1.- Select the price type “Formula Per Item”

2.- Define the formula

3.- That’s it now each option will use that formula to calculate its price

Using options ...

Continue Reading →
0

Field Functions

Posted by:

Some fields have special actions called functions, these functions are used to retrieve specific information from a field. You can see the functions of each field by adding a dot after a field in a formula like this:

$Field 1$.

You can use these function anywhere in the formula, for example you could use it in a condition like this:

Continue Reading →
0

Conditions

Posted by:

Introduction

You can create conditions using an structure like this

if(comparison)
{
  return value
}

or if you prefer you can use a shorter structure like this:

if(comparison)
    value

Replace “comparison” with the comparison you want and “value” with the value that need to be used, example:

In this condition if field 1 has a value less than 10 the value ‘1’ will be used by this formula

You can use multiple if ...

Continue Reading →
0

Introduction

Posted by:

Similar to excel a formula is a way for you to create your own calculations to define things like the price of a product or the text that a box is going to have.

You can select the price type “Formula” to create a formula to define the price of a field
Continue Reading →
0