company_account_application
Used to create a form for company account application. Only the store with the Enterprise plan can create company accounts for customers.
Params
return_to
{String}
: The URL where the customer is redirected after submitting the form. Defaults to the form's URL if not specified.
Inputs
Input | Type | Name | Required | Remarks |
---|---|---|---|---|
text | company[email] | required | - | |
First Name | text | company[first_name] | optional | - |
Last Name | text | company[last_name] | optional | - |
Company Name | text | company[company_name] | required | - |
Shipping Address_Mobile Phone | phone | company[shipping_address][mobile_phone] | optional | - |
Shipping Address_Address | text | company[shipping_address][addr] | optional | - |
Shipping Address_Address 2 | text | company[shipping_address][addr_two] | optional | - |
Shipping Address_Country/Region | text | -company[shipping_address][country] | optional | - |
Shipping Address_Country Code | text | company[shipping_address][country_code] | optional | - |
Shipping Address_Province | text | company[shipping_address][province] | optional | - |
Shipping Address_Province Code | text | company[shipping_address][province_code] | optional | - |
Shipping Address_City | text | company[shipping_address][city] | optional | - |
Shipping Address_City Code | text | company[shipping_address][city_code] | optional | - |
Shipping Address_District | text | company[shipping_address][district] | optional | - |
Shipping Address_District Code | text | company[shipping_address][district_code] | optional | - |
Shipping Address_Zip Code | text | company[shipping_address][zip_code] | optional | - |
Billing Address_Mobile Phone | phone | company[billing_address][mobile_phone] | optional | - |
Billing Address_Address | text | company[billing_address][addr] | optional | - |
Billing Address_Address 2 | text | company[billing_address][addr_two] | optional | - |
Billing Address_Country/Region | text | company[billing_address][country] | optional | - |
Billing Address_Country Code | text | company[billing_address][country_code] | optional | - |
Billing Address_Province | text | company[billing_address][province] | optional | - |
Billing Address_Province Code | text | company[billing_address][province_code] | optional | - |
Billing Address_City | text | company[billing_address][city] | optional | - |
Billing Address_City Code | text | company[billing_address][city_code] | optional | - |
Billing Address_District | text | company[billing_address][district] | optional | - |
Billing Address_District Code | text | company[billing_address][district_code] | optional | - |
Billing Address_Zip Code | text | company[billing_address][zip_code] | optional | - |
Custom Field | text | attribute[your_key] | optional | Example: <input name="attribute[age]" /> |
Example
{{#form "company_account_application" class="application-form"}}
{{#if form.posted_successfully}}
<div>Successfully submitted</div>
{{/if}}
{{#if form.errors.messages}}
<div>{{ form.errors.messages }}</div>
{{/if}}
<div class="email">
<label for="company[email]">email</label>
<input type="text" name="company[email]" placeholder="email" />
</div>
<div class="company_name">
<label for="company[company_name]">company_name</label>
<input type="text" name="company[company_name]" placeholder="company_name" />
</div>
<div class="submit">
<input class="submit-button" type="submit" value="submit">
</div>
{{/form}}
Was this article helpful to you?
Error loading component.