Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

auto print page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-23-2010, 03:36 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default auto print page

I've justfound this bit of code that auto opens the print dialog for you. I'm using it on my packing listpage, saves a click etc per order!

Code:
{literal} <script type="text/javascript"> //<![CDATA[ window.print(); //]]> </script> {/literal}

thought others might find it useful. I've just put it at the bottom of the template.
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #2  
Old 03-26-2010, 12:23 PM
 
bionicfish bionicfish is offline
 

Member
  
Join Date: Jun 2006
Posts: 10
 

Default Re: auto print page

Been meaning to add this for ages... thanks for finding the code for me!
__________________
Xcart 4.3.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:00 AM.

   

 
X-Cart forums © 2001-2020