Pricing Scripts

When your Users upload a Model, our platform will provide an instant price based on the material and post-processing selection and the geometric properties of the 3D model. The exact calculation is defined via formulas which are written in the JavaScript programming language.

Prices for Models (including support structure) and post processing are defined separately. The calculation is done for a quantity of one. Additional costs like shipping or VAT (tax percentage) are added afterwards automatically.

How Pricing Scripts Work

  1. The Unit Price of each part is calculated by the sum of:

    1. the Pricing Script for the selected material and

    2. the Pricing Script for the selected post processing (if selected)

  2. Afterwards, the Total Item Price is calculated by multiplying the unit price with the Quantity. Any variables which affect the Order Level will be applied at this stage.

  3. Any User-Based Scripts will be applied at this stage of the ordering process.

  4. The resulting price will have the Tax Rate applied which can be adjusted in Settings.

Alternatively, you can use Manual Pricing to trigger customers orders to be priced by hand. That can also be set to switch to manual pricing based on certain preset rules.

Sample Pricing Scripts Process

Let’s assume the following:

  • the pricing formula is calculating a price of 52$

  • the user orders 3 Items

  • the user is getting a discount of 15%

  • the sales tax is set to 20%

Then, the total order price is calculated as the following:

$52 * 3 * 0.85 * 1.20 = $159.12

 

Next: Read https://3yourmind.atlassian.net/wiki/spaces/PD/pages/87916845