# Add price

We will set the price of the configurator using the available variables detailed in the previous [chapter](https://docs.simplio3d.com/learning-the-app/products/pricing/variables). In this example, we will use a basic table configurator with size and color parameters.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FwNxd4GV9cTLJanj1DzVS%2FScreenshot%202025-03-20%20at%2009.29.32.png?alt=media&#x26;token=805f5e91-e0e3-4a84-b42d-10d9f836935f" alt=""><figcaption><p>table configurator</p></figcaption></figure>

We will first add a base price, an amount from which the total price will be calculated. For this, we will use the <mark style="color:red;">**@base\_price**</mark> 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.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FNEMq9hV3ThMAv3tPYU6J%2FScreenshot%202025-03-20%20at%2009.50.40.png?alt=media&#x26;token=2f36c0e6-a04b-4cbd-a9e0-e437725b637b" alt=""><figcaption><p>Click 'Base Price' variable to add your start price</p></figcaption></figure>

Type "300" in the "Base Price" field and click "Save" on the bottom right screen.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F2nRGUSBUzfjUjRY4njDB%2FScreenshot%202025-03-20%20at%2009.57.58.png?alt=media&#x26;token=6378d890-6456-4cfc-9685-e3219122faa1" alt=""><figcaption><p>Add base price</p></figcaption></figure>

After we've added the base price, we can click the "Preview" button to see that the total price is $300.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FcpMZyk3W3uzpWigDhS0H%2FScreenshot%202025-03-20%20at%2010.06.05.png?alt=media&#x26;token=77727b0b-04d1-4001-8682-fb31b8391ad8" alt=""><figcaption><p>Preview mode</p></figcaption></figure>

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 <mark style="color:green;">**@price\_options**</mark> and <mark style="color:blue;">**@price\_variable**</mark>. In this example, we will use <mark style="color:green;">**@price\_options**</mark>.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F4ts6kGkWoNFML4uQiyga%2FScreenshot%202025-03-20%20at%2010.33.27.png?alt=media&#x26;token=c1874972-77a3-488b-973a-5a8567edfe9b" alt=""><figcaption><p>Add a variable to price the colors</p></figcaption></figure>

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.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F73HEVJ5EosIlRufUXKN7%2FScreenshot%202025-03-20%20at%2010.55.13.png?alt=media&#x26;token=0d4da3b8-2381-4294-a540-909ef47d0b8a" alt=""><figcaption><p>Define Price Options</p></figcaption></figure>

When setting the price of a variant in a price group, such as the <mark style="color:green;">**@price\_options**</mark> variable, the logic is almost the same as when [creating restrictions](https://docs.simplio3d.com/learning-the-app/products/create-options/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.**

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FozOdl2gDYrM8j9g4MNtV%2FScreenshot%202025-03-20%20at%2011.16.27.png?alt=media&#x26;token=2e63911c-8695-4c6e-b382-0cd8da6d3f19" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**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.**
{% endhint %}

Once we click "Save", we add the first price to the price group.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FtHRqnUMOo6OZiAQI0TA6%2FScreenshot%202025-03-20%20at%2011.48.38.png?alt=media&#x26;token=01acf1e3-6079-4e03-b65f-7fab5733e772" alt=""><figcaption><p>First price to the price group</p></figcaption></figure>

Click ‘Save’ again to create the price group.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FcFfdUJR1k3cNVTDXmfX5%2FScreenshot%202025-03-20%20at%2011.57.04.png?alt=media&#x26;token=9b363549-e4db-4410-83ae-7b7b963d821b" alt=""><figcaption><p>Price group added</p></figcaption></figure>

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 <mark style="color:purple;">**@total\_price**</mark> 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 <mark style="color:blue;">**@price\_variable**</mark>. Please note that this type of variable is not taken in the <mark style="color:purple;">**@total\_price**</mark>, therefore we need to use the price formula.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FRCACit35VA3PDhbF2b2W%2FScreenshot%202025-03-20%20at%2012.16.43.png?alt=media&#x26;token=66906d38-8b0c-466e-a552-0808293d17bf" alt=""><figcaption><p>Add price variable</p></figcaption></figure>

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.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FXXg98DR8e3cNi7b1JNE9%2FScreenshot%202025-03-20%20at%2012.22.59.png?alt=media&#x26;token=153eb756-f7e2-4f03-93ff-4ce2ebbe7cfb" alt=""><figcaption><p>Price by size with 'Price Variable'</p></figcaption></figure>

Click "Save" and add the new variable in the price block list.

<mark style="color:red;">**NOTE:**</mark> When pricing numerical variables (e.g. size, quantity, etc.), make sure to select the 3D model and parts in the numerical option variants, even if it will not affect the 3D model (for example, in case of quantity).

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FoqzNOocvvo3jRhgsrP1O%2FScreenshot%202025-03-20%20at%2012.38.13.png?alt=media&#x26;token=bf5600c5-f02c-405d-a4a5-1ab6dfee1ff2" alt=""><figcaption><p>Price by size variable added</p></figcaption></figure>

Note that you can remove <mark style="color:purple;">**@total\_pricing**</mark> from the pricing formula and use the variables you created.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F9hszG2VfpSBpar0m9PHv%2FScreenshot%202025-03-20%20at%2013.02.28.png?alt=media&#x26;token=d08a857a-2926-4bb6-9535-69aef06ffc21" alt=""><figcaption><p>Pricing without @total_pricing built-in variable</p></figcaption></figure>

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.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FDPE7d2H3a9uFRMRliKtE%2FScreenshot%202025-03-20%20at%2012.49.00.png?alt=media&#x26;token=c4aa7af6-4a08-46a1-8e6b-2004a66c675d" alt=""><figcaption><p>Total price of the table</p></figcaption></figure>

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 <mark style="color:blue;">**@price\_variable**</mark> 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.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FzUVSGqmF2kzKLa64E1Tp%2FScreenshot%202025-03-20%20at%2015.09.07.png?alt=media&#x26;token=5a91568a-d3b2-42ef-b02c-df08685366b8" alt=""><figcaption><p>Add a price variable for sales tax</p></figcaption></figure>

Enter the name, keep the variable type "custom" and apply the percentage, in this case 0.12 (12%).

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FMYooAeeyFcBAuQRJuBw9%2FScreenshot%202025-03-20%20at%2015.18.54.png?alt=media&#x26;token=847d70ec-d03b-4057-9365-0b8248d3b8b2" alt=""><figcaption><p>Sales tax variable</p></figcaption></figure>

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:

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FYCHq3CAqe2HhiUlRWL6O%2FScreenshot%202025-03-20%20at%2015.26.00.png?alt=media&#x26;token=47cb1b8e-7da9-46f6-bf3d-027427c86cdb" alt=""><figcaption><p>Price formula example with sales tax</p></figcaption></figure>
