update_account.html

Purpose: This template is used within the "My account" area for the customer to update their primary billing/shipping details, as well as their login credentials.


Notes: This HTML file consists of a form with billing/shipping fields. It’s important that the form is left intact. You can format the form with styles, change field widths, etc, but do not rename the fields or the field values.

Code Blocks

Note: It is important to preserve the commented tags to ensure the software performs correctly.

 <!--START: upd_message-->
    [update_message]
  <!--END: upd_message-->
    [contactid]
    [account_header-update-account]
  <!--START: myAccount-->
  <!--END: myAccount-->
  <!--START: CATEGORY_HEADER-->
    [CONTENT]
  <!--END: CATEGORY_HEADER-->
    [email]
    [billing_company]
    [billing_firstname]
    [billing_lastname]
    [billing_address]
    [billing_address2]
    [billing_city]
    [billing_zip]
    [billing_phone]
    [shipping_company]
    [shipping_firstname]
    [shipping_lastname]
    [shipping_address]
    [shipping_address2]
    [shipping_city]
    [shipping_zip]
    [shipping_phone]
  <!--START: addressType-->
    [CustomerInfo_address_type]
    [addressTypeDropDown]
  <!--END: addressType-->
    [maillist]
  <!--START: CATEGORY_FOOTER-->
    [CONTENT]
  <!--END: CATEGORY_FOOTER-->
    [billing_country]
    [billing_state_script]
    [shipping_country]
    [shipping_state_script]
    [CustomerInfo_firstname]
    [CustomerInfo_lastname]
    [CustomerInfo_phone]
    [CustomerInfo_address]
    [CustomerInfo_city]
    [CustomerInfo_state]
    [CustomerInfo_zip]

Note: Code blocks and their respective variables will only work with specific template pages.

Variables

Note: Several of these variables are used in multiple places on the page, with their dynamic content controlled by the code block used in each instance.

  • [update_message] – Inserts a message stating “Account Updated Successfully” after saving the form.
  • [contactid] – Used by the Software to reference the Customer Record ID.
  • [account_header-update-account] – Displays the “Update Account” Title of the Page. (See Settings ->Design ->Store Language)
  • [email] – References/Records the customer record’s “Email” information.
  • [billing_company] – References/Records the customer record’s Billing “Company” information.
  • [billing_firstname] – References/Records the customer record’s Billing “First Name” information.
  • [billing_lastname] – References/Records the customer record’s Billing “Last Name” information.
  • [billing_address] – References/Records the customer record’s Billing “Address” information.
  • [billing_address2] – References/Records the customer record’s Billing “Suite/Apt#” information.
  • [billing_city] – References/Records the customer record’s Billing “City” information.
  • [billing_zip] – References/Records the customer record’s Billing “Zip/Postal Code” information.
  • [billing_phone] – References/Records the customer record’s Billing “Phone” information.
  • [shipping_company] – References/Records the customer record’s Shipping “Company” information.
  • [shipping_firstname] – References/Records the customer record’s Shipping “First Name” information.
  • [shipping_lastname] – References/Records the customer record’s Shipping “Last Name” information.
  • [shipping_address] – References/Records the customer record’s Shipping “Address” information.
  • [shipping_address2] – References/Records the customer record’s Shipping “Suite/Apt#” information.
  • [shipping_city] – References/Records the customer record’s Shipping “City” information.
  • [shipping_zip] – References/Records the customer record’s Shipping “Zip” information.
  • [shipping_phone] – References/Records the customer record’s Shipping “Phone” information.
  • [CustomerInfo_address_type] – Displays the Title of the “Address Type” drop down field. (See Settings ->Design ->Store Language)
  • [addressTypeDropDown] – References/Records the customer record’s “Address Type” drop down information.
  • [maillist] – References/Records the “I would like to receive updates… etc” checkbox selection.

These next few Variables are used to validate the information entered on the form. It is usually best to leave these variables intact as they are used by the Software to function correctly.

  • [billing_country] – Validates the entered Billing “Country” selection.
  • [billing_state_script] – Validates the entered Billing “State” selection.
  • [shipping_country] – Validates the entered Shipping “Country” selection.
  • [shipping_state_script] – Validates the entered Shipping “State” selection.
  • [CustomerInfo_firstname] – Validates the entered “First Name” entry for a set number of characters. (20 characters default)
  • [CustomerInfo_lastname] – Validates the entered “Last Name” entry for a set number of characters. (20 characters default)
  • [CustomerInfo_phone] – Validates the entered “Phone” entry for a set number of characters. (18 characters default)
  • [CustomerInfo_address] – Validates the entered “Address” entry for a set number of characters. (50 characters default)
  • [CustomerInfo_city] – Validates the entered “City” entry for a set number of characters. (50 characters default)
  • [CustomerInfo_state] – Validates the entered “State” entry for a set number of characters. (50 characters default)
  • [CustomerInfo_zip] – Validates the entered “Zip” entry for a set number of characters. (20 characters default)
X