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

prnotice.tpl error after edit

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-05-2008, 06:09 AM
 
jnproducts jnproducts is offline
 

Member
  
Join Date: Apr 2008
Location: Jacksonville, Florida
Posts: 15
 

Default 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
__________________
X-Cart Gold v4.1.11 [unix]
WebsiteCM CD SEO
Firetank Google Shopping Feed
XCartMods MAP Pricing
BCSE Free Shipping Estimator
Reply With Quote
  #2  
Old 05-05-2008, 06:28 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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
Reply With Quote
  #3  
Old 05-05-2008, 07:24 AM
 
jnproducts jnproducts is offline
 

Member
  
Join Date: Apr 2008
Location: Jacksonville, Florida
Posts: 15
 

Default 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
__________________
X-Cart Gold v4.1.11 [unix]
WebsiteCM CD SEO
Firetank Google Shopping Feed
XCartMods MAP Pricing
BCSE Free Shipping Estimator
Reply With Quote
  #4  
Old 05-05-2008, 09:51 AM
 
jnproducts jnproducts is offline
 

Member
  
Join Date: Apr 2008
Location: Jacksonville, Florida
Posts: 15
 

Default 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
__________________
X-Cart Gold v4.1.11 [unix]
WebsiteCM CD SEO
Firetank Google Shopping Feed
XCartMods MAP Pricing
BCSE Free Shipping Estimator
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 11:01 AM.

   

 
X-Cart forums © 2001-2020