tdr170 Posted December 28, 2011 Share Posted December 28, 2011 I would like to change the address format to be like we write it in the US. (not the color) 3441 NE 13th Ave. Pompano beach, FL 33064 In the Our store page it is assembled like this 3441 NE 13th ave 33064 Pompano beach, FL Is there an easy way to change this. (pic deleted) 1 Link to comment Share on other sites More sharing options...
nestawr Posted January 7, 2012 Share Posted January 7, 2012 I'm searching for the same thing. I'll let you know if I figure it out. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted January 7, 2012 Share Posted January 7, 2012 You should be able to do this in Shipping > Countries then select the country you would like to edit. Hope that helps! Marty Shue Link to comment Share on other sites More sharing options...
millor78 Posted January 8, 2012 Share Posted January 8, 2012 I would like to change the address format to be like we write it in the US. (not the color) 3441 NE 13th Ave. Pompano beach, FL 33064 In the Our store page it is assembled like this 3441 NE 13th ave 33064 Pompano beach, FL Is there an easy way to change this. http://www.addons-modules.com/prestashop-tips/tag/address-dissplay-format/ Link to comment Share on other sites More sharing options...
tdr170 Posted January 10, 2012 Author Share Posted January 10, 2012 Thanks for the reply, however I could not find the lines that were refered to in my addresses.tpl, address.tpl. Not sure when that was writtin, I think it may be for an older version, I am using version 1.4.6.2. Link to comment Share on other sites More sharing options...
Dan1 Posted March 20, 2012 Share Posted March 20, 2012 Thanks tdr170 for raising the question, and thank you very much millor78 for the solution. Your edits worked perfectly for me with PS 1.3.7. I think the line numbers weren't the same but I found the code that needed to be replaced. This will save me a lot of time plugging the address into label printing software. There's one more time saving change that I would like to implement. I need to change the state to an abbreviated form instead of New York ---------> NY The lines to do this I suppose are: '.$addressDelivery->city.($addressDelivery->id_state ? ' '.$deliveryState->name : '').' '.$addressDelivery->postcode.'<br /> and '.$addressInvoice->city.($addressInvoice->id_state ? ' '.$invoiceState->name : '').' '.$addressInvoice->postcode.'<br /> but I don't know what to change to. Your help will be greatly appreciated. Link to comment Share on other sites More sharing options...
Dan1 Posted March 20, 2012 Share Posted March 20, 2012 Found the answer; change name to iso_code. '.$addressDelivery->city.($addressDelivery->id_state ? ' '.$deliveryState->name : '').' '.$addressDelivery->postcode.'<br /> to '.$addressDelivery->city.($addressDelivery->id_state ? ' '.$deliveryState->iso_code : '').' '.$addressDelivery->postcode.'<br /> Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 I'm not able to change the format in "my addresses". Apparently the file to edit is addresses.tpl and the changes are in the following lines: 25 26 <li class="address_city">{$address.city}, {$address.state} {$address.postcode} </li> <li class="address_country">{$address.country}</li> Still it doesn't change. I cleared the smarty cache. Can someone help me with this please. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Author Share Posted March 23, 2012 Did you turn force compile on and cache off under preferences/ performance, if not give that a try. Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 I'm using PS 1.3.7 and don't see a performance tab or setting under preferences. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Author Share Posted March 23, 2012 Locate the file smarty.config.inc.php and try changing the settings to below. Also clear the smart cache by deleting the files in the cache folder, if there is a index.php in the cache folder don't delet that file. $smarty->caching = false; $smarty->force_compile = true; $smarty->compile_check = false; Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 I checked and those settings are already as you suggested. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Author Share Posted March 23, 2012 Edited for content Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 The only thing the coma does is display a coma in this case between the city and state. It works in other places where I was able to change the format. In addresses however it makes no difference, with or without the coma the address format is not changed from original format. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Author Share Posted March 23, 2012 Let me ask this in what area are you trying to change the format. The coma was just a thought did not concider it was just that a coma. Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 My account - your addresses. Thanks. Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Author Share Posted March 23, 2012 I wanted to look at mine but the format is so different it will be no help. As a test delete the postcode part and see if the post code still shows. If you give a link to your site I will create an account so I can see the issue and look at the code with my developer tools. Link to comment Share on other sites More sharing options...
Dan1 Posted March 23, 2012 Share Posted March 23, 2012 I figured it out. I have OPC (one page checkout) installed. My addresses was pulling the information from the opc-addresses.tpl file. Once I made the changes in opc-addresses.tpl the addresses format was changed. Thanks for your help. If you're up for another challenge I would like to change the address format in checkout. I want to have the country selection set permanently to USA without a field or with a field that has no dropdown and can’t be edited. I only ship in the US and I have funny customers trying to put an order through to ship to other countries. I do not have any other countries available to choose from, but I want to make the country selection idiot proof. Link to comment Share on other sites More sharing options...
mir-aus Posted August 18, 2012 Share Posted August 18, 2012 HI, any one can help me on: How can I change the position of Zip / Postal code in order page I would like to know how can I change the position of zip/postal code in order page, in Australia we use this format for address; Address Address (Line 2) Suburb / City State Zip / Postal code Country any suggestion? Link to comment Share on other sites More sharing options...
breda_Mcg Posted August 26, 2014 Share Posted August 26, 2014 HI, any one can help me on: How can I change the position of Zip / Postal code in order page I would like to know how can I change the position of zip/postal code in order page, in Australia we use this format for address; Address Address (Line 2) Suburb / City State Zip / Postal code Country any suggestion? Hello, Did you find a solution to this? I'm using prestashop 1.56 and I have the same problem. Thanks, Breda Link to comment Share on other sites More sharing options...
expertone Posted June 8, 2015 Share Posted June 8, 2015 HI, Go and edit Localizations->Countries->your contry -> Address format 1 Link to comment Share on other sites More sharing options...
buddika Posted September 16, 2018 Share Posted September 16, 2018 On 8/18/2012 at 1:01 PM, mir-aus said: HI, any one can help me on: How can I change the position of Zip / Postal code in order page I would like to know how can I change the position of zip/postal code in order page, in Australia we use this format for address; Address Address (Line 2) Suburb / City State Zip / Postal code Country any suggestion? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now