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

move printable row - how?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-29-2007, 11:19 AM
 
sassicat sassicat is offline
 

Advanced Member
  
Join Date: May 2007
Location: Dale City, Virginia
Posts: 80
 

Cool move printable row - how?

I want the print icon to be to the right of the breadcrumbs. And then remove it from where it is currently so that my categories and main content but right below the header.

I did find the code and moved it to home.tpl and changed the if statement a bit so that it would make a table and have the location.tpl in the first cell and the printable.tpl in the second cell.

That works fine....but after I go back to head and comment out everything after the line to remove to display products online, it gives me a smarty error
Quote:
Error: Smarty error: [in head.tpl line 127]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2286) in /home/sassicat/public_html/shop/Smarty-2.6.12/Smarty.class.php on line 1095

Parse error: syntax error, unexpected T_ENDIF in /home/sassicat/public_html/shop/var/templates_c/%%68^689^68964653%%head.tpl.php on line 163


Here is the end of my head.tpl when I get the error

Code:
**** Remove this line to display how much products there are online ******} {***************** {if $main ne "fast_lane_checkout"} <tr> <td colspan="2" valign="middle" height="32"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td> {if (($main eq 'catalog' && $cat ne '') || $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 class="PrintableRow" align="right">{include file="printable.tpl"}</td> {/if} </tr> </table> </td> </tr> {else} {* Fast Lane Checkout page *} <tr> <td colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td> </tr> {/if} ***************} </table>

Can someone please tell me why I get this error by simply commenting out this code?

Thanks

Sassy
__________________
Christy Catterton
http://www.sassicataviary.com
X-Cart Gold Ver 4.1.8
Reply With Quote
  #2  
Old 09-05-2007, 10:25 AM
 
sassicat sassicat is offline
 

Advanced Member
  
Join Date: May 2007
Location: Dale City, Virginia
Posts: 80
 

Default Re: move printable row - how?

No one knows why I get this error??????
__________________
Christy Catterton
http://www.sassicataviary.com
X-Cart Gold Ver 4.1.8
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 07:44 AM.

   

 
X-Cart forums © 2001-2020