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

Changes to template not showing in store.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-03-2010, 03:19 AM
  Onion Ninja's Avatar 
Onion Ninja Onion Ninja is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 72
 

Question 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:
{* <td class="Bottom" align="left">{include file="main/prnotice.tpl"}</td> *}
__________________
Evan Andrews
X-Cart Gold 4.4.1
Reply With Quote
  #2  
Old 10-03-2010, 06:08 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-05-2010, 03:18 AM
  Onion Ninja's Avatar 
Onion Ninja Onion Ninja is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 72
 

Default 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
__________________
Evan Andrews
X-Cart Gold 4.4.1
Reply With Quote
  #4  
Old 10-05-2010, 04:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-05-2010, 05:46 AM
  Onion Ninja's Avatar 
Onion Ninja Onion Ninja is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 72
 

Default Re: Changes to template not showing in store.

Quote:
Originally Posted by balinor
As Steve mentioned above, you need to clear the template cache after you make edits to see the edits.

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.
__________________
Evan Andrews
X-Cart Gold 4.4.1
Reply With Quote
  #6  
Old 10-05-2010, 09:06 AM
  Onion Ninja's Avatar 
Onion Ninja Onion Ninja is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 72
 

Default 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.
__________________
Evan Andrews
X-Cart Gold 4.4.1
Reply With Quote
  #7  
Old 12-08-2010, 04:39 PM
 
mhoney mhoney is offline
 

Newbie
  
Join Date: Dec 2010
Posts: 3
 

Default 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
__________________
Xcart v4.4.1
Reply With Quote
  #8  
Old 12-08-2010, 04:57 PM
 
mhoney mhoney is offline
 

Newbie
  
Join Date: Dec 2010
Posts: 3
 

Default 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!
__________________
Xcart v4.4.1
Reply With Quote
  #9  
Old 12-08-2010, 06:53 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default 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

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #10  
Old 12-08-2010, 07:50 PM
  Onion Ninja's Avatar 
Onion Ninja Onion Ninja is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 72
 

Default 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 . 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

2) firebug

3) And make sure your OS lets you search the text within tpl files too. I had to enable it on my Win7. That's another way to find stuff. You need to have a copy of your x-cart on your hard drive so you can search within all your tpl files.
__________________
Evan Andrews
X-Cart Gold 4.4.1
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 02:16 PM.

   

 
X-Cart forums © 2001-2020