parts411test Posted April 21, 2014 Share Posted April 21, 2014 Hello all. I am looking for help on how to customize the Order Summary page in the admins back-office for saving paper costs when printing. As of right now, each order printed takes up 3 sheets of paper when it can easily be printed on 1. Is there a way to only print out certain information? Customer name, address, payment information, and product purchased, mainly? I have already tried printing delivery / invoice slip but this information is not enough for my record keeping. I have gone in and experimented with certain .tpl files and was able to remove an unneeded block from the actual backoffice view of the order summary. I dug deeper and found that all it is doing is calling a JS script for "window.print" and basically just taking a print screen of the page im viewing when i click "Print Order" If this can be customized somehow, or possible a FREE module to make this work...that would be awesome. Any help would be appreciated. Thank you! Link to comment Share on other sites More sharing options...
selectshop.at Posted April 23, 2014 Share Posted April 23, 2014 (edited) There is a tool available named printfriendly, where you can clean what you want before printing. Edited April 24, 2014 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
madmartian Posted January 18, 2015 Share Posted January 18, 2015 From the doc: http://doc.prestashop.com/display/PS16/Orders "You can customize the invoice layout easily: the PDF template files are located in the /pdf folder. These .tpl files are actually HTML files with Smarty tags for dynamic data. You can change the invoice's layout by editing the file named invoice.tpl." Link to comment Share on other sites More sharing options...
madmartian Posted January 18, 2015 Share Posted January 18, 2015 A little more info. That blurb in the doc only affects invoices, not the "Print Order" button. The "Print Order" button is based on this file: /adminxxxx/themes/default/template/controllers/orders/helpers/view/view.tpl Unfortunately, editing that file affects both the screen version of the order and the printed version. I have not found a way to edit the print version only. Link to comment Share on other sites More sharing options...
ricardoferreira.net Posted February 10, 2015 Share Posted February 10, 2015 Hi madmartian, have you found any solution ? Link to comment Share on other sites More sharing options...
Pedro Lima Posted February 10, 2015 Share Posted February 10, 2015 (edited) I would also like to have the printed page changed but not the viewing page. I think this isn't actually that complex if we have a "hidden" view.tpl file, that would be called something like print.tpl and then we would just change that template, so when we click print it would grab the content of that page and not the actual view.tpl we were viewing. If someone can achieve this, please let us know. Edited February 10, 2015 by plima (see edit history) Link to comment Share on other sites More sharing options...
madmartian Posted February 13, 2015 Share Posted February 13, 2015 That sounds like a great idea. I was not able to find a solution. Link to comment Share on other sites More sharing options...
newbie87 Posted February 17, 2015 Share Posted February 17, 2015 Have you checked into Store Manager for Prestashop (MagneticOne)? It allows you to print out either a full view of an order page or just a pack slip. Allows one to download a sample/test. Program is not free, not cheap. But a real time saver. Link to comment Share on other sites More sharing options...
madmartian Posted February 18, 2015 Share Posted February 18, 2015 $200 to $350 is a bit much for something as basic as printing a pick list. Link to comment Share on other sites More sharing options...
Cesar Machado Posted March 21, 2015 Share Posted March 21, 2015 Hello everyone, I could customize my print page easily by editing the file: Note that there is class this way: /adminxxxx/themes/default/template/controllers/orders/helpers/view/view.tpl class="hidden-print" hiding in print, search in document for hidden-print class="visible-print" shown in print, search in document for visible-print To hide for example the tab content "documents" Print I modified the div in question to: <div class="tab-pane" id="documents"> <h4 class="hidden-print">{l s='Documents'} <span class="badge">({$order->getDocuments()|@count})</span></h4> <div class="hidden-print">{* Include document template *} {include file='controllers/orders/_documents.tpl'}</div> </div> Hope that helps you. Regards to all. 3 Link to comment Share on other sites More sharing options...
intandem Posted October 28, 2015 Share Posted October 28, 2015 Feeling a bit dumb, but in my version of PS 1.6, I can't find this file path /adminxxxx/themes/default/template/controllers/orders/helpers/view/view.tpl No "template" folder within my theme or the default theme?? Link to comment Share on other sites More sharing options...
shaq34 Posted November 13, 2015 Share Posted November 13, 2015 Anyone knows how to customise in print mode only in 1.6? Link to comment Share on other sites More sharing options...
chinopoulos Posted December 1, 2015 Share Posted December 1, 2015 Same problem here! Link to comment Share on other sites More sharing options...
tomas.stancl Posted January 5, 2016 Share Posted January 5, 2016 Prestashop has override.css in /admin/themes/default/css/override.css. There you can set up print style for orders using: @media print { p {text-indent: 10%} } Tested. Working fine. Link to comment Share on other sites More sharing options...
hectormr85 Posted January 11, 2016 Share Posted January 11, 2016 Same problem! I don't find override.css and view.tpl files Any idea or any detailed solution, please?Thanks!! Link to comment Share on other sites More sharing options...
dmstore Posted January 28, 2016 Share Posted January 28, 2016 Hello everyone, I could customize my print page easily by editing the file: Note that there is class this way: /adminxxxx/themes/default/template/controllers/orders/helpers/view/view.tpl class="hidden-print" hiding in print, search in document for hidden-print class="visible-print" shown in print, search in document for visible-print To hide for example the tab content "documents" Print I modified the div in question to: <div class="tab-pane" id="documents"> <h4 class="hidden-print">{l s='Documents'} <span class="badge">({$order->getDocuments()|@count})</span></h4> <div class="hidden-print">{* Include document template *} {include file='controllers/orders/_documents.tpl'}</div> </div> Hope that helps you. Regards to all. It works fine in PS 1.6!!! It need to adjust with css action "display:none" with Paypal tab and other tab. Thanks! Link to comment Share on other sites More sharing options...
hectormr85 Posted January 28, 2016 Share Posted January 28, 2016 It works fine in PS 1.6!!! It need to adjust with css action "display:none" with Paypal tab and other tab. Thanks! Perfect!!! Thanks!!!! Link to comment Share on other sites More sharing options...
madmartian Posted January 29, 2016 Share Posted January 29, 2016 class="hidden-print" hiding in print, search in document for hidden-print Thanks, you ROCK! I was able to unprint a huge chunk of the file without affecting the display. I'm not quite out of the woods, though. It still prints a half-page worth of paypal data, and that data doesn't appear to be coming from /adminxxxx/themes/default/template/controllers/orders/helpers/view/view.tpl. Also, it prints the line of "gamification" data at the very top (the line that starts with "Advice" and ends with "Read"). I have tried to use the "hidden-print" method in the associated view.tpl files for payment and gamification, but it's not working. Any ideas? Link to comment Share on other sites More sharing options...
marcoogle Posted December 1, 2016 Share Posted December 1, 2016 Hello, i modified tpl file using class hidden-print and now if i inspect the elements in the page, the class is applied on the elements i choose, but when I print, those elements still remains in the sheet printed. Is it something regarding the printer or the browser? thanks Link to comment Share on other sites More sharing options...
obewanz Posted February 13, 2018 Share Posted February 13, 2018 You can use the class "gmnoprint" if you must change the tpl file... Another thought (without any code changes) that may work depending on your needs - - Click the VIEW INVOICE tab and use that instead of the PRINT ORDER button 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