deuterit Posted March 27, 2014 Share Posted March 27, 2014 Hello all! I don't know if anyone has this problem but how do you to print orders in 1.6? This new backend layout is fancy but I am unable to style order page for media=print (lack of html elements ID's to refer to). Is there option or module to generate PDF with order details that will be print friendly? Link to comment Share on other sites More sharing options...
tuk66 Posted March 28, 2014 Share Posted March 28, 2014 Code under the "Print order" button is just javascript:window.print(). Unfortunately there are no @media print{} CSS rules in admin.css at the moment. Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted March 28, 2014 Share Posted March 28, 2014 Thank you - we'all add CSS so printing orders produces something decent. Link to comment Share on other sites More sharing options...
deuterit Posted March 28, 2014 Author Share Posted March 28, 2014 @Lucas Cerdan - Thanks. That would be very helpful @tuk66 - Yeah, I've overrided AdminController::setMedia() and added admin/themes/default/css/overrides.css to header - thats easy part. When I started styling order page for print i couldn't do that right, because some of elements on page can not be reached by css rules unambiguously. E.g. when I've tried to hide some elements like customer private note form (there's no ID, and css classes are too general). PS. Many thanks Presta Team for introducing sass into themes! Link to comment Share on other sites More sharing options...
Recommended Posts