X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   X-Cart 4.0.0 How to make any page printable? (https://forum.x-cart.com/showthread.php?t=8591)

mizzlewillz 07-22-2004 06:52 PM

X-Cart 4.0.0 How to make any page printable?
 
Hello,

Is there a way to make any page printable. Say I want to make the Privacy statement printable, how would I go about doing that, I have no idea where to start.

Any Suggestions or Comments would be Great!!!

Thanks in advance,

Mike W.

Wizard 07-22-2004 09:08 PM

General Settings >> Appearance Options >> Enabled printable version of categories and products pages in customer area

adpboss 12-07-2004 05:50 PM

BUMP

Anyone figure out how to make printable static pages?

shan 12-08-2004 05:59 AM

Code:

{if (($main eq 'catalog' && $cat ne '') || $main eq 'pages' || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
{/if}


this bit is found in head.tpl

just added this bit

Code:

|| $main eq 'pages'

adpboss 12-08-2004 06:01 AM

Shan,

My personal saviour.

MOVE TO CUSTOM MODS! :)

adpboss 12-08-2004 06:57 AM

You will need to make the following change to the bottom of pages.php

Code:

# Assign the current location line
$smarty->assign("location", $location);
$smarty->assign("printable", $printable);


You are adding this line

Code:

$smarty->assign("printable", $printable);


All times are GMT -8. The time now is 09:12 AM.

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