Variables
Price variables to calculate total cost
Variables are used to set the price for options, to add taxes, shipping, labor, discounts, or other costs that would help accurately calculate the total price. All of these variables can go into the built-in @total_cost variable that is added by default or can be used in the price formula. To add a variable to the price formula, click the block.
There are 5 types of variables:
@total_cost - Total cost is a built-in variable added to the price formula field by default, but depending on how you want to build the formula, it can be removed. Total cost is calculated from all variables added in the Variable section. There are no settings for this type of variable.
@base_price - This variable allows you to set a base price for your customizable item. This variable is added by default and cannot be deleted. If there is no base price, simply leave the field blank or enter 0.
@price_options - Price your options, price your variants. This variable allows users to set the price of each option set and its variants, regardless of type. You can set the price for each color, checkboxes, uploads, text, etc. In a price_options variable, you can set the price for each color (except when using Material block set), this will be called a price group, in other words when each variant in the option set has a price.
@price_table - Pricing tables, as the variable name suggests, create tables between 2 option sets. For example, the platform allows you to set the price between 2 option sets: Width and Height, but you can use almost any type of option set with more than one variant.
@price_variable - Price variables are a different way to price option variants, and the difference from other types of variables is that this allows you to create individual variables for taxes, shipping, labor and have them in the price formula. You can also add a Numeral price, entering a unit price that will be multiplied by the Numeral parameter that is selected. Also, most of the time using price variables will be the fastest way to set the price of the configurator.
Last updated
Was this helpful?