This page contains available variables and examples.
To see how Pricing Scripts work, read Pricing Scripts - General Usage .
All price formulas support some basic User Based Pricing.
More functionalities (User Grouping / Labeling) are coming soon.
Available Variables
Variable | Description |
---|---|
| Full name of the user |
| Email of the user |
| The domain of the current site |
| Number of the customer |
| Code of the country |
| User language |
Examples
10% Discount if the Email ends with “@3yourmind.com“
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