- Posts: 42
- Thank you received: 2
SOLVED Formatting of billing and shipping address?
14 years 7 months ago - 14 years 7 months ago #39164
by spoonbow
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
SOLVED Formatting of billing and shipping address? was created by spoonbow
Hello again!
Is it possible to change the formatting of the billing and shipping addresses? They currently are not in a "standard" format for USA. As is, they look like:
Mr Test User
123 First
49685 Traverse City Michigan
United States of America
Telephone: 2312312311
But I would like them to appear like this:
Mr Test User
123 First
Traverse City, Michigan
49685
United States of America
Telephone: 2312312311
Subtle difference, but that is how we are used to seeing it. Is this possible in the Business edition using overrides (I currently have Essential, but am considering upgrading to Business), or would this require modification of code?
Thank You,
Matt Heffron
Traverse City, MI
Is it possible to change the formatting of the billing and shipping addresses? They currently are not in a "standard" format for USA. As is, they look like:
Mr Test User
123 First
49685 Traverse City Michigan
United States of America
Telephone: 2312312311
But I would like them to appear like this:
Mr Test User
123 First
Traverse City, Michigan
49685
United States of America
Telephone: 2312312311
Subtle difference, but that is how we are used to seeing it. Is this possible in the Business edition using overrides (I currently have Essential, but am considering upgrading to Business), or would this require modification of code?
Thank You,
Matt Heffron
Traverse City, MI
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
Last edit: 14 years 7 months ago by spoonbow. Reason: Figured it out
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 218
- Thank you received: 6
14 years 7 months ago #39173
by woonydanny
Replied by woonydanny on topic Re: Formatting of billing and shipping address?
I am wondering the same thing.
In Australia we write our addresses:
15 Peter Street
Bondi , New South Wales 2026
Australia
(Street Address)
(Suburb/Town),(State), (Post code)
(Country)
In Australia we write our addresses:
15 Peter Street
Bondi , New South Wales 2026
Australia
(Street Address)
(Suburb/Town),(State), (Post code)
(Country)
Please Log in or Create an account to join the conversation.
14 years 7 months ago #39176
by spoonbow
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
Replied by spoonbow on topic Re: Formatting of billing and shipping address?
Here's how I resolved this on my setup.
In Hikashop configuration go to Display->Views. Select your template and "Front End" in the drop down lists at the top of the page. If it's not right on top of the list, filter on "address_template", then click on it to edit. Cut and Paste the fields into the desired order/display. For you it would be:
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city}, {address_state} {address_post_code}
{address_country}
Notice the added comma after {address_city}. Editing and saving this template resulted in the address being formatted properly in the emails sent out to the customer.
If you select "Back End" from the drop down list you will find another "address_template" that appears to be identical to the one for the front end. I had assumed that editing this template would result in the correct address format being applied when generating an invoice from an order in the back end, but this doesn't seem to be the case. Will keep hunting for a resolution on that one.
Cheers
Matt
In Hikashop configuration go to Display->Views. Select your template and "Front End" in the drop down lists at the top of the page. If it's not right on top of the list, filter on "address_template", then click on it to edit. Cut and Paste the fields into the desired order/display. For you it would be:
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city}, {address_state} {address_post_code}
{address_country}
Notice the added comma after {address_city}. Editing and saving this template resulted in the address being formatted properly in the emails sent out to the customer.
If you select "Back End" from the drop down list you will find another "address_template" that appears to be identical to the one for the front end. I had assumed that editing this template would result in the correct address format being applied when generating an invoice from an order in the back end, but this doesn't seem to be the case. Will keep hunting for a resolution on that one.
Cheers
Matt
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
The following user(s) said Thank You: woonydanny
Please Log in or Create an account to join the conversation.
14 years 7 months ago #39267
by nicolas
Replied by nicolas on topic Re: Formatting of billing and shipping address?
Hi,
The address_template view file for the back end is indeed what you should change. Be careful to choose the correct template when editing it. If you edit it for another template than the one you're using, you won't see the change.
The address_template view file for the back end is indeed what you should change. Be careful to choose the correct template when editing it. If you edit it for another template than the one you're using, you won't see the change.
The following user(s) said Thank You: spoonbow
Please Log in or Create an account to join the conversation.
14 years 7 months ago #39276
by paul@rm2u
Replied by paul@rm2u on topic Re: Formatting of billing and shipping address?
Nicholas, this doesn't seem to be affecting the "New" button link to the popup form. Which area do I modify again?
Please Log in or Create an account to join the conversation.
14 years 7 months ago - 14 years 7 months ago #39279
by spoonbow
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
Replied by spoonbow on topic Re: Formatting of billing and shipping address?
Nicolas
That was indeed the problem - I was editing the wrong template. Works perfectly now that I've done it the right way... :blush:
Thanks!
Matt
That was indeed the problem - I was editing the wrong template. Works perfectly now that I've done it the right way... :blush:
Thanks!
Matt
It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.
Last edit: 14 years 7 months ago by spoonbow. Reason: Spelling error
Please Log in or Create an account to join the conversation.
14 years 7 months ago #39387
by nicolas
Replied by nicolas on topic Re: Formatting of billing and shipping address?
For the address form itself, you need to configure your custom address fields via the menu Display->Custom fields.
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds