Jump to content

Switch position of "Postcode" and "City" fields in order details screen?


Recommended Posts

I tried changing line 53 on order-details.tpl

From:

    {$address_invoice->postcode|escape:'htmlall':'UTF-8'} {$address_invoice->city|escape:'htmlall':'UTF-8'}




To:


{$address_invoice->city|escape:'htmlall':'UTF-8'} {$address_invoice->postcode|escape:'htmlall':'UTF-8'}



but this didn't seem to work

Link to comment
Share on other sites

I just made the following change on line 54, this doesn't seem to have done it:


From:

$('ul#address_' + addressType + ' li.address_city').html(addresses[idAddress][5] + ' ' + addresses[idAddress][6]);




To:

$('ul#address_' + addressType + ' ' + addresses[idAddress][6] + ' li.address_city').html(addresses[idAddress][5]);

Link to comment
Share on other sites

Sorry i was thinking of the wrong page.

Here is my order-details.tpl address section that I altered.

></pre>
<ul>
{l s='Invoice'}
   {if $address_invoice->company}{$address_invoice->company|escape:'htmlall':'UTF-8'}{/if}
{$address_invoice->firstname|escape:'htmlall':'UTF-8'} {$address_invoice->lastname|escape:'htmlall':'UTF-8'}
{$address_invoice->address1|escape:'htmlall':'UTF-8'}
   {if $address_invoice->address2}{$address_invoice->address2|escape:'htmlall':'UTF-8'}{/if}
{$address_invoice->city|escape:'htmlall':'UTF-8'}{if $invoiceState} - {$invoiceState->name|escape:'htmlall':'UTF-8'}{/if}
{$address_invoice->postcode|escape:'htmlall':'UTF-8'} {$address_invoice->country|escape:'htmlall':'UTF-8'}
   {if $address_invoice->phone}{$address_invoice->phone|escape:'htmlall':'UTF-8'}{/if}
   {if $address_invoice->phone_mobile}{$address_invoice->phone_mobile|escape:'htmlall':'UTF-8'}{/if}
</ul>
<br><ul>
{l s='Delivery'}
   {if $address_delivery->company}{$address_delivery->company|escape:'htmlall':'UTF-8'}{/if}
{$address_delivery->firstname|escape:'htmlall':'UTF-8'} {$address_delivery->lastname|escape:'htmlall':'UTF-8'}
{$address_delivery->address1|escape:'htmlall':'UTF-8'}
   {if $address_delivery->address2}{$address_delivery->address2|escape:'htmlall':'UTF-8'}{/if}
{$address_delivery->city|escape:'htmlall':'UTF-8'}{if $deliveryState} - {$deliveryState->name|escape:'htmlall':'UTF-8'}{/if}
{$address_delivery->postcode|escape:'htmlall':'UTF-8'} {$address_delivery->country|escape:'htmlall':'UTF-8'}
   {if $address_delivery->phone}{$address_delivery->phone|escape:'htmlall':'UTF-8'}{/if}
   {if $address_delivery->phone_mobile}{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}{/if}
</ul>



Maybe it could help

Link to comment
Share on other sites

I got it! You need to make the change in AdminOrders.php

So I changed:


               '.$addressDelivery->postcode.' '.$addressDelivery->city.'

               '.$addressDelivery->country.($addressDelivery->id_state ? ' - '.$deliveryState->name : '').'






To:

                '.$addressDelivery->city.' 
                '.(!empty($addressDelivery->id_state) ? ' '.$deliveryState->name : '').'
               '.$addressDelivery->postcode.'

               '.$addressDelivery->country.'

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...