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)
-   -   prnotice.tpl error after edit (https://forum.x-cart.com/showthread.php?t=39556)

jnproducts 05-05-2008 06:09 AM

prnotice.tpl error after edit
 
Hello,

I'm new to x-cart and I was attempting to make some changes to my prnotice.tpl file according to instructions from the forums to remove the "Powered by X-Cart" text.

Well I wanted to do the {* *}command to exclude the text rather than delete and I'm pretty sure I put it in a place it shouldn't been causing my issue.

This has created the following error: Parse error: syntax error, unexpected T_ELSE in /home/bagoasis/public_html/var/templates_c/%%87^87C^87C140B3%%prnotice.tpl.php on line 4

Here's my code

{* $Id: prnotice.tpl,v 1.6.2.1 2007/05/18 07:54:00 svowl Exp $ *}
{*{if $main eq "catalog" and $current_category.category eq ""}*}
Powered by X-Cart <a href="http://www.x-cart.com" class="Bottom">{*{$sm_prnotice_txt}*}</a>
{else}
Powered by X-Cart {*{$sm_prnotice_txt}*}
{/if}

I've tried to delete my changes and that didn't work, I attempted to delete all the text, no good. I tried the retore file feature it wouldn't retore. I tried to upload the orginial file from the install zip to overwrite it to the /main directory and that didn't work. Any idea on how to correct this?

Thanks,

Jason

Yurij 05-05-2008 06:28 AM

Re: prnotice.tpl error after edit
 
1. Change the file and put the original code:

PHP Code:

{* $Idprnotice.tpl,v 1.6.2.1 2007/05/18 07:54:00 svowl Exp $ *}
{if 
$main eq "catalog" and $current_category.category eq ""}
Powered by X-Cart <a href="http://www.x-cart.com" class="Bottom">{$sm_prnotice_txt}</a>
{else}
Powered by X-Cart {$sm_prnotice_txt}
{/if} 


2. Clear cashe: ..../cleanup.php

jnproducts 05-05-2008 07:24 AM

Re: prnotice.tpl error after edit
 
Yurij,

I had to google to figure out how to do the cleanup.php script. My URL is bagoasis.com and when I figured it out I got the following result: The compiled templates cache ("templates_c" directory) has been cleaned up.

I then went to my tools area in X cart to clear the template cache. Made my way over to prnotice.tpl and pasted your code over the incorrect code and hit save. The changes did not take effect.

I also noticed that I can't go into webmaster mode or view my own user profile.

Any additional ideas?

thank you,

Jason

jnproducts 05-05-2008 09:51 AM

Re: prnotice.tpl error after edit
 
Fixed!

I was doing some deep digging on this forum and found a response by Balinor to another user with a similar issue suggesting to FTP a clean copy to the directory.

I FTP'ed up prnotice.tpl and my errors cleared up. I'm really suprised as to how touchy the templates are to bad code. I'm going to be walking on egg shells now.

At least I know this now if I encounter in the future.

thanks,

Jason


All times are GMT -8. The time now is 03:30 PM.

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