Hi, I am planning to use the packing slip print function to print adresses easily to be used on letters with stamps.
The plan is to use a label printer, to make the shipping easier!
I have figured out how to do it, but i have two problems.
-
I altered the template, but when i print it the shop uses the standard template anyways. Is this a known issue?
-
For my native country I don’t want to show the country code before the zip or under the zip code.
Can this be hidden for my country with a code string? Country is Sverige and country code SE
Best would be that all other countries was shown in the format SE-512 65 with a dash too, is this possible?
I am greatful for any help
Thanks Gordon
<p class="address-detail">
{% if shipping_address != blank %}
{{ shipping_address.name }}
{% if shipping_address.company != blank %}
<br>
{{ shipping_address.company }}
{% endif %}
<br>
{{ shipping_address.address1 }}
{% if shipping_address.address2 != blank %}
<br>
{{ shipping_address.address2 }}
{% endif %}
{% if shipping_address.country_code != blank %}
<br>
{{ shipping_address.country_code }} {{ shipping_address.city_province_zip }}
{% endif %}
<br>
{{ shipping_address.country }}
{% if shipping_address.phone != blank %}
<br>
{{ shipping_address.phone }}
{% endif %}
{% else %}
Ingen leveransadress
{% endif %}
