Guest Posted August 5, 2008 Posted August 5, 2008 Hi, quick question. How do I change the format/layout of the customer's billing and delivery address that appear in the order confirmation emails, also in admin>orders? The current layout I have is this: Company name Customer's name Street Address Town, Postcode County, Country The layout I require is: Company name Customer's name Street Address Town, County Postcode i.e swap county and postcode and get rid of country. I assume the format is set in one place and all the file reference it, if so where can I find the code to change this? Thnaks. :)
Drafus Posted August 5, 2008 Posted August 5, 2008 Hi, quick question. How do I change the format/layout of the customer's billing and delivery address that appear in the order confirmation emails, also in admin>orders? The current layout I have is this: Company name Customer's name Street Address Town, Postcode County, Country The layout I require is: Company name Customer's name Street Address Town, County Postcode i.e swap county and postcode and get rid of country. I assume the format is set in one place and all the file reference it, if so where can I find the code to change this? Thnaks. :) Hi Marker, To swap "Postal Code" with "City" do the following. You can do the same with any of the other fields to display them the way you would like. Edit: catalog/create_account.php Find: <tr> <td class="main" align="right"><?php echo ENTRY_POST_CODE; ?></td> <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main" align="right"><?php echo ENTRY_CITY; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> Replace with: <tr> <td class="main" align="right"><?php echo ENTRY_CITY; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main" align="right"><?php echo ENTRY_POST_CODE; ?></td> <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td> </tr> Hope this helps!
♥geoffreywalton Posted August 5, 2008 Posted August 5, 2008 Each country is associated to an address layout. Browse the table address format, using phpmyadmin, and countries and you will see each country is associated to an address layout. If there is not the layout you want just create one and associate the country you want to it. Much simpler than hacking the code. Enjoy Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted August 5, 2008 Posted August 5, 2008 Each country is associated to an address layout. Browse the table address format, using phpmyadmin, and countries and you will see each country is associated to an address layout. If there is not the layout you want just create one and associate the country you want to it. Much simpler than hacking the code. Enjoy Great, thats what I was looking for. Many thanks. :) I can just address_format_id_1 in phpmyadmin to suit my requirments can't I (rather than creating a new one)?
Drafus Posted August 5, 2008 Posted August 5, 2008 Great, thats what I was looking for. Many thanks. :) I can just address_format_id_1 in phpmyadmin to suit my requirments can't I (rather than creating a new one)? Hi again, Here is the link to the answer for all questions regarding arrangement of address fields that I just now happened to stumble across. Hope it helps: http://www.oscommerce.com/forums/index.php?showtopic=210067
Recommended Posts
Archived
This topic is now archived and is closed to further replies.