Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Ed (Guest)
Ed (Guest)
All,
 
I have become very dismayed at the callous response I received when I asked how to change the formatting of addresses displayed on PDF and HTML invoices and packing slips. The addresses for HTML are easy to change, just edit the HTML in admin_invoice_html.html, but for the PDF, it's not as easy or simple. You need to reverse engineer some very obscure code used in the set_user_info() function inside admin_invoice_pdf.php and admin_packing_pdf.php files. My position is that this is one modification that is unreasonably difficult and should not be required since there are international standards for addresses and VIart knows we use these for real life purposes. At the very least, make them template driven so folks with HTML skills can create them. I don't have time to learn the PDF library commands needed to make this modification and was insulted that you wanted 120 bucks to make the mod when this is something ALL your customers probably want and need.
 
By default PDF addresses are listed like this, uncommon, and not useful or professional in any sense:
 
Firstname
LastName
Address
City
State
Zip
Country
Phone
Cell
Email...
 
When it SHOULD BE:
 
Firstname Lastname
Address1
Address2 if any
City, State ZIP
Country
Phone
Cell
Email
 
Viart support wanted 120.00 to change the format, but when I looked at the code, I realze why: They simply iterate through the parameters one by one and list them using a loop. No consideration that it should be in HUMAN READABLE FORM for compactness and familiar recognition, just a dump loop with logic to add 'phone, cell and email' tags in front of those fields.
 
I could spend hours reverse engineering the code and trying to fix it, but I think Viart should step up and make this the default IAW internation address conventions and stop taking shortcuts on important and visible aspects of the output products we use for our customers.
 
VERY VERY unprofessional, Viart, not only the coding here, but your response to it as well! I hope you will do better.
 
Ed
Last modified: 3 Oct 2006 10:54 AM
 
kellis (Guest)
kellis (Guest)
Hi Ed, good luck figuring that out. I was also trying to figure out how to change the format.
Please post here if you find the solution. Thanks.
 
daviswe
daviswe
Viart support folks made two new files, fixing the addresses into a standard international format and also stripping out HTML codes that might have been used in formatting your display of shipping options on your invoices and packing labels.
 
http://edsets.com/format.zip
 
Ed
 
 
Hi Ed, good luck figuring that out. I was also trying to figure out how to change the format.
Please post here if you find the solution. Thanks.
 
kellis (Guest)
kellis (Guest)
Viart support folks made two new files, fixing the addresses into a standard international format and also stripping out HTML codes that might have been used in formatting your display of shipping options on your invoices and packing labels.
 
http://edsets.com/format.zip
 
Ed
 
Thanks!
 
neosim
neosim
http://edsets.com/format.zip
 
Link is not working for me. Could You send me it by email ?
szymon AT neoweb DOT pl
 
There is possibility to set own corporate fonts in invoice ?
 
Regards
 
neosim
neosim
Link is working now. Btw thanks for files Ed :)
 
Corporate fonts issue...
I thought about setting face of fonts inside PHP invoices with additional file mycorporatefont.ttf
I'm not sure if it located in includes/pdf.php or pdflib.php
I know there is /font directory But i don't know how to add own font and set this in php invoices and packing labels.
 
http://edsets.com/format.zip
There is possibility to set own corporate fonts in invoice ?
 
Regards
Neosim