Address Model

AddressModel’s have the following attributes and methods:

Attributes #

id #

The address record ID.

firstName #

The customers first name (required).

lastName #

The customers last name (required).

address1 #

The first line of the address,

address2 #

Second address line.

city #

The city.

zipCode #

The zip or postcode.

phone #

Phone number.

alternativePhone #

An alternative phone number

businessName #

Business Name.

businessTaxId #

Business Tax ID. No automatic validation of this ID occurs.

stateText #

Alias of getStateText() Returns the stateName if it exists, otherwise the related state’s name.

stateName #

countryId #

The record ID of the related country (required).

stateId #

The record ID of the related state.

stateText #

Alias of getStateText()

countryText #

Alias of getCountryText()

Methods #

getStateText() #

Returns the stateName if it exists, otherwise the related state’s name.

getCountry() #

Returns the related Country Model is it exists, or a blank string if it does not.

getState() #

Returns the related State Model is it exists, or null if it does not.

Buy Craft Commerce

Craft Commerce site license

Includes

  • Standard tech support
  • Unlimited app updates
  • Craft Pro site license
Buy now for $999
Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!

Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!