The global basket object contains all information relevant to the customers basket, such as price & packages.
Variables | Type | Description |
---|---|---|
If you'd like access to a variable that is not currently available, please let us know.
id
string
Internal ID of the basket.
ident
string
The identifier that can be passed to Tebex.js
ign
string
The username of the customer.
uuid
string
The UUID of the customer.
currency
string
The 3 digit currency code of the basket.
price
string
The current price of the basket.
packages
array[package]
An array of packages in the customers basket.
coupons
array[coupon]
An array of coupons in the customers basket.
| string | The name of the project. |
| string | The base currency of the project. |
| string | The custom theme currently active on the project. |
| string | The full url of the custom logo of the project. |
| string | The full url of the custom favicon of the project. |
| Boolean | If the project requires no login (e.g. if no username system is being used). |
| array[category] | An array of package categories of the project. |
The global page object contains variables associated with the current http request.
Variables | Type | Description |
---|---|---|
If you'd like access to a variable that is not currently available, please let us know.
title
string
The title of the current page.
message.type
string
The type of toast notification to display to the customer.
message.text
string
The contents of a toast notificaton to display to the customer
message.display
boolean
If a toast notification needs to be shown to the customer (eg. a validation error has occured).
Accessing global variables to help populate your template with live data.
Global variables are variables which are available across all pages of your store.
If you'd like access to a variable that is not currently available, please let us know.