• Home
  • Solutions

User Information Template

/templates/user_information.liquid

This template is used to request information about the person that is about to make a purchase.

This resource is optional

<form method="POST">
    <h1>Your contact information</h1>

    First name:    <input type="text" name="bill_fname" value="{{ user.bill_fname }}" />
    Last name:     <input type="text" name="bill_lname" value="{{ user.bill_lname }}" />
    Email address: <input type="text" name="bill_email" value="{{ user.bill_email }}" />

    <button type="submit">Save information</button>
</form>

From /templates/user_information.liquid you have access to the following variables:

You can request any information available below. The only required information is user.bill_fname and user.bill_lname, all the rest are optional.

Variable Type Description
user.type Int Person or company (0 for person and 1 for company)
user.bill_fname String The first name of the user
user.bill_lname String The last name of the user
user.bill_ciserial String The national id number of the user
user.bill_cnp String The personal identification number of the user (for Romania)
user.bill_company String The company name
user.bill_fiscalcode String The fiscal code of the company
user.bill_regnumber String The registration number of the company
user.bill_bank String The bank name of the company
user.bill_bankaccount String The bank account number of the company
user.bill_email String The email address of the user
user.bill_phone String The phone number of the user
user.bill_fax String The fax number of the user
user.bill_address String The address of the user
user.bill_address2 String Extra address information
user.bill_zipcode String The zipcode of the user
user.bill_city String The city
user.bill_state String The state
user.bill_country String The country of the user
user.bill_countrycode String The country code of the user
user.delivery_fname String The first name of the user
user.delivery_lname String The last name of the user
user.delivery_company String The company name
user.delivery_address String The delivery address of the user
user.delivery_address2 String Extra delivery address information
user.delivery_zipcode String The zipcode of the user
user.delivery_city String The city
user.delivery_state String The state
user.delivery_country String The country of the user
user.delivery_countrycode String The country code of the user
user.contact_fname String The first name for the contact
user.contact_lname String The last name for the contact
user.contact_phone String The phone of the contact
user.contact_email String The email address of the contact

In the user information form you can also add a hidden input named _required_fields which will force the user to complete them or he won't be able to complete the purchase.

<form method="POST">
    <h1>Your contact information</h1>

    First name: <input type="text" name="bill_fname" value="{{ user.bill_fname }}" />
    Last name:  <input type="text" name="bill_lname" value="{{ user.bill_lname }}" />
    Address:    <input type="text" name="bill_address" value="{{ user.bill_address }}" />
    Email:      <input type="text" name="bill_email" value="{{ user.bill_email }}" />

    <input type="hidden" name="_required_fields" value="bill_address,bill_email">

    <button type="submit">Save information</button>
</form>

In the above example the user will be forced to complete the address and the email address. The first name and the last name are required by default.

  • Using Ticket Rewards

    • Getting started
    • Blog
  • I'm a designer

    • Getting started
    • Templates
    • Variables
    • Filters
  • I'm a developer

    • Javascript API

Documentation search

Blog • Privacy Policy • Terms & Conditions • Copyright 2024 Ticket Rewards