Change display of zip code

  • Posts: 44
  • Thank you received: 0
11 years 1 week ago #157783

-- url of the page with the problem -- : test.crossfitshorts.com
-- HikaShop version -- : HikaShop Essential: 2.3.0
-- Joomla version -- : Joomla! 3.3.0 Stable
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : see belowe

I need to change the order in which the zip code is displayed in checkout and on the receipt. It is currently displayed as zip, city, state and I need it to be city, state, and zip in both places (checkout and receipt).

Can someone please direct me to a tutorials on this?

Thanks,
Todd

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
11 years 1 week ago #157815

Looks like you'll have to edit the view -> HikaShop -> your template -> Frontend -> address -> address_template(.php)
by changing the present order of

{address_post_code} {address_city} {address_state}

to
{address_city} {address_state} {address_post_code}


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
11 years 1 week ago #157816

However, I'd like to take the opportunity and amend as follows:

Different countries have different patterns for the order of city, postcode, state. I dare saying that for those of us who are dealing internationally, it would be a welcome additional feature, if this could be set per country (zone). Sure, finding the proper default already on install of HikaShop would be the crown on it, but burdening the dev crew with this might be asking for too much, haha. Anyhow, users being able to alter the settings per country would already be a cool step forward.
Definitely more of a "new feature request", but while we're on it...
Thanks.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 1 week ago #157841

That's a good idea lousyfool, I'll add that to our todo list.

The following user(s) said Thank You: lousyfool

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
11 years 1 week ago #158134

Hi benrud,

Thought I'll keep you posted on additional findings on the subject:
Sort of triggered by your post, I myself went to edit the address_template in the frontend as well. Then noticed that e.g. the status notification email remains unaffected. Before you notice and wonder as well, here is the rest of the story:

As per this thread , you need to also edit the address_template view in the backend as well. You'll find it when looking the usual way for HikaShop/order/your backend template/backend views.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum