Addresses

On this page

Overview

Used with either bill_address or ship_address, example: bill_address.address1

Name Description
id Address id in the webshop
first_name The first name of the customer
last_name The last name of the customer
full_name The full name of the customer
address1 Required field. Must be used for form to work.
The address/streetname of the customer
address2 Additional address/streetname if needed
city Required field. Must be used for form to work.
The city of the customers address
zipcode The zipcode of the customers address
phone The telephone number of the customer
alternative_phone An alternative phone number 
state_name The name of the state of the customer address
company Company name of the customer
care_of Missing description
email Customer's email
country_iso_name The ISO name of the country
title Missing description
country_id Required field. Must be used for form to work.
Country id in the webshop
country Country name
exists? Boolean. Does the address exist?

 


 

 Update address

{% cartform %}
  <input name="order[bill_address_attributes][address1]" type="text" value="{{ cart.bill_address.address1 }}">
  <input name="order[bill_address_attributes][city]" type="text" value="{{ cart.bill_address.city   }}">
  <input name="order[bill_address_attributes][country_id]" type="number" value="{{ store.country.id }}">
  <button type="submit">{{ 'Update' | t }}</button>
{% endcartform %}

Updated: 2020-11-24