There are some variables available for all templates.
script.* | variables contain URLs for different modes of the web site:
| |||||||||||||||||||||||||||
inputnames.* | variables contain names for specific form input elements:
| |||||||||||||||||||||||||||
cartcookie | variable contains the name of the cookie that contains the cart ID. | |||||||||||||||||||||||||||
lang | variable is an object of type LanguageManager - it represents translations done for the language the user has chosen. |
This template is used whenever an error occurs during processing.
ErrorText | the text to be shown for an error | |
ErrorTrace | a full ASCII version of an exception trace. This is only filled if the $WebShowErrors option is set to true in the config.php file. |
The cart.html template is used to render the current cart of the customer.
cart | an object of the web type WebCart (PHP: WOWebCart) that represents the entire cart of the user. | |
shipping | and array of web objects of type Shipping (PHP: WOShipping) which represent all available shipping types that customers can chose from. | |
forceshipping | a boolean that contains whether customers must chose a shipping type. |
Some of the sub-objects of cart have extended attributes in addition to those generated by Wob:
cart.isempty | true if the cart is empty | |
cart.totalsum | the complete sum of all prices in the cart | |
cart.tickets[...].eventprice.*,: | ||
*.amountInputField | name of the input field of a form that should contain the amount of tickets for ordering, see the example on how to use it | |
*.categoryIdWeb | part of the URL query that represents this category, used for removing tickets from the cart, see the example on how to use it |
The voucher.html template is used to render the voucher selection form.
voucherprices | contains an array of valid voucher prices. |
The carterror.html template is used to when the cart expired or the customers browser lost the cookie.
Just the Base Variables Base Variables are available.
The checkout.html template is used to render the current cart of the customer.
cart | an object of the web type WebCart (PHP: WOWebCart) that represents the entire cart of the user. |
The index.html template is used to render the list of events available to customers.
events | an array of the events available, starting at the current time, ordered by time; the events are of web object type Event (PHP: WOEvent) |
The eventdetails.html template is used to render a single event and to offer the user to buy tickets for it.
The login.html template is used to render the customer login and registration page.
script.customerLogin | the page to call for logging in | |
script.customerRegistration | the page to call for registering a new customer | |
customer_name | the name (mail) of the customer (or an empty string if unknown) |
The loginerror.html template is used to render customer login and registering errors.
errorType | the type of error: "login" - the login failed (wrong mail or password), "exist" - an account with the same mail already exists, "mismatch" - the new passwords do no match, "create" for unspecified errors during creation of the new account (e.g. missing or invalid parameters) | |
backUrl | the URL to call back to the login page |