This component allows registering a user in the system.
The container defined by the container property determines the component’s width.
Parameters*
Main parameters
Parameter | Description | Example |
webSessionId | Unique web session identifier. It is used to persist the user’s session across components and pages. | 01CDA38719E74937A2F275757ABA34EE |
bookingEngine | Booking Engine code | 2 |
system | System Code
| HPH |
language | Language | es |
protectionDataUrl | Page where the data protection information is located. | /proteccion-datos.html |
okHandler | Function that is called when registration completes successfully and returns an object containing the user’s information. | registerOk |
component | Fixed value “customer-register” | customer-register |
container | ID of the HTML element that will serve as the component’s container. | registerUser |
extraFields | Array of optional fields to include in the registration form (all available values are listed in the “Example” column). | document.type, document.number, phone.number, address, city, province, postal.code |
| tags | CRM tags array | BLACK_FRIDAY |
* Any parameters that aren’t fixed must be replaced with the appropriate values at runtime, based on the type of search being performed.
Example of HTML Commented with Required Information
<script>
tags: ["BLACK_FRIDAY"] window.gethTtScript("https://hotel.new.hotetec.com/components/customer/js/main.js"); |