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

helpful template_c info

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-26-2003, 03:00 AM
 
John_E John_E is offline
 

Member
  
Join Date: Jun 2003
Posts: 15
 

Default helpful template_c info

If anyone else finds that they are editing the templates and they arent changing on screen, and yet you can still view the change in the template file, then its because you have a cached template file in templates_c.

Ive spent days trying to work out why it doesnt update, then found it in forums

Hope this helps someone else, and hope someone puts in the next xcart manual this info as basically most ppl will want to edit templates. It would be very very helpful.

Anyone else have any problems when a newbie with this?

John_E
Reply With Quote
  #2  
Old 07-26-2003, 06:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

this is what the flush templates option is for in summary page of v3.4.x
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 07-28-2003, 02:44 AM
 
John_E John_E is offline
 

Member
  
Join Date: Jun 2003
Posts: 15
 

Default Help manual with template_c clear option info

Ah, I see.

Well, it may be an idea to put it into a help manual for newbies.

I dont sometimes look that far down the page.

I checked the manual... its definately not there. I think.

Thanks for the info Shan.


John_E
Reply With Quote
  #4  
Old 07-28-2003, 04:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Quote:
Well, it may be an idea to put it into a help manual for newbies.

Theres an idea
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 08-09-2003, 12:51 PM
 
jcgg jcgg is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 5
 

Default

How do you flush the templates? I have the same problem with my changes not showing up because of the template_c folder.

I tried deleting the template in the template_c folder, but then I get an error because it can't open it.

Thanks
Reply With Quote
  #6  
Old 08-11-2003, 01:58 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

in older versions (pre 3.4.0) your run

http://www.yoursite.com/xcartdir/cleanup.php

On newer versions look on the summary page at the bottom
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 08-11-2003, 06:45 AM
 
jcgg jcgg is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 5
 

Default

Thank you,

I do have an older version (3.3.5), so did run the cleanup path in a browser and got this message:

"The compiled templates cache ("templates_c" directory) has been cleaned up."


But, when I checked the templates_c folder, the template that is cached was still there, and when I tried to delete it, I got errors because it couldn't open the file. I restored the template in template_c folder, and the errors went away. This shows me that the file I'm trying to edit is still running from that template in that folder. I did try to make changes to the real template from the website admin, but my changes still did not appear. Any suggestions? Thank you for your help.
Reply With Quote
  #8  
Old 08-11-2003, 07:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

templates are recreated (compiled) every time you view the store.

to be sure the templates are cleared run cleanup.php as i mentioned before then WITHOUT viewing the store go in and delete the templates_c folder (or rename it) then create a new one and set its permissions to chmod 777 so that its writable
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 09-12-2003, 12:54 PM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default

Shan,

I've been having similar problems with https and the templates_c directory. I can remove the old templates_c directory and create a new one with permission set to 777. However, when xcart (or smarty) creates any directory within templates_c, the permissions are always set to 775 (or 775, I can't remember. Regardless, they 'aint 777).

How do we set this to allow 777 on all directories within templates_c? Obviously, the initial install is able to do this. I did read something in another post about the owner being set to 'nobody'. I don't fully understand this, so it may be the reason for my ignorance on teh permission issue.

Also, it may be beneficial for the xcart team to include a "Re-create templates_c directory" on the Summary page.
Reply With Quote
  #10  
Old 09-14-2003, 07:59 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

only main templates_c folder needs to be 777 as this is the one that gets written to.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 01:56 PM.

   

 
X-Cart forums © 2001-2020