![]() |
Changes to template not showing in store.
Trying to remove "Powered by X-Cart" by commenting out the include which points to prnotice.tpl. It doesn't work. I'm using the Admin > Edit Templates page.
After commenting the phrase out, I click the preview button, and see the phrase has disappeared from the preview. But when I reload the store's homepage, the phrase is still there. Why? I'm thinking maybe it's some kind of cache thingy. I managed to successfully change the text by editing the prnotice.tpl file itself. So I know I can do it that way. I just want to know how this works for future edits. *Edit: I just realized I'm using 4.3.2. Not 4.4. Oops* Code:
{* |
Re: Changes to template not showing in store.
Check if file is really saved with your changes. BTW you will be better off editing files via FTP instead of using the xcart built in editor.
Clearing the cart cache - www.domain.com/cleanup.php |
Re: Changes to template not showing in store.
I must have some understanding of the template referencing wrong, and need to do some basic learning first.
From what I read, bottom.tpl is the footer of the whole site. To test, I added some text to bottom.tpl and uploaded it by FTP. No changes. I deleted the file completely from the server. But I still see the footer even though I thought I just deleted it. So I guess the footer is coming from somewhere else. Anyway, I should work my way through a few tutorials on x-cart/smarty templates. That will probably answer a lot of questions before I ask. Thanks Steve :D |
Re: Changes to template not showing in store.
As Steve mentioned above, you need to clear the template cache after you make edits to see the edits.
|
Re: Changes to template not showing in store.
Quote:
Sorry guys, I forgot to mention that I did to refresh the template. I can't see changes made directly to the bottom.tpl file, even if I refresh the template as Steve suggested. I tried adding text, commenting out parts, even deleting the file, and it didn't change anything. Can still see the whole footer, unchanged. I changed the text in prnotice.tpl. Now my home page is powered by X-Fart. But other pages are powered by X-Cart. I don't know why the change only shows on the home page. I guess I just don't know what files the data is coming from. Although from what I've read, it shouldn't be this tricky. Hopefully, further study will make this more clear. |
Re: Changes to template not showing in store.
Okay turns out I'm a moron. There are two bottom.tpl files and I was editing the wrong one. ](*,)
The wrong one: skin1/bottom.tpl The right one: skin1/customers/bottom.tpl I knew it had to be something super simple like. Padraic, Steve, thanks guys. |
Re: Changes to template not showing in store.
I am having the same problem with the Fashion Mosaic (Blue) template. I commented out the prnotice.tpl and copyright.tpl from the skin/common_files/bottom.tpl and cleared the template cache AND cleared my browser cache and still I see the Powered by X-Cart and copyright notice.
I do not see this particular template referencing a different bottom.tpl anywhere, please help before I pull the little hair I have left out! Tia P.S. I am using Xcart 4.4.1 |
Re: Changes to template not showing in store.
It turns out that the CORRECT bottom.tpl file to edit is in the common_files/customer directory. It sure would be nice if updated documentation would accompany the product. All of the docs / user manuals I can find reference the 4.3 X-Cart.
It always amazes me how companies these days are in such a hurry to get a product out the door that they ignore the most important part.....DOCUMENTATION! |
Re: Changes to template not showing in store.
It is best to use webmaster mode to trace templates. Webmaster mode will tell you how most the templates relate to each other and which are being used where: http://help.qtmsoft.com/index.php?title=X-Cart:Customizing_storefront#Using_Webmaster_mode
--- |
Re: Changes to template not showing in store.
I agree, mhoney, the documentation sucks big time. You are required to figure most things out on your own. Documentation doesn't tell you how to do much.
Mhoney, we had the same problem and the same solution. I had already posted the location you needed, the post right above yours :wink:. It is in the customer dir, altough it looks like that dir is in a different dir between x-cart versions. There are 3 things that are essentail that you need to be using when designing your store: 1) As gb2world said, webmastermode |
All times are GMT -8. The time now is 11:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.