guest* Posted August 22, 2011 Share Posted August 22, 2011 Does somebody know in which lines I can delete the customer telephone-no on invoice address-block ? I tried to delete all with (xx)phone(xx) but without any change. Link to comment Share on other sites More sharing options...
Dickie Posted October 31, 2011 Share Posted October 31, 2011 Hi, I was also struggling with this problem where I would be printing invoices to act as address labels and delivery notes for orders and thought it wasntt very professional to have the customers phone number on the parcel. Anyway the way I deleted the phone numbers from the invoices is in: Classes - PDF.php Line 182. delete 'PS_SHOP_PHONE' Line 197 Change (!empty($conf['PS_SHOP_PHONE']) ? self::l('PHONE:').' '.$conf['PS_SHOP_PHONE'] : ''), 0, 1, 'C', 1); to (!empty($conf['PS_SHOP_DETAILS']) ? self::l('Details:').' '.$conf['PS_SHOP_DETAILS'] : ''), 0, 1, 'C', 1); Line 239 delete 'PS_SHOP_PHONE' Delete lines 405 to 413 Hope this can help. Jason Link to comment Share on other sites More sharing options...
Lee Posted January 30, 2013 Share Posted January 30, 2013 Thanks finlander, your update easily removes the phone numbers from the pdf invoice. Is there a way to remove the phone number from the delivery address but keep the invoice address phone number visible? Link to comment Share on other sites More sharing options...
zAy Posted February 14, 2013 Share Posted February 14, 2013 Hello, I also want to remove phone numbers from addresses.. in invoice and delivery slips.. but i have PS 1.5.3.1 and those instructions above are not same in my case.. i don't have PDF.php under classes folder.. it is under Classes/PDF/pdf.php and it has not all those lines.. so can't find where to remove..maybe it is somewhere else but i spent an hour now searching in PDF related files, classes, templates.. Thanks in advance. Link to comment Share on other sites More sharing options...
zAy Posted February 14, 2013 Share Posted February 14, 2013 [sOLVED] ok i dono if i should laugh or cry, the solution to remove phone number from addresses in invoices and delivery PDFs.. took me 2 hours to figure it out.. while it was 2 clicks away.. From within the classes files and after reading and following the logics .. i noticed the address is formatted according to countries.. and these formats are stored in the DB... i opened the DB and found them there.. then i realised that this issue could be manipulated from the BO under Localizations > Countries menu.. just edit the country you want and remove "phone" from the address format.. ... anyway.. Hope this stupid tutorial will help someone else.. Cheers ! 1 Link to comment Share on other sites More sharing options...
mkweb09 Posted June 18, 2013 Share Posted June 18, 2013 zAy... Will this method just remove the Phone Number from the invoice but still allow you to collect this information and view it in the BO? Thanks. 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