Address displays incorrectly in checkout

  • Posts: 39
  • Thank you received: 0
12 years 1 month ago #68465

Hello. I went to Display> Views and edited address_template to rearrange the layout of the addresses in the checkout. Unfortunately it doesn't seem to have completely done what i wanted it to. I changed the layout to the following:

?>
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city} 
{address_state}
{address_post_code}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

This seems to have had no effect on the layout at all though. As you can see in the attached screenshot, the white form for inputting a new address shows in the correct order that I'd like (achieved by rearranging positions in Display> Custom fields), however the end result is the order seen in the pink address box to the left of it. How do i make the address that shows in the pink box display as I'd like it to?

Attachments:
Last edit: 12 years 1 month ago by 2ndrendermedia.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
12 years 1 month ago #68481

Hi,

The address_template is used by email, order and invoices : When the address is display only with text.
Using custom fields ordering is the correct method for the address edition in the checkout (and other front-end/back-end forms).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 39
  • Thank you received: 0
12 years 1 month ago #69369

I think you misunderstand. I have rearranged the custom field ordering and yet the post code still shows before the city and county. Please see attached screenshot. You'll see that post code comes after city and county however you can see in the first screenshot i sent in my previous post that it doesn't display this way (look at the pink box in the original screenshot, not the white form).

Attachments:

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
12 years 1 month ago #69466

Hi,

I think that you didn't understand my answer.

The address_template is used by email, order and invoices : When the address is display only with text.
Using custom fields ordering is the correct method for the address edition in the checkout (and other front-end/back-end forms).


You "pink" zone the address_template, the content that you posted on your first message.
The popup zone you the custom fields, your configuration send in your last message.

I don't see any problem.
The pink zone display the address_template content correctly (because it is only text) and the poup display custom fields with the right order.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 39
  • Thank you received: 0
12 years 1 month ago #69469

I'm confused now. The way i see it, I've changed the code to the following:

?>
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_city}
{address_state}
{address_post_code}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

In this, post code comes after (and on a separate line) to city and state. However in reality it still shows up before and on the same line as city and state in the pink box. I want it to display in the order shown above when in the pink box.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #69543

Editing the address_template file is the correct thing to do. However, there are two address_template files. One for the backend, and one for the front end. On top of that, you might have several templates so yet more possibilities to not edit the correct one.
Please make sure that you're editing the frontend one for your frontend template and it will work.

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

  • Posts: 39
  • Thank you received: 0
12 years 1 month ago #69640

Oh i see. That's solved the issue i was having. Thanks very much for your help once again. So glad i went with Hikashop for my eCommerce solution. The product itself is excellent and the customer support is just as good. :)

Last edit: 12 years 1 month ago by 2ndrendermedia. Reason: spelling

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

Time to create page: 0.071 seconds
Powered by Kunena Forum