French Address in Checkout Step 3 - CS-Cart 2.1.2

Hello All,



In Checkout Step 3, there is an address reminder to Step 2 like this:


[QUOTE]Billing Address:

John Doe

888 Fifth Avenue

New York, NY 10019

USA[/QUOTE]



That’s perfect for American address:



City, State, ZIP Code



A French address is different:



ZIP Code, City



So, you need to change “[COLOR=“Blue”]step_profile_fields.tpl[/COLOR]”:



/skins/YOUR SKIN/customer/views/profiles/components/[COLOR=“#0000ff”]step_profile_fields.tpl[/COLOR]:



Change this (American address):



{if $user_title || $user_firstname || $user_lastname}

{if $user_title}{$user_title} {/if}{$user_firstname}{if $user_lastname} {$user_lastname}{/if}

{/if}
{if $user_address}

{$user_address}

{/if}
{if $user_address_2}

{$user_address_2}

{/if}
{if $user_city}{assign var="user_location" value="$user_city"}{/if}
{if $user_state}
{if $user_location}{assign var="user_location" value="$user_location, "}{/if}
{assign var="user_location" value="$user_location$user_state"}
{/if}
{if $user_zipcode}
{assign var="user_location" value="$user_location $user_zipcode"}
{/if}
{if $user_location}

{$user_location}

{/if}
{if $user_country}

{$user_country}

{/if}





To This (for French address):



{if $user_title || $user_firstname || $user_lastname}

{if $user_title}{$user_title} {/if}{$user_firstname}{if $user_lastname} {$user_lastname}{/if}

{/if}
{if $user_address}

{$user_address}

{/if}
{if $user_address_2}

{$user_address_2}

{/if}
{if $user_city}{assign var="user_location" value="$user_city"}{/if}
{if $user_state}
{if $user_location}{assign var="user_location" value="$user_location, "}{/if}
{assign var="user_location" value="$user_location$user_state"}
{/if}
{* {if $user_zipcode}
{assign var="user_location" value="$user_location $user_zipcode"}
{/if} *}
{if $user_location}

{if $user_zipcode}{$user_zipcode}{/if} {$user_location}

{/if}
{if $user_country}

{$user_country}

{/if}





You will have a perfect French address!





Lee Li Pop

Its working for lately version v 2.0.5? thanks for toturial

Hello LoveCSCart,


[quote name=‘lovecscart’]Its working for lately version v 2.0.5? thanks for toturial[/QUOTE]



I’m sorry, I never used CS-Cart 2.0.5, so, I don’t know this version.



However, you can try to change file by yourself and test.





Lee Li Pop