Follow

Customer Account

Variable Usage Explanation
customer.id (int) {{customer.id}} Returns the ID of the customer.
customer.firstname (str) {{customer.firstname}} Returns the first name of the customer.
customer.lastname (str) {{customer.lastname}} Returns the last name of the customer.
customer.email (str) {{customer.email}} Returns the e-mail address of the customer.
customer.status (str) {{customer.status}} Returns the status of the customer.
customer.phonenumber {{customer.phonenumber}} Returns the phone number of the customer.
customer.signupDate {{customer.signupDate}} Returns the sign up date of the customer.
customer.company {{customer.company}} Returns the company information of the customer.
customer.customerGroupId (int) {{customer.customerGroupId}} Returns the customer group ID of the customer.
customer.orders (array) {{customer.orders}} Retrieves orders in a row. It's variables are listed below.
billingAddress.city (str) {%for order in customer.orders%}
  {{order.billingAddress.city}}
{% endfor %}
Returns the city info of the billing address.
billingAddress.zipCode (int) {% for order in customer.orders %}
{{order.billingAddress.zipCode}}
{% endfor %}
Returns the zipcode info of the billing address.
billingAddress.firstName (str) {% for order in customer.orders %}
{{order.billingAddress.firstName}}
{% endfor %}
Returns the first name of the billing address.
billingAddress.lastName (str) {% for order in customer.orders %}
{{order.billingAddress.lastName}}
{% endfor %}
Returns the last name of the billing address.
billingAddress.company (str) {% for order in customer.orders %}
{{order.billingAddress.company}}
{% endfor %}
Returns the company of the billing address.
billingAddress.phoneNumber (str) {% for order in customer.orders %}
{{order.billingAddress.phoneNumber}}
{% endfor %}
Returns the phone number of the billing address.
shippingAddress.city (str) {% for order in customer.orders %}
{{order.shippingAddress.city}}
{% endfor %}
Returns the city info of the shipping address.
shippingAddress.zipCode (int) {% for order in customer.orders %}
{{order.shippingAddress.zipCode}}
{% endfor %}
Returns the zipcode info of the shipping address.
shippingAddress.firstName (str) {% for order in customer.orders %}
{{order.shippingAddress.firstName}}
{% endfor %}
Returns the first name of the shipping address.
shippingAddress.lastName (str) {% for order in customer.orders %}
{{order.shippingAddress.lastName}}
{% endfor %}
Returns the last name of the shipping address.
shippingAddress.company (str) {% for order in customer.orders %}
{{order.shippingAddress.company}}
{% endfor %}
Returns the company of the shipping address.
shippingAddress.phoneNumber (str) {% for order in customer.orders %}
{{order.shippingAddress.phoneNumber}}
{% endfor %}
Returns the phone number of the shipping address.
cancelReason (str) {% for order in customer.orders %}
{{order.cancelReason}}
{% endfor %}
Returns the cancel reason of the order.
cancelReason (str) {% for order in customer.orders %}
{{order.cancelReason}}
{% endfor %}
Returns the cancel reason of the order.
couponUsed (int) {% for order in customer.orders %}
{{order.couponUsed}}
{% endfor %}
Returns the coupon of the order if used.
creationDate {% for order in customer.orders %}
{{order.creationDate}}
{% endfor %}
Returns the creation date of the order.
currency (str) {% for order in customer.orders %}
{{order.currency}}
{% endfor %}
Returns the currency of the order.
customerNote (str) {% for order in customer.orders %}
{{order.customerNote}}
{% endfor %}
Returns the customer note of the order.
fullfillmentStatus (str) {% for order in customer.orders %}
{{order.fullfillmentStatus}}
{% endfor %}
Returns the status of the order. (fulfilled or not fulfilled)
ip {% for order in customer.orders %}
{{order.ip}}
{% endfor %}
Returns the IP number of the device by which the order is placed.
lastUpdate {% for order in customer.orders %}
{{order.lastUpdate}}
{% endfor %}
Returns the last update of the order.
oid {% for order in customer.orders %}
{{order.oid}}
{% endfor %}
Returns the id of the order.
paymentStatus {% for order in customer.orders %}
{{order.paymentStatus}}
{% endfor %}
Returns the payment status of the order. (pending or paid)
shippingLabel {% for order in customer.orders %}
{{order.shippingLabel}}
{% endfor %}
Returns the shipping label of the order.
shippingMaxVal {% for order in customer.orders %}
{{order.shippingMaxVal}}
{% endfor %}
Returns the max shipping value of the order.
shippingMinVal {% for order in customer.orders %}
{{order.shippingMinVal}}
{% endfor %}
Returns the min shipping value of the order.
 shippingPrice {% for order in customer.orders %}
{{order.shippingPrice}}
{% endfor %}
Returns the shipping cost of the order.
shippingType {% for order in customer.orders %}
{{order.shippingType}}
{% endfor %}
Returns the shipping type of the order.
shippingStatus (int) {% for order in customer.orders %}
 {{order.shippingStatus}}
{% endfor %}
Returns the shipping status of the order.
status (str) {% for order in customer.orders %}
 {{order.status}}
{% endfor %}
Returns the status of the order. (open or canceled)
taxName (str) {% for order in customer.orders %}
 {{order.taxName}}
{% endfor %}
Returns the tax name of the order.
total {% for order in customer.orders %}
 {{order.total}}
{% endfor %}
Returns the total cost (incl. Shipping) of the order.
totalTax {% for order in customer.orders %}
 {{order.totalTax}}
{% endfor %}
Returns the total tax cost of the order.
product.label {% for order in customer.orders %}
   {% for item in order.cart.items%}
     {{item.product.label}}
   {% endfor %}
{% endfor %}
Returns the names of the sold products.
amount {% for order in customer.orders %}
   {% for item in order.cart.items%}
     {{item.amount}}
   {% endfor %}
{% endfor %}
Returns the total unit of the sold products.
product.price {% for order in customer.orders %}
   {% for item in order.cart.items%}
     {{item.product.price}}
   {% endfor %}
{% endfor %}
Returns the price of the sold product.
currency {% for order in customer.orders %}
   {% for item in order.cart.items%}
     {{item.product.price}} {{order.currency}}
   {% endfor %}
{% endfor %}
Returns the currency of the order. Just like in the example it can be used with price.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk