Juan-Shunfa Posted January 17, 2019 Share Posted January 17, 2019 (edited) Hello! I have one error when i try to print a order from the backend, the process seems to work correctly but when i open the file , it show kinda bugged. (look file attached) The invoice and the delivery document work fine, but not the orders. What is the reason of this error? How can i repair it? Prestashop versión 1.7.4.4 Thank you. test.pdf Edited January 31, 2019 by Juan-Shunfa (see edit history) Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 21, 2019 Author Share Posted January 21, 2019 Please i need solve it , cant start the shop with that error in the orders :S Link to comment Share on other sites More sharing options...
tuk66 Posted January 21, 2019 Share Posted January 21, 2019 There is no easy fix. The invoice and the delivery slip are PDF documents. On the other side, the order is simply a print function of the browser. The order detail page is printed this way. Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 22, 2019 Author Share Posted January 22, 2019 But i guess it is a module/system/file who generate it, and seems to be bugged, so maybe reinstalling it or something like this will fix the problem? Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 24, 2019 Author Share Posted January 24, 2019 Please i need a solution for this problem Link to comment Share on other sites More sharing options...
tuk66 Posted January 24, 2019 Share Posted January 24, 2019 No, it is really your browser. Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 24, 2019 Author Share Posted January 24, 2019 Please i swear it is not a problem of the browser, i try with Mozilla, chrome, IE... and all do the same PDF bugged, so the problem should be solved in prestashop. The browser just print the format PDF, but should be exist a code or file who help to generate the PDF and it is corrupted or something. Check it , in IE the bug its more worse than other browsers: Thank you Firefox.pdf Chrome.pdf IE.pdf Link to comment Share on other sites More sharing options...
tuk66 Posted January 24, 2019 Share Posted January 24, 2019 OK. I meant your browser creates that output according to HTML and CSS of the page. As I know this issue with print styles is for years so don't expect a quick solution. Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 24, 2019 Author Share Posted January 24, 2019 (edited) 42 minutes ago, tuk66 said: OK. I meant your browser creates that output according to HTML and CSS of the page. As I know this issue with print styles is for years so don't expect a quick solution. Well, the browser print it... yes, but it doesnt the problem like u tell to me in last posts, i tried search for similars problem and i cant find anything like this, so maybe my solution its more quickly, but i dont know how to do it, or which file help to generate the pdf orders. For example i found the view template for a order in "ADMINFOLDERxxxx"/themes/default/template/controllers/orders/helpers/view/view.tpl And too the pdf generator in /classes/pdf/PDFGenerator.php But i dont know where its the problem? maybe replace again these files in order to fix it? :S Edited January 24, 2019 by Juan-Shunfa (see edit history) Link to comment Share on other sites More sharing options...
matyz Posted January 29, 2019 Share Posted January 29, 2019 Hi i've got the same problem with printing orders. Did you found any solution ? Link to comment Share on other sites More sharing options...
tuk66 Posted January 29, 2019 Share Posted January 29, 2019 This issue isn't fixed at the moment. M4 PDF Extensions customers can print order details using the Orders - preview template - https://www.presta-addons.com/pdf/Orders - preview.pdf - and in the latest version (2.5.0) also easily on the page. Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 30, 2019 Author Share Posted January 30, 2019 (edited) 22 hours ago, matyz said: Hi i've got the same problem with printing orders. Did you found any solution ? Dont buy the module of tuk66 ill find the solution for you, just wait a few days. In this forum the module sellers usually, will try to convince you to buy Edited January 30, 2019 by Juan-Shunfa (see edit history) Link to comment Share on other sites More sharing options...
Juan-Shunfa Posted January 31, 2019 Author Share Posted January 31, 2019 On 1/29/2019 at 1:18 PM, matyz said: Hi i've got the same problem with printing orders. Did you found any solution ? Solution founded, replace these 2 files with the green line of code (+): https://github.com/PrestaShop/PrestaShop/pull/10135/files On 1/24/2019 at 3:10 PM, tuk66 said: OK. I meant your browser creates that output according to HTML and CSS of the page. As I know this issue with print styles is for years so don't expect a quick solution. For me , replace 4 lines of code its a quick solution, buy your module isnt that. Link to comment Share on other sites More sharing options...
matyz Posted January 31, 2019 Share Posted January 31, 2019 It worked!!! Thank you very much! I've got one more question - i need to enlarge font in table Products and remove "Refunded" column - in wich files i need to look for that - theme.css - for font size and where is that table structure ? Link to comment Share on other sites More sharing options...
Sofitec Posted February 4, 2019 Share Posted February 4, 2019 when they say it's your browser's theme, they mean that the print order button is just a shortcut to the famous CTRL + P, it's nothing like prestashop. it's not a function it's just a shortcut go to file> print or press CTRL + P do not touch code or anything, that will not change! On 1/24/2019 at 10:59 AM, Juan-Shunfa said: Please i swear it is not a problem of the browser, i try with Mozilla, chrome, IE... and all do the same PDF bugged, so the problem should be solved in prestashop. The browser just print the format PDF, but should be exist a code or file who help to generate the PDF and it is corrupted or something. Check it , in IE the bug its more worse than other browsers: Thank you Firefox.pdf Chrome.pdf IE.pdf ode or anything, that will not change! Link to comment Share on other sites More sharing options...
salvotnt Posted September 20, 2019 Share Posted September 20, 2019 How about 1.7.4.4 files modify? The repo is for 1.7.6 version, can't find correct files for modify them... Link to comment Share on other sites More sharing options...
skeccy Posted October 26, 2020 Share Posted October 26, 2020 Scuse me any solution for prestashop 1.7.6.8? I have the same problem. 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