Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default print css for order invoice?

    Hello,

    The order details or Invoice is displayed like any other page, so when the customer wants to print it, it includes everything on the page. Is there a print CSS readily available for the same? so that when the cusomter prints it: "/index.php?main_page=account_history_info&order_id=17"

    it prints only the logo and the order details, thus removing everything, right - left columns, everything from header except the logo, and the footer completely?

    Or is there a better approach for the same?

    in my templates /common/tpl_main_page.php I did the following but then the page looks weird and the logo does not appear since it is in the header:
    PHP Code:
      if (in_array($current_page_base,explode(",",'account_history_info,account_history_info')) ) {
        
    $flag_disable_right true;
        
    $flag_disable_left true;
        
    $flag_disable_header true;
         
    $flag_disable_footer true;
      } 
    Please suggest a better approach

    Regards

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: print css for order invoice?

    There is a print stylesheet in /includes/templates/template_default/css/print_stylesheet.css. Copy it to your custom template's /css/ folder, and you will immediately get most extraneous stuff hidden when printing. You can tweak as desired.

  3. #3
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default Re: print css for order invoice?

    Thanks for the reply gjh42. Its very basic and as you suggested we need to tweak it.

    Regards.

 

 

Similar Threads

  1. v150 Print Popup Invoice for v1.5?
    By futurist71 in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 1 Mar 2019, 10:35 PM
  2. Client Invoice - problems customizing the popup-print-invoice addon
    By LloydR in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Jan 2011, 10:41 AM
  3. Invoice and Order Print Text Size Issue
    By internetoutfitter in forum General Questions
    Replies: 3
    Last Post: 19 Jun 2010, 09:42 PM
  4. Print button for Invoice and Packing Slip?
    By Crunch in forum Managing Customers and Orders
    Replies: 4
    Last Post: 9 Mar 2010, 08:49 AM
  5. Looking to add print invoice and shipp invoice from admin---> orders
    By r4fdud in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 15 Mar 2009, 11:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg