| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
prnotice.tpl error after edit | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 1. Change the file and put the original code:
PHP Code:
2. Clear cashe: ..../cleanup.php |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|