dixie Posted September 17, 2010 Share Posted September 17, 2010 The address on customers invoices is hard to understand for the US. It is as follows:Mary Doe895 Smith Road15870 SmithvilleUSA - PennsylvaniaHow do I get the invoice to print in the following format? (both invoice & shipping address)Mary Doe895 Smith RoadSmithville, Pennsylvania 15870USA Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2010 Share Posted September 18, 2010 This post might help. Link to comment Share on other sites More sharing options...
dixie Posted September 18, 2010 Author Share Posted September 18, 2010 I made the changes to my order-address.tpl and to order-address.js, as stated on the post. My invoice is still reading as follows:Delivery addressArmstrong Brenda630B S. Jefferson St.35611 AthensUSA (Alabama)Invoice addressArmstrong Brenda630B S. Jefferson St.35611 AthensUSA (Alabama)This should read:Armstrong Brenda630B S. Jefferson St.Athens, AL 35611I need help on this, please. Thank you!http://www.patterns4quilters.com Link to comment Share on other sites More sharing options...
jhnstcks Posted September 18, 2010 Share Posted September 18, 2010 Are you refering to the pdf invoice? Those 2 files only affect the address format on the checkout address page. Link to comment Share on other sites More sharing options...
dixie Posted September 21, 2010 Author Share Posted September 21, 2010 I am talking about the invoice that I print out in the BO for the customers order. And, also, the PDF invoice. It seems there would be an option for the formatting of the address for different countries using PrestaShop. I don't know coding, so I am having a hard time getting everything set up correctly. Being a small quilt shop, I don't have the resources to hire help -- have to do it all myself. Any help would be much appreciated. I would like to setup another website --- if I can get through this one! Link to comment Share on other sites More sharing options...
jhnstcks Posted September 21, 2010 Share Posted September 21, 2010 So you want the format to beLastname firstnameaddress1address2city, state, postcodeWont be able to change the state to initials, you would need to d this in the back office>shipping>states Link to comment Share on other sites More sharing options...
dixie Posted September 21, 2010 Author Share Posted September 21, 2010 Thank you for getting back with me. Actually, I would like the format to be:First name Last nameaddress1address2city, state, postcodeThank you! Link to comment Share on other sites More sharing options...
jhnstcks Posted September 21, 2010 Share Posted September 21, 2010 Ok upload these files into the same folders on your server as they are in now.If you are unsure how to do this I can do it for you, but you will need to pm me some ftp access details. Address Format 1.3.1 Dropdown menu.zip Link to comment Share on other sites More sharing options...
aliaspt Posted September 22, 2010 Share Posted September 22, 2010 dixie, did those files work for you? I suspect I'll have the same issue once I need to print an invoice... Link to comment Share on other sites More sharing options...
jhnstcks Posted September 22, 2010 Share Posted September 22, 2010 dixie, did those files work for you? I suspect I'll have the same issue once I need to print an invoice... If you only want to change the invoice layout and nothing else, just use the pdf.php file in the classes folder. Link to comment Share on other sites More sharing options...
aliaspt Posted September 22, 2010 Share Posted September 22, 2010 Alright, thanks , John! Link to comment Share on other sites More sharing options...
dixie Posted September 22, 2010 Author Share Posted September 22, 2010 I uploaded the files you attached. I hope I did it correctly. I replaced each file with the files that you sent. Following is how my invoice now reads:BrendaArmstrong630B S. Jefferson St., ,Athens , undefined, 35611USA.Did I do something wrong? I hate to be "picky", but there should be a space between the first and last name. I'm not sure about the "undefined" part.I was checking though the tabs in the BO and don't understand what one is. Under the PDF tab, there is a encoding list. What should the US code be? Is this code part of my problem with the address format? My code is set at cp1250. I have no idea what this code is for, or what code to select. Thank you for not giving up on me! Link to comment Share on other sites More sharing options...
jhnstcks Posted September 22, 2010 Share Posted September 22, 2010 hmm no idesa why the space disappeared from the name row.Undefined is where the state should be.Change the encoding to iso-8859-9.Are the other pages on the site correct. If they are i will just attach the pdf file. Link to comment Share on other sites More sharing options...
dixie Posted September 22, 2010 Author Share Posted September 22, 2010 I just placed a test order to see how the address format worked. My PDF is perfect!Delivery InvoicingBrenda Armstrong Brenda Armstrong630B S. Jefferson St. 630B S. Jefferson St.Athens, Alabama, 35611 Athens, Alabama, 35611USAThe problem is with the ordering process. The first page address is correct, but when you go to the next page, I get the following: Choose a delivery address:Use the same address for billing.Your delivery addressBrendaArmstrong630B S. Jefferson St.,,Athens , undefined, 35611USA.Your billing addressBrendaArmstrong630B S. Jefferson St., ,Athens , undefined, 35611USA.I most likely messed some code up when I previously tried to add the code from the first posting - changes to order-address.js and order-address.tpl Looks like I need more help. Thank you.http://www.patterns4quilters.com Link to comment Share on other sites More sharing options...
jhnstcks Posted September 22, 2010 Share Posted September 22, 2010 Ok open the order-address.jsat line 47 you will see this $('ul#address_' + addressType + ' li.address_name').html(addresses[idAddress][1] + '' + addresses[idAddress][2]); you need to add a space between the 2 inverted commas inbetween the + signs, that will add the space between the names.I looked at your order-address.tpl file (yes you can if you know how), can you copy across the same file from the prestashop theme into your theme, or download the prestashoppackage and use that. Looks like you fiddled with some stuff in that file which is why the state is being undefined. Link to comment Share on other sites More sharing options...
dixie Posted September 25, 2010 Author Share Posted September 25, 2010 I corrected the files. I went back to make sure the PDF was correct, but now the shipping fee is not included in the PDF invoice - the shipping of $2.95 is being added, but not show on invoice. Not sure what to do now. Thank you, again!!Total products : $7.99Total products (tax incl.) : $8.63Shipping : $0.00Order Total (tax incl.) : $11.58Order Total (tax excl.) : $7.99If possible, I would like the above to read as follows:Subtotal:Tax:Shipping Cost:Grand Total:I know how to change the wording under Languages in the BO, but I don't know anything about coding, other than copy & paste. Link to comment Share on other sites More sharing options...
aliaspt Posted October 6, 2010 Share Posted October 6, 2010 Never mind, I was able to pretty up the address in the invoice using the pdf.php file you uploaded here. Nervous to use other files because dixie said the shipping price disappeared in the invoice. 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