Country Model

This document is for a version of Craft Commerce that is no longer supported. Please refer to the latest version →

CountryModels objects have the following attributes and methods:

#Attributes

#id

The address record ID.

#name

The countries name (required).

#iso

The country’s ISO code (required).

#stateRequired

A boolean, which determines if the state is required when this country is selected.

#cpEditUrl

A URL to edit this country in the control panel.