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

Printable Version Open in new window

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-12-2005, 10:51 PM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Printable Version Open in new window

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

Thanks
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #2  
Old 04-13-2005, 02:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Need to add

target=_blank

to the link
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-13-2005, 08:07 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #4  
Old 04-13-2005, 08:09 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Open up printable.tpl and add the code I mentioned. It IS HTML, it just has some smarty mixed in.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-13-2005, 08:14 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
  #6  
Old 04-13-2005, 08:18 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-13-2005, 08:24 AM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default Printable Version

Ok that worked! Thanks alot!
__________________
Never believe anything you hear and only half of what you see!

Edward J Ziejka
www.innervisionpc.com
X-Cart Gold 4.1.3
Unix
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 11:55 AM.

   

 
X-Cart forums © 2001-2020