# Which variable is used in email template for referencing customer country-\>state?

**URL:** <https://forum.shopware.com/t/which-variable-is-used-in-email-template-for-referencing-customer-country-state/101767>\
**Category:** Shopware 6 (English)\
**Created:** [2. November 2023 um 05:42 UTC](https://forum.shopware.com/t/which-variable-is-used-in-email-template-for-referencing-customer-country-state/101767 "2023-11-02T05:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![viniciov](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@viniciov](https://forum.shopware.com/u/viniciov)\
**Post date:** [2. November 2023 um 05:42 UTC](https://forum.shopware.com/t/which-variable-is-used-in-email-template-for-referencing-customer-country-state/101767/1 "2023-11-02T05:42:59Z")

</div>

Hello there. I’m looking for to display the State (state in a geographical sense) of the customer (in a customer address section). I have tried many options like **order.addresses.countryState** but it doesn’t work. Could anyone please share which variable can be used for that purpose?  
thanks.

---

<div class="post-metadata">

**Author:** ![viniciov](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@viniciov](https://forum.shopware.com/u/viniciov)\
**Post date:** [2. November 2023 um 19:55 UTC](https://forum.shopware.com/t/which-variable-is-used-in-email-template-for-referencing-customer-country-state/101767/2 "2023-11-02T19:55:16Z")

</div>

I have found the solution. Within the email template I have used this code:

```auto
{% set delivery = order.deliveries.first %}
{% if delivery %}
     {{ delivery.shippingOrderAddress.countryState.translated.name }} 
{% endif %}

```

the variable is CountryState but I must put the translated name.
