City - Postal code: How to change this order?

Tried to change order in “Users” “Profile fields” with no success.



Wish to have Code preceeding City but only can get “City Code” order.



What am I missing?



Thanks

It should be enough just to change the value in the “POS.” field of the necessary fields and click the “Save” button.

Is this not the way it should be?

billing.jpg

Users Profile fields - Administration panel - Opera.jpg

Thank you for the screenshot. The order of the profile fields will work for the user registration page or checkout, but not for the order details page in admin panel. In your case you need to edit the code in the “profiles_info.tpl” file located in the “skins/basic/admin/views/profiles/components” directory of your CS-Cart installation.

Thanks Orangegirl,



Not being a programmer, I tried the change in red, but this do not seem to be correct.

Further would be very much appreciated.

Thanks


```php {* $Id: profiles_info.tpl 10737 2010-09-29 08:42:05Z klerik $ *}



{assign var=“profile_fields” value=$location|fn_get_profile_fields}







{if $user_data.email || $user_data.phone || $user_data.fax || $user_data.company || $user_data.url}



{/if}

{if $user_data.b_firstname || $user_data.b_lastname || $user_data.b_address || $user_data.b_address_2 || $user_data.b_city || $user_data.b_country_descr || $user_data.b_state_descr || $user_data.b_zipcode || $profile_fields.B}
{include file="common_templates/subheader.tpl" title=$lang.billing_address}

{if $user_data.b_firstname || $user_data.b_lastname}

{$user_data.b_firstname} {$user_data.b_lastname}


{/if}
{if $user_data.b_address}

{$user_data.b_address}


{/if}
{if $user_data.b_address_2}

{$user_data.b_address_2}


{/if}
{if $user_data.b_zipcode|| $user_data.b_city || $user_data.b_state_descr}

{[COLOR="Red"]$user_data.b_zipcode || [/COLOR]$user_data.b_city}{if $user_data.b_city && ($user_data.b_state_descr || $user_data.b_zipcode)},{/if} {$user_data.b_state_descr} [COLOR="Red"]{*{$user_data.b_zipcode}*}[/COLOR]


{/if}
{if $user_data.b_country_descr}

{$user_data.b_country_descr}

{/if}
{include file="views/profiles/components/profile_fields_info.tpl" fields=$profile_fields.B}
{if $user_data.b_phone}

{$user_data.b_phone}


{/if}

{/if}

{if $user_data.s_firstname || $user_data.s_lastname || $user_data.s_address || $user_data.s_address_2 || $user_data.s_city || $user_data.s_country_descr || $user_data.s_state_descr || $lang.zip_postal_code || $profile_fields.S}
{include file="common_templates/subheader.tpl" title=$lang.shipping_address}

{if $user_data.s_firstname || $user_data.s_lastname}

{$user_data.s_firstname} {$user_data.s_lastname}


{/if}
{if $user_data.s_address}

{$user_data.s_address}


{/if}
{if $user_data.s_address_2}

{$user_data.s_address_2}


{/if}
{if $user_data.s_zipcode||$user_data.s_city || $user_data.s_state_descr}

{$user_data.s_city}{if $user_data.s_city && ($user_data.s_state_descr || $user_data.s_zipcode)},{/if} {$user_data.s_state_descr} {$user_data.s_zipcode}


{/if}
{if $user_data.s_country_descr}

{$user_data.s_country_descr}

{/if}
{include file="views/profiles/components/profile_fields_info.tpl" fields=$profile_fields.S}
{if $user_data.s_phone}

{$user_data.s_phone}


{/if}

{/if}


{if $user_data.ip_address}

{$lang.ip_address}:
{$user_data.ip_address}

{/if}

{if $user_data.title_descr}{$user_data.title_descr} {/if}{$user_data.firstname} {$user_data.lastname}, {$user_data.email}




{if $user_data.phone}

{$lang.phone}:
{$user_data.phone}

{/if}
{if $user_data.fax}

{$lang.fax}:
{$user_data.fax}

{/if}


{if $user_data.company}

{$lang.company}:
{$user_data.company}

{/if}
{if $user_data.url}

{$lang.website}:
{$user_data.url}

{/if}



{include file="views/profiles/components/profile_fields_info.tpl" fields=$profile_fields.C customer_info="Y"}

{if $email_changed}

{$lang.attention}
{$lang.notice_update_customer_details}




{$lang.update_customer_info}

{/if}


```

Dear Aerofan,



Please try replacing this part of the code:


{if $user_data.b_city || $user_data.b_state_descr || $user_data.b_zipcode}

{$user_data.b_city}{if $user_data.b_city && ($user_data.b_state_descr || $user_data.b_zipcode)},{/if} {$user_data.b_state_descr} {$user_data.b_zipcode}


{/if}


with this one:


{if $user_data.b_city || $user_data.b_state_descr || $user_data.b_zipcode}

{$user_data.b_zipcode} {$user_data.b_city}{if $user_data.b_city && ($user_data.b_state_descr || $user_data.b_zipcode)},{/if} {$user_data.b_state_descr}


{/if}


in the mentioned file.



After the changes, clean up the templates cache. To do it, open in your web browser http://www.your_domain.com/admin.php?cc, where www.your_domain.com is the address of your store, and admin.php is a script file for the administration panel of your store which was renamed for security reasons.

Thank you for the comprehensive explanations Kate!



It works fine this way.

I just duplicated it and also applied it to SHIPPING ADRESS.

You are welcome. I am glad to help you.

Solved in admin screen but problem remains when printing, in the 3 printing modes. PDF / Invoice / Packing slip



What are the files involved in the printing processes?



Thanks