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)
-   -   Printable Version Open in new window (https://forum.x-cart.com/showthread.php?t=13390)

EZ 04-12-2005 10:51 PM

Printable Version Open in new window
 
Can anyone tell me how I can make the Printable Version Open in a new window?

Thanks

balinor 04-13-2005 02:58 AM

Need to add

target=_blank

to the link

EZ 04-13-2005 08:07 AM

Printable Version
 
That would be fine if it was just HTML but it's not! Does anyone else know what code, file and where it needs to be changed.

Thanks

balinor 04-13-2005 08:09 AM

Open up printable.tpl and add the code I mentioned. It IS HTML, it just has some smarty mixed in.

EZ 04-13-2005 08:14 AM

Printable Version
 
If you would be so kind to show me where exactly it would go, if it were just plain HTML I would have no problem.

{* $Id: printable.tpl,v 1.3 2004/06/24 09:53:29 max Exp $ *}
<TABLE cellspacing="0" cellpadding="0" border="0" valign="middle">
<TR>
<TD align="right" valign="middle">{$lng.lbl_printable_version}</TD>
<TD width="16" valign="middle">[img]{$ImagesDir}/printer.gif[/img]</TD>
</TR>
</TABLE>


Thanks

balinor 04-13-2005 08:18 AM

Make a bacup first and then try replacing this:

Code:

<A href="{$php_url.url}?printable=Y{if $php_url.query_string ne ''}&{$php_url.query_string}{/if}" style="TEXT-DECORATION: underline;">

with this:

Code:

<A href="{$php_url.url}?printable=Y{if $php_url.query_string ne ''}&{$php_url.query_string}{/if}" style="TEXT-DECORATION: underline;" target="_blank">


And then replace this:

Code:

<A href="{$php_url.url}?printable=Y{if $php_url.query_string ne ''}&{$php_url.query_string}{/if}">

with this:

Code:

<A href="{$php_url.url}?printable=Y{if $php_url.query_string ne ''}&{$php_url.query_string}{/if}" target="_blank">

EZ 04-13-2005 08:24 AM

Printable Version
 
Ok that worked! Thanks alot!


All times are GMT -8. The time now is 10:54 PM.

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