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)
-   -   Can't view edited templates (https://forum.x-cart.com/showthread.php?t=6207)

albertr 01-26-2004 10:20 AM

Can't view edited templates
 
My x-cart is running great after moving it to the remote server, DBs run fine and checkout is operating without a hitch.

I'm having trouble with the store not showing the edited templates that I've modified. I have modified the new.tpl and it's not displaying. When I hit save file, it tells me that it saved successfully. When I go to preview, it's showing the old one and the site is still showing the old one, even after a reload. When I click 'edit templates' again, the 'news.tpl' is showing me the update code but the site and the preview are still showing the old 'news.tpl' Am I missing something?

Thanks
albert :-)

shan 01-26-2004 12:48 PM

try hitting refesh on your browser (F5)

albertr 01-26-2004 02:11 PM

Of course I did that with no luck. very strange behavior. Please help, i'm dying over here!!! :x :x

leon 01-26-2004 04:53 PM

Try forcing refresh with CTRL+F5 or clearing the templates_c in admin so they can create themselves again.

albertr 01-27-2004 02:30 PM

Thanks for trying to help me, but I've tried everything to make those edited templates show, but no go.

X-cart is saving the file modification because I can bring it back up, but when I go to preview it or view it on the site it's still the default template showing. I even reset my browser just to be sure.

Please help, could it be a file permissions issue or a corrupted table somewhere?

Thanks for all your help.

:-)

leon 01-27-2004 03:23 PM

Just a guess... Are you modifying templates in the skin1_original directory ?

I know it sounds simple, but it could be that you are modifying templates in the orignal directory and not the one established during install, that by default is /skin1 (not /skin1_original) directory.

It happened to me once. :wink:

albertr 01-28-2004 02:03 PM

I'm modifying the templates from within the xcart admin. Whichever directory that is.

I can't figure it out. We also can't upload images to the server anymore.

Please help!!! I'm dying over here :lol:

lyncca 01-28-2004 02:08 PM

There are 2 complete sets of skins -- so each will have an admin folder. I would guess you are in the wrong one as well --- as I did the same thing before :oops:

albertr 01-29-2004 08:19 AM

I know that I'm in the correct folder because I can download the files via ftp and look at them.

For example: I'm modifying the news.tpl file. I've made and saved my changes and checked it via ftp.

My working directory is /xcart/skin1 not /xcart/skin1_original because the corresponding file in skin1_original has not be modified.

What could I be doing incorrect? Any suggestions. I've also reinstalled x-cart twice with no luck.

Could it be an issue during setup because I set the xcart directory field to a "/", just a slash, no /xcart, could that be the issue?

lyncca 01-29-2004 08:27 AM

Ok then, first thing I would do to troubleshoot is narrow down the problem, can anyone else see your changes that has never viewed your site before? If not, then its a real problem and not a caching problem.

I just try to sort out the easy solutions first before digging into code :) Although it sounds like this isn't a caching problem, I have had stranger things happen :)

albertr 01-29-2004 08:59 AM

OK folks,

Here's the website: http://www.kellac.com/

The file that should be modified is the news.tpl or the subscribe module. I've removed the labels.

Let me know what you see.

Lyncca, if you want admin access to the site, please IM me @ prgrssvtrance.

Thanks for all your help and the time you've invested in my issue.

:-)

lyncca 01-29-2004 10:07 AM

Here is what I see:

www.biz-plates.com/clients/kel-lac.jpg

I assume by labels you mean the text to signup for the newsletter? If thats correct then I don't see it.

albertr 01-29-2004 10:47 AM

That's what I see also, and it's incorrect.

I've modified the news.tpl to have the following:

{* $Id: news.tpl,v 1.13 2003/02/25 08:58:45 olga Exp $ *}
{capture name=menu}
<FONT class=VertMenuItems>
<span style="font-size: 9px">
{include file="today_news.tpl"}
</span>

[img]{$ImagesDir}/spacer.gif[/img]

{$lng.txt_subscribe_monthly}

<center>
<form name="ccoptin" action="http://ccprod.roving.com/roving/d.jsp" target="_blank" method="post">
<table bgcolor="lightyellow" border="1" bordercolor="black" cellpadding="3" cellspacing="0">
<tr><td align="center"><font size=2 face="Verdana,Arial,Helvetica">Join the KEL-LAC Uniforms, Inc. mailing list </font></td></tr>
<tr><td align="center"><font size=2 face="Verdana,Arial,Helvetica">Email:
<input type=text name="ea" size=25>
<input type=hidden name="m" value="1011205012182">
<input type=hidden name="p" value="oi">
<input type=submit name="go" value="Go">
</font></td></tr>
</table></form></center>

</FONT>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_news.gif" menu_title=$lng.lbl_news menu_content=$smarty.capture.menu }

The above is a custom subscription form. That's all I want to show there and now I can't even upload images via the admin.

Thanks.

leon 01-29-2004 04:15 PM

Now I gotcha, just as I suspected (see my previous post).

You are trying to update in another directory. You are actually updating your file in /skin1 directory, which is correct, but for some reason your config.php file is relating your site to the /skin1_original.

See the difference in what you want:
http://www.kellac.com/skin1/news.tpl

And what you see:
http://www.kellac.com/skin1_original/news.tpl


All times are GMT -8. The time now is 07:44 AM.

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