Info |
---|
This page contains the available variables and examplesexample algorithms using User Based Pricing Scripts. |
All price formulas support some basic User Based Pricing.
More functionalities (User Grouping / Labeling) are coming soon is supported throughout the entire ordering processes. This allows your service to customize pricing based on specific roles within the organization.
Available Variables
Variable | Description |
---|---|
| Full name of the user |
| Email address of the user |
| The domain of the current site |
| Number of the customer |
| The country which is assigned in the address |
| User language |
Examples
...
Sample User Pricing Scripts
Offer a 10% discount if the email address ends with “@3yourmind.com“
Code Block | ||
---|---|---|
| ||
let price = model.volume * 0.0002; if (user.email && user.email.endsWith("@3yourmind.com") { price = 0.9 * price; } price; // Last line contains the final price |
...