Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

user.full_name

Full name of the user

user.email

Email of the user

user.domain

The domain of the current site

user.customer_number

Number of the customer

user.country_code

Code of the country

user.language

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

  • No labels