Jump to content

Photo

State is not showing in adress


  • Please log in to reply
2 replies to this topic

#1 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts

Posted 24 January 2019 - 19:12

Hello,

 

I have added 41 states in the ussed country and I selected in the customer adress form field:

 

Country' enabled - ON

'Country' required - ON

'State/province' enabled - On

'State/province' required

 

When a customers places an order he is asked to select the country and the state and this works perfect so far.

 

After the order is placed when we look at the adress we only see City and Country , there is a blank space where the state should be shown.pic1.png (see pic1.png)

 

Also it is the same in the emails sent to customer and to owner. (see pic2.png)

 

The only way I can see the state right now is if I try to edit the billing or shipping adress in the order. (see pic3.png)

 

Is there any way for the state to show, it would be ok if I could add it in the owner order notification.

 

I tryed in the message  template :

 

  <table class="order-details w-100">
          <tbody>
            <tr>
              <td width="50%">
                <h3>Billing adress</h3>
              {% include 'address' with Order.Billing %}
                {% include 'address' with Order.StateProvince %}
 
 
Thank you in advance!

Attached Files



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3804 posts

Posted 25 January 2019 - 00:38

Try to save a specific address format for the country (Configuration > Regional settings > Countries > Name > Address format).
Example (note the state placeholder):
{{ Salutation }} {{ FirstName }} {{ LastName }}
{{ Company }}
{{ Street1 }}
{{ Street2 }}
{{ City }}, {{ State }} {{ ZipCode }}
{{ Country | Upcase }}

Marcus Gesing

Smartstore AG


#3 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts

Posted 25 January 2019 - 12:08

Got it, thank you!!!