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

Making static pages printable?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-31-2009, 10:04 PM
 
adriant adriant is offline
 

Senior Member
  
Join Date: May 2006
Posts: 190
 

Default Making static pages printable?

Is there a way to enable static pages to be made 'printable', as in categories and products?

I've tried the couple of changes recommended for older versions, as the code appears to be the same, with no luck.

Printable versions of static pages would be very, very usefull.

any help would be much appreciated.
Adrian
__________________
Xcart gold Plus V4.7.12
REBoot(REdux)

https://www.serpro.co.uk
Reply With Quote
  #2  
Old 09-03-2009, 03:54 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Making static pages printable?

Thank you for the good question.
It takes about a minute to find this nice solution
Code:
{literal} <script type="text/javascript"> function printable_switch(){ var b = document.getElementsByTagName('body'); if (b){b[0].className = b[0].className == "printable" ? "" : "printable";} }{/literal} </script> <a href="#" onclick="javascript: printable_switch();return false;">Printable/unprintable</a>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 09-05-2009, 05:31 PM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default Re: Making static pages printable?

Where does that code get placed?

Also, do you know where the variable $printable_link_visible (for v4.2.2 Gold) is set? Is it possible to set it for static pages?
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:12 AM.

   

 
X-Cart forums © 2001-2020