Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The entry point for each page on your store.
Pages represent different landing points of your customers on your Tebex store. For example, when customers visit a category on your store, the category.html page will be rendered. For this reason, pages must be implemented in your templates and cannot be deleted (unlike Assets).
If you'd like access to a variable that is not currently available, please let us know.
The only pages that are not accessible to the public are the following:
Page | |
---|---|
The index.html page is the homepage of your store.
Variables | Type | Description |
---|---|---|
If you'd like access to a variable that is not currently available, please let us know.
The username.html page is responsible for allowing your customers login to your store.
Variables | Type | Description |
---|---|---|
If the external variable is true
, let the user click a link to proceed to login via the external login provider:
If the external variable is false
, provide a form submitting to the current url, including an ign
form parameter. The ign
parameter should be a text field allowing the customer to enter their username freehand.
An example can be seen below:
An example of a flow supporting both external and non-external login providers is shown below:
If you'd like access to a variable that is not currently available, please let us know.
The package.html page displays details about a specific package on your store.
Variables | Type | Description |
---|---|---|
If you'd like access to a variable that is not currently available, please let us know.
There is no specific variables for checkout.html. All checkout functionality is handled via opening a new session. To start a new Checkout session, you should do the following:
GET
/checkout/ident
This endpoint will return an ident for the current basket, which is required by when launching a checkout modal.
Response
To learn how to add Tebex.js to your store, please view the or view the demo over at .
Variable | Type | Description |
---|
If you'd like access to a variable that is not currently available,
layout.html
This is the global layout of your store that all pages extend from. You are able to create multiple layouts if you wish via creating an Asset.
module.*
These pages are used to build the Sidebar modules of your store, and you can view more information within the Sidebar Modules section.
description
string
The homepage content of the store.
external
Boolean
If the login provider of the store requires the user to be sent to an external url which is available in the url
variable. See Non-External Login for what to do in the event external is false
.
provider
String
The name of the login provider, such as FiveM, Discord or Steam.
url
String
The URL that the customer should be directed to so they can perform their login with the external provider.
id
string
The ID of the package.
name
string
The name of the package.
description
string
The description of the package.
customPrice
boolean
If the package can have a custom price.
price
string
The price of the package.
purchasable
boolean
If the currently logged in customer is allowed to purchase this package on your store.
quantity
integer
The quantity of this package in the customers basket.
image.url
string
The public url of the packages image hosted on the Tebex CDN.
image.uploaded
boolean
If this package has an image uploaded.
category
string
The ID of the category which this package belongs to.
has_options
boolean
If this package requires options to be entered/selected before adding to the basket.
discount.applied
boolean
If the package has a discount applied.
discount.original
string
The original price of the package before the discount was applied.
discount.percentage
string
The percentage equivalent of the discount applied to the package.
| boolean | If this variable option should be selected by default. |
| string | The name of the dropdown option. |
| string | The additional price the customer would pay by selecting this variable option. |
| string | The ID of the page. |
| string | The category of the page. |
| string | The title of the page. |
| string | The actual content of the page. |
| An object containing information about the current package. |
|
| string | The name of the package. |
| boolean |
| boolean | If the package requires the customer to enter how much they want to pay for the package. |
| string | The category ID of the package. |
| string | The price of the package. |
| string | A summary of the description of the variable. |
| string | Either |
| string | The ID of the variable. |
| If the type is |
| string | The current value of the variable. |
| string | If the variable is type is |
| string | The ID of the category. |
| string | The name of the category. |
| string | The display type (either grid or list) |
| string | The description of the category. |
| array | An array of . |
| string | The url slug of the category. |
array[]
An array containing the the customer needs to select.
If the package requires the customer to select a .
array[]