X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Making static pages printable? (https://forum.x-cart.com/showthread.php?t=49453)

adriant 08-31-2009 10:04 PM

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

Victor D 09-03-2009 03:54 AM

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>


SoapLady 09-05-2009 05:31 PM

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?


All times are GMT -8. The time now is 08:38 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.