whatuwant Posted February 8, 2009 Share Posted February 8, 2009 Here's an annoying one that I can't sort. I have copied the default template and have been making changes to create a custom template. Everything was going fine. I wanted to remove the line <div class="seperatorbar">{$LANG.orderproduct}</div> in products.tpl so I simply deleted it. Then accessing cart.php I got this error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/PATHTO/public_html/FOLDER/templates_c/%%42^422^422A4B4A%%products.tpl.php on line 13 I then undeleted the line, still the same error. I checked the template_c folder and found a ton of temp files and then deleted %%42^422^422A4B4A%%products.tpl.php Still the error persists. I have tried to empty cache, remove cookies, quit browser but still the same error exists even though the temp file doesn't. Any ideas? TIA. 0 Quote Link to comment Share on other sites More sharing options...
siforek Posted February 8, 2009 Share Posted February 8, 2009 Completely deleting line 13 may not be the solution to your problem. How about posting your products.tpl here and we can tell you were the problem is. 0 Quote Link to comment Share on other sites More sharing options...
whatuwant Posted February 9, 2009 Author Share Posted February 9, 2009 (edited) This is the thing - I can't understand the problem as products.tpl hasn't been touched: <link rel="stylesheet" type="text/css" href="templates/orderforms/cart/style.css" /> <p align="center" class="cartheading">{$LANG.cartbrowse}</p> <div class="cartbox" align="center"><strong> {foreach key=num item=productgroup from=$productgroups} {if $gid eq $productgroup.gid} {$productgroup.name} | {else} <a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a> | {/if} {/foreach} {if $loggedin}<a href="{$smarty.server.PHP_SELF}?gid=addons">{$LANG.cartproductaddons}</a> | {/if} {if $registerdomainenabled}<a href="{$smarty.server.PHP_SELF}?a=add&domain=register">{$LANG.registerdomain}</a> |{/if} {if $transferdomainenabled}<a href="{$smarty.server.PHP_SELF}?a=add&domain=transfer">{$LANG.transferdomain}</a> |{/if} <a href="{$smarty.server.PHP_SELF}?a=view">{$LANG.viewcart}</a> </strong></div> <br /> {foreach key=num item=product from=$products} <div class="cartbox" align="center"> <strong>{$product.name}</strong> {if $product.qty!=""}<em>({$product.qty} {$LANG.orderavailable})</em>{/if}<br /> {if $product.description}{$product.description}<br />{/if} <div style="margin:5px;padding:2px;color:#cc0000;"> {if $product.paytype eq "free"} {$LANG.orderfree} {elseif $product.paytype eq "onetime"} {$product.pricing.onetime} {$LANG.orderpaymenttermonetime} {elseif $product.paytype eq "recurring"} {if $product.pricing.monthly}{$product.pricing.monthly}<br />{/if} {if $product.pricing.quarterly}{$product.pricing.quarterly}<br />{/if} {if $product.pricing.semiannually}{$product.pricing.semiannually}<br />{/if} {if $product.pricing.annually}{$product.pricing.annually}<br />{/if} {if $product.pricing.biennially}{$product.pricing.biennially}<br />{/if} {/if} </div> <div align="center"><input type="button" value="{$LANG.ordernowbutton}"{if $product.qty eq "0"} disabled{/if} onclick="window.location='{$smarty.server.PHP_SELF}?a=add&pid={$product.pid}'" /></div> </div> <br /> {/foreach} <p align="right"><input type="button" value="{$LANG.viewcart}" onclick="window.location='cart.php?a=view'" /></p> Edited February 9, 2009 by whatuwant 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted February 10, 2009 Share Posted February 10, 2009 copy your new template off somewhere else, copy the default template over the top test to see if you still have the problem - if so then it will be one of files not uploaded correctly a mistake/typo/whatever in your language file then copy your changed files over one by one, retesting as you go ... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.