Vaidas Posted May 23, 2010 Share Posted May 23, 2010 Hello, I changed pdf language and now there is now currency mark in invoice. maybe someone can help me. Changes made in accordance with the instructions http://www.prestashop.com/forums/viewthread/36255/lietuvikai/utf8_koduot_pdf_sskaitoje_v_dot__1_dot_2_dot_5I tried to find the answer but did not findThank you in advance 1 Link to comment Share on other sites More sharing options...
razaro Posted May 23, 2010 Share Posted May 23, 2010 Don't do step 4.3 leave this code static private function convertSign($s) { return str_replace('¥', chr(165), str_replace('£', chr(163), str_replace('€', chr(128), $s))); } Link to comment Share on other sites More sharing options...
Vaidas Posted May 23, 2010 Author Share Posted May 23, 2010 I'll changed, but It's not working Link to comment Share on other sites More sharing options...
razaro Posted May 23, 2010 Share Posted May 23, 2010 That worked for me, i tried this code also and it also works for me. static private function convertSign($s) { return html_entity_decode(htmlentities($s, ENT_NOQUOTES, $from), ENT_NOQUOTES, 'UTF-8'); } Does your currency have special sign like € ? 1 Link to comment Share on other sites More sharing options...
Vaidas Posted May 24, 2010 Author Share Posted May 24, 2010 It's work with dollar and pound, but not with euro. so instead of dollar or pound, in administration panel i write my currency and now it's work i don't now, why it's not working with euro.thank you I have another question. in the bottom of invoice, there is incorect page counting. Before i change pdf language, it was ok.thank you Link to comment Share on other sites More sharing options...
razaro Posted May 28, 2010 Share Posted May 28, 2010 In PDF.php replace $this->Cell(190, 5, ' '."\n".'P. '.$this->GroupPageNo().' / '.$this->PageGroupAlias(), 'T', 1, 'R'); with $this->Cell(190, 5, 'P. '.$this->GroupPageNo().' / '.substr($this->PageGroupAlias(),3,-1), 'T', 1, 'R'); to display correct page number in footer. 1 Link to comment Share on other sites More sharing options...
Vaidas Posted June 3, 2010 Author Share Posted June 3, 2010 Thank you, it works Link to comment Share on other sites More sharing options...
rocky Posted June 3, 2010 Share Posted June 3, 2010 If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
tpsvca Posted July 27, 2010 Share Posted July 27, 2010 Works - thankyou Link to comment Share on other sites More sharing options...
Vaidas Posted November 26, 2010 Author Share Posted November 26, 2010 Hello, i'd change language in PDF invoice in 1.3.2. Everything works, but there is big empty space between product title words. Solved Link to comment Share on other sites More sharing options...
ReBoot Posted December 3, 2010 Share Posted December 3, 2010 Vaidas, how you solved it, I have the same problem. Thank you in advance.Regards,Darius Link to comment Share on other sites More sharing options...
Vaidas Posted November 8, 2011 Author Share Posted November 8, 2011 Hello, maybe someone can help with this? http://www.prestashop.com/forums/topic/139841-words-climbing-on-words-in-pdf-ivoice-in-1425/ Link to comment Share on other sites More sharing options...
zala1410 Posted March 3, 2012 Share Posted March 3, 2012 Hi I have use euro sign in site but in pdf not coming proper. ] please help me. 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