Add price
Example of pricing for a configurator
Last updated
Was this helpful?
Example of pricing for a configurator
Last updated
Was this helpful?
We will set the price of the configurator using the available variables detailed in the previous chapter. In this example, we will use a basic table configurator with size and color parameters.
We will first add a base price, an amount from which the total price will be calculated. For this, we will use the @base_price variable which is added by default and cannot be removed. The base price can be zero or any other positive number. In this example, my price for the table will start from $300.
Type "300" in the "Base Price" field and click "Save" on the bottom right screen.
After we've added the base price, we can click the "Preview" button to see that the total price is $300.
Each color has an additional price, so I need to add another variable to help me calculate the additional price on top of the base price we already have. We can do this with both @price_options and @price_variable. In this example, we will use @price_options.
Select "Price Options" and click "Add Price" to define the variable. Enter the name of the price variable and click the blue "Add Price" button located in the bottom screen and set the price of the first option variant.
When setting the price of a variant in a price group, such as the @price_options variable, the logic is almost the same as when creating restrictions explained in a previous chapter. Enter the name and price ($50) and click the light blue "Add" button to add the price rule. The price rule will follow a basic expression:
“The price is added only when all the following rules are true: [Type of option] [Has one or more options selected]”
Select type of option, in this case we select the 'Wood' material option set (wood colors) and check 'wood' as option variant selected. For each color selected, $50 will be added to the base price.
NOTE: In the example above, we used an option set of type "Material" and it doesn't show multiple variants to choose from. If you want to apply different prices to different colors, you will need to use a different option set type, such as thumbnails, dropdown, etc.
Once we click "Save", we add the first price to the price group.
Click ‘Save’ again to create the price group.
By clicking "Preview", we will now see the total of $350 ($300 base price + $50 wood color). The total price is calculated in the built-in variable @total_price added by default to the Price Formula field.
Let's price the table based on size, and for this we need to add another price variable to the total price calculation. For this, we will add a @price_variable. Please note that this type of variable is not taken in the @total_price, therefore we need to use the price formula.
Select 'Price Variable' from the dropdown and click 'Add price' to define it. Enter the name and select the variable type "for options." Select the "Size" numeral option set from the drop-down menu below to load all three dimension parameters: Width, Length, and Height. If you want to price the table by width, just type the cost per centimeter, in this case we have $12.
Click "Save" and add the new variable in the price block list.
Note that you can remove @total_pricing from the pricing formula and use the variables you created.
Click "Preview" and see if total price shows the exact price of the table. It should calculate the following: $300 (base price) + $50 (wood color) + ($12 * 138cm) = $350 + $1656 = $2006.00. If you change the width of the table, the price will update in real-time.
Using the price formula unlocks more complex pricing systems, which may be necessary for complex product configurators. Below, I'll give a simpler example of how you can use the price formula field and @price_variable to add a sales tax in the configurator.
Select "Price Variable" from the drop-down menu and click "Add Price" to define the sales tax variable.
Enter the name, keep the variable type "custom" and apply the percentage, in this case 0.12 (12%).
Click 'Save' to add the new variable and starting making your price formula so the configurator would calculate the sales tax, here's an example below: