customer

The customer object contains information about a customer who has a customer account.

customer.id

Returns the id of the customer.

customer.name

Returns the full name of the customer.

customer.addresses_count

Returns the number of addresses associated with a customer.

customer.first_name

Returns the first name of the customer.

customer.last_name

Returns the last name of the customer.

customer.email

Returns the email address of the customer.

customer.orders

Returns an array of all orders placed by the customer. More info ›

{% for order in customer.orders %}
	{{ order.id }}
{% endfor %}
#1101
#1102
#1103
					

customer.addresses

Returns an array of all addresses associated with a customer. See customer_address for a full list of available attributes. More info ›

{% for address in customer.addresses %}
	{{ address.zip }}
{% endfor %}
					
53300
53000
47100
					

customer.default_address

Returns the default customer_address.

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale