Ecommerce for Statamic

Customer info

Outputs customer data saved to session.

Variables

Customer data

If your customer has previously saved their details to session, you can output their details within this tag pair using the following fields:

  • {{ first_name }}
  • {{ last_name }}
  • {{ email }}
  • {{ billing_address }}
  • {{ billing_address2 }}
  • {{ billing_city }}
  • {{ billing_state }}
  • {{ billing_zip }}
  • {{ billing_country }}
  • {{ shipping_first_name }}
  • {{ shipping_last_name }}
  • {{ shipping_address }}
  • {{ shipping_address2 }}
  • {{ shipping_city }}
  • {{ shipping_state }}
  • {{ shipping_zip }}
  • {{ shipping_country }}
  • {{ tax_number }}

If there are no details saved to session, it’ll try to find data saved to the member’s profile. No need to use {{ member:profile }} tags.

Example

{{ bison:customer_info }}
  Bill to:<br />
  {{ first_name }} {{ last_name }}<br />
  {{ billing_address }}
  {{ if billing_address2 }}<br />{{ billing_address2 }}{{ endif }}
  {{ billing_city }}, {{ billing_state }} {{ billing_zip }}<br />
  {{ billing_country }}
{{ /bison:customer_info }}


Problem with this page? Edit it on Github.