Skip to content

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 ​

PropertyTypeDescription
customerCompany?stringCompany name.
customerEmail?stringE-mail address.
customerGuidstringGUID of the customer in TronDesigner. Created by the server.
customerIdentity?stringYour 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?stringLanguage 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?stringName of the contact person.
logoGuid?stringGUID 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.

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples