type:
snippet
category:
receipt
name:
Print CSS on the receipt
reference:
http://forum.foxycart.com/comments.php?DiscussionID=175&page=1
tags:
snippets,
receipt,
advance
date:
2011-05-27

Print CSS on the receipt

Go into the receipts admin (under templates) and copied the location of the standard foxycart css file.

<link rel="stylesheet" href="https://your_foxycart_store_domain/themes/standard/styles.css" type="text/css" media="screen" charset="utf-8" />

Paste it in a browser window and copied the css into my own file.

Wrapped everything pasted in the following and then name print.css and uploaded to the server.

@media print{
...
}

Go into receipt template admin and paste the following right beneath where foxycart's is called.

<link rel="stylesheet" href="http://your_domain_here.com/print.css" type="text/css" media="print" charset="utf-8" />

In above code media is changed from screen to print.

Related Forum Discussions

snippets/receipt/print_css_on_the_receipt.txt · Last modified: 2011/11/17 10:36 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki