Zen Cart Logo
Forums / General Questions / print css for order invoice?

print css for order invoice?

Locked

Views: 2,097

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Feb 2010, 7:52 AM
#1
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

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:

  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

20 Feb 2010, 8:29 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

20 Feb 2010, 9:12 AM
#3
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Re: print css for order invoice?

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

Regards.