CheckoutAddressViewModel

Overview

You'll be using the CheckoutAddressViewModel for anything related to an address at the checkout, and beyond.  Another example might be when confirming an address after using an offsite payment option. This article will help you understand what's available to you in the view model.

Requirements

The following pre-requisites will be necessary to accomplish the goals of this article:

  • General understanding of template engines
  • Understanding HTML, CSS, JavaScript
  • Familiarity with template languages
  • Familiarity with ASP.NET MVC Razor

Getting Started

There are no tasks needed to get started with understanding this object. 

CheckoutAddressViewModel

The CheckoutAddressViewModel object will contain all of the details of a single address for use during checkout in your Hotcakes Commerce store.

Members

The following table gives you details on the various members of the CheckoutAddressViewModel object.  The descriptions are based upon default functionality and the default Viewset included with Hotcakes.

Member Type Description
Address Address

Indicates a specific selected address from the address drop down list or the new address entered by the customer on the form.

Addresses List<Address> This shows already saved addresses for the currently logged in customer's address book.
Countries List<Country> List of enabled countries shown to the customer.
ErrorCssClass String CSS class name used to display form errors to the customer.
Prefix String Prefix (e.g., Shipping, Billing) used to create the id of the all controls of the form.
ShowPhone Bool If true, indicates that the form needs to show the telephone input control on the view.
TabIndex Int Tab index related to each control. This will be used as starting index then all child controls will have the incremental value for the index.
Violations List<RuleViolation> Contains list of the different validation errors on the form.

 

Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.