Inhalte aufrufen

Profilbild

State is not showing in adress


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 mihai8822m

mihai8822m

    Member

  • Members
  • 13 Beiträge

Geschrieben: 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!

Angehängte Bilder

  • Angehängte Datei  pic1.png   23.37K   0 Anzahl Downloads
  • Angehängte Datei  pic2.png   5.99K   0 Anzahl Downloads
  • Angehängte Datei  pic3.png   20.23K   0 Anzahl Downloads


#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3327 Beiträge

Geschrieben: 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 }}

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 mihai8822m

mihai8822m

    Member

  • Members
  • 13 Beiträge

Geschrieben: 25 January 2019 - 12:08

Got it, thank you!!!