jarre1987 Posted January 26, 2009 Share Posted January 26, 2009 Witam,Czy wie ktoś może jak ustawić polskie znaki na generowanej fakturze ?? Kodowanie ISO 8859-2 w module PDF back office nie pomaga. Gdzie tktwi problem ??Pozdrawiam 2 Link to comment Share on other sites More sharing options...
Smok Posted January 26, 2009 Share Posted January 26, 2009 Podłączę się pod pytanie, dodam, że próbowałem kilku fontów i innego kodowania. Zna ktoś rozwiązanie ?? Link to comment Share on other sites More sharing options...
andrzej Posted January 26, 2009 Share Posted January 26, 2009 Znalazłem gdzieś to archiwum (w załączeniu). Rozpakuj do odpowiednich katalogów. Ustaw stronę kodową na 1250 (z inną nie sprawdzałem, skoro 1250 się dobrze sprawuje) w BackOffice. PrestaShop_PDF_UTF8.ZIP Link to comment Share on other sites More sharing options...
jarre1987 Posted January 26, 2009 Author Share Posted January 26, 2009 Dziala znakomicie, w kodowaniu pojawila sie opcja na samym dole "utf-8". Strona kodowa Cp1250 także dziala i sa polskie znaki, natomiast z innymi nie sprawdzalem.Dzieki za pomoc Link to comment Share on other sites More sharing options...
gieranet Posted January 14, 2010 Share Posted January 14, 2010 Dziala znakomicie, w kodowaniu pojawila sie opcja na samym dole "utf-8". Strona kodowa Cp1250 także dziala i sa polskie znaki, natomiast z innymi nie sprawdzalem.Dzieki za pomoc u mnie wyświetla tylko ó poprawnie, o co chodzi? Link to comment Share on other sites More sharing options...
daniel86 Posted May 21, 2010 Share Posted May 21, 2010 Witam. u mnie jest problem z tą paczką ponieważ działa ale... http://images49.fotosik.pl/295/68887613267d6613.jpgPokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić , i co tam trzeba zmienić ?wersja: Prestashop 1.3.0.3Pozdrawiam Daniel Link to comment Share on other sites More sharing options...
sawi Posted June 11, 2010 Share Posted June 11, 2010 Pokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić , i co tam trzeba zmienić ? Linijka 466 w PDF.php w katalogu classes - zamieniesz:array(self::l('Pre-Tax Total'), 'R'),na:array(self::l('Total with Tax'), 'R'),Jest to funkcja ProdTab. Link to comment Share on other sites More sharing options...
drzejb Posted June 25, 2010 Share Posted June 25, 2010 a u mnie nie działawyświetla się pusta stronaco jest nie tak ?PS mam najnowszą 1.3.1.1 Link to comment Share on other sites More sharing options...
sawi Posted June 25, 2010 Share Posted June 25, 2010 co jest nie tak ? Kula została w domu A poważnie - to biały ekran jest syndromem błędu - a ich wyświetlanie masz zapewne wyłączone.Żeby poznać przyczynę musiałbyś włączyć wyświetlanie błędów przez PHP: error_reporting = E_ALL Link to comment Share on other sites More sharing options...
drzejb Posted June 25, 2010 Share Posted June 25, 2010 nie jestem administratorem tego serwera więc jak mogę to włączyć ?a error_reporting ma wartość 6135 Link to comment Share on other sites More sharing options...
sawi Posted June 25, 2010 Share Posted June 25, 2010 więc jak mogę to włączyć ? error_reporting(E_ALL);ini_set("display_errors", 1);Jeśli to Ci nie pomoże to już zostaje chyba polecenie oddania sprawy w ręce kogoś innego Link to comment Share on other sites More sharing options...
drzejb Posted June 25, 2010 Share Posted June 25, 2010 a gdzie to wpisaćw który plik ? Link to comment Share on other sites More sharing options...
sawi Posted June 25, 2010 Share Posted June 25, 2010 a gdzie to wpisaćw który plik ? No niestety, w takim razie już się kłania druga część mojej wypowiedzi .... Link to comment Share on other sites More sharing options...
drzejb Posted June 25, 2010 Share Posted June 25, 2010 error_reporting(E_ALL);ini_set("display_errors", 1); dodałem to do pliku w katalogu administracjii mam Notice: Use of undefined constant �display_errors� - assumed '�display_errors�' in /home/procalcu/public_html/sklep/pcad/pdf.php on line 14 a jak poprawiłem na ' 'to dalej mam białą stronę Link to comment Share on other sites More sharing options...
adrianos73 Posted July 2, 2010 Share Posted July 2, 2010 zmień error_reporting(E_ALL) na :error_reporting(30719) in PHP 5.3.x, error_reporting(6143) in PHP 5.2.x, error_reporting(2047) previously Wtedy pokaże ci błędy ( ale nie pokaże PDF ) jak będziesz miał błąd to wtedy walcz. Link to comment Share on other sites More sharing options...
drzejb Posted July 2, 2010 Share Posted July 2, 2010 dzieki o to chodziło teraz mam błąd (po naprawie innych) FPDF error: Could not include font definition file Link to comment Share on other sites More sharing options...
drzejb Posted July 2, 2010 Share Posted July 2, 2010 nawet jak wybiorę inny font/stronę kodową to i tak nie mam polskich znaków Link to comment Share on other sites More sharing options...
Chiński Mandaryn Posted July 16, 2010 Share Posted July 16, 2010 nawet jak wybiorę inny font/stronę kodową to i tak nie mam polskich znaków Spróbuj może zgodnie z instrukcją na:http://forum.prestashop.pl/index.php?topic=286.msg9325#msg9325 Link to comment Share on other sites More sharing options...
darius Posted December 7, 2010 Share Posted December 7, 2010 Ja też mam ten sam błąd FPDF error: Could not include font definition file. Co z tym zrobić, bo już nie mam pojęcia. Sprawdzałem w Prestashop 1.3.2 i 1.3.2 - to samo. Link to comment Share on other sites More sharing options...
brum Posted December 31, 2010 Share Posted December 31, 2010 Cześć, wstawiam działające polskie znaki do wersji 1.3.4 - 1.3.5W załączniku , sąPDF.php -> kopiujemy do katalogu /clasess/font -> zawartość folderu kopiujemy do katalogu /tools/fpdf/fontW panel->ustawienia->pdf kodowanie na cp1250 , font na arialmt Co ważne, programiści presty nie przewidzieli że nazwa waluty może mieć znaki z ogonkami, wszędzie gdzie występuje waluta dodałem konwersje na inne kodowanie. Mam nadzieję że komuś się przyda.Pozdrawiam Brum.prestaPDF.zip Link to comment Share on other sites More sharing options...
Qsmier Posted February 20, 2011 Share Posted February 20, 2011 Witam. u mnie jest problem z tą paczką ponieważ działa ale... http://images49.fotosik.pl/295/68887613267d6613.jpgPokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić mam ten sam problem jak mogę dodać/poprawić to?zrobiłem tak jak bylo podane: Pokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić , i co tam trzeba zmienić ? Linijka 466 w PDF.php w katalogu classes - zamieniesz:array(self::l('Pre-Tax Total'), 'R'),na:array(self::l('Total with Tax'), 'R'),Jest to funkcja ProdTab. ale po tym zabiegu są dwie ceny te same (suma brutto) a jak dodać aby w jednej była suma netto a potem suma brutto 1 Link to comment Share on other sites More sharing options...
adhd_kid Posted April 15, 2011 Share Posted April 15, 2011 Witam. u mnie jest problem z tą paczką ponieważ działa ale... http://images49.fotosik.pl/295/68887613267d6613.jpgPokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić mam ten sam problem jak mogę dodać/poprawić to?zrobiłem tak jak bylo podane: Pokazuje cenę z Vat w polu z opisem netto gdzie szukać żeby to poprawić , i co tam trzeba zmienić ? Linijka 466 w PDF.php w katalogu classes - zamieniesz:array(self::l('Pre-Tax Total'), 'R'),na:array(self::l('Total with Tax'), 'R'),Jest to funkcja ProdTab. ale po tym zabiegu są dwie ceny te same (suma brutto) a jak dodać aby w jednej była suma netto a potem suma brutto Hej, zrób tak:Trzeba zmienić:(w okolicach 515 linijki PDF.php)$total_without_tax = $product['total_price']; na: $total_without_tax = $unit_without_tax*(intval($product['product_quantity']) - intval($product['customizationQuantityTotal'])); Potem tylko pozostaje dobrze pozmieniać nazwy nagłówków: pole, o którym piszesz będzie od tej pory zawierało cenę netto (pomnożoną przez ilość zamawianego produktu) Link to comment Share on other sites More sharing options...
Rneo Posted June 16, 2011 Share Posted June 16, 2011 nie dziala dla 1.3.7 Link to comment Share on other sites More sharing options...
martprint Posted October 9, 2011 Share Posted October 9, 2011 Witam. Wie ktoś z szanownych userów jak zmienić w PDF proforma opis produktu. Chodzi mi dokładnie o coś takiego jak zawijanie tekstu lub coś podobne. Jak dokonujemy zakupu z atrybutami to robi się problem bo jest to na fakturce w jednym ciągu a powinno być jedno pod drógim. 1 Link to comment Share on other sites More sharing options...
sladek Posted November 24, 2011 Share Posted November 24, 2011 Witam. Czy jest darmowy i działający fix na polskie fonty w 1.4 ? 1 Link to comment Share on other sites More sharing options...
andrzej_k2 Posted December 4, 2011 Share Posted December 4, 2011 Witam. Czy jest darmowy i działający fix na polskie fonty w 1.4 ? W preście 1.4 w zasadzie nie ma już takich problemów z polskimi fontami w pdf jakie były w niższych wersjach. Jedyne co, to należy ustawić kodowanie cp1250 i arial_ce i powinno działać. Ja miałem jeszcze problem z literką "ł" w symbolu waluty. Z tym poradziłem sobie w następujący sposób: Modyfikujemy plik PDF.php w folderze classes. Znajdź: static protected function convertSign($s) { $arr['before'] = array('€', 'L', 'Y'); $arr['after'] = array(chr(128), chr(163), chr(165)); return str_replace($arr['before'], $arr['after'], $s); } i zamień na: static protected function convertSign($s) { $arr['before'] = array('€', 'L', 'Y', 'ł'); $arr['after'] = array(chr(128), chr(163), chr(165), chr(179)); return str_replace($arr['before'], $arr['after'], $s); } 3 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