Address Template is not outputting the correct format

Hi ERPNexters,

I changed my default Address Template from

{{ address_line1 }}

{% if address_line2 %}{{ address_line2 }}
{% endif -%}
{{ city }}

{% if state %}{{ state }}
{% endif -%}
{% if pincode %} PIN: {{ pincode }}
{% endif -%}
{{ country }}

{% if phone %}Phone: {{ phone }}
{% endif -%}
{% if fax %}Fax: {{ fax }}
{% endif -%}
{% if email_id %}Email: {{ email_id }}
{% endif -%}

To

{{ address_line1 }} || {% if address_line2 %}{{ address_line2 }} || {% endif -%}{{ city }}

{% if gst_state %}{{ gst_state }}{% endif -%},
{% if gst_state_number %}State Code: {{ gst_state_number }}
{% endif -%}
{% if pincode %}PIN: {{ pincode }}{% endif -%} || {{ country }}

{% if phone %}Phone: {{ phone }}|| {% endif -%} {% if fax %}Fax: {{ fax }}
{% endif -%}
{% if email_id %}Email: {{ email_id }}
{% endif -%}
{% if gstin %}GSTIN: {{ gstin }}
{% endif -%}

But it is still not showing the new format.
What am i doing wrong?

Thanks for giving me some pointers!

Regards

Well assuming these don’t work

bench clear-cache
bench clear-website-cache

Possibly these clues Refresh Page with Script

And also you must be in developer_mode, and development not production?

I am curious on what works :slight_smile:

Thanks!!!

How can i check which mode am i in without going to terminal? This is what I see.

image

This seems like, if I had written a custom script in JavaScript, this code would probably clear cache.
I am just doing basic editing in the ERPNext via a browser.

Sorry I am not familiar with your development environment!?