Type Alias: Customer
ts
type Customer = object;The customer (end user of your site) that the integration script works with in the current browser.
Remarks
The script initializes the customer on the server when it loads and keeps it in localStorage under the key tron-designer-customer, so the same browser keeps the same customer. Read it with getCustomer() and change it with setCustomer().
See Customers and orders.
Properties
| Property | Type | Description |
|---|---|---|
customerCompany? | string | Company name. |
customerEmail? | string | E-mail address. |
customerGuid | string | GUID of the customer in TronDesigner. Created by the server. |
customerIdentity? | string | Your own identifier of the customer, for example the user ID in your shop. Remarks When it is set, the server looks the customer up by this identifier. If none exists yet, setCustomer() gives the identity to the current customer when that one is anonymous; otherwise a new customer is created. Use it to recognize a logged-in user across browsers and devices. |
customerLanguage? | string | Language the customer selected in the editor (ISO 639-1 code, for example en). Set by the server. Remarks When present, the editor uses it as its UI language. |
customerPerson? | string | Name of the contact person. |
logoGuid? | string | GUID of the customer's current logo, set with setLogo() or by picking a logo in the logo gallery. Remarks When ArgPrintJob.logo is not set, the script uses this logo as the default logo of the print job. |