sixthmind Posted March 7, 2012 Share Posted March 7, 2012 I am not sure how this happened, but all of a sudden when I make some changes to cms.tpl, it doesn't show in front -end. For example I deleted: <h1>{$category->name|escape:'htmlall':'UTF-8'} </h1> and saved the file but when I refresh my browser, no changes there. Under Preferences > Performance I have: Force compile: yes Cache: no I am not sure what is causing this problem. Did anybody else had the same problem before? What I recently did was added a custom hook hookMenu for jbx menu in one of the files and I also added custom template. I wonder what is interfering? Link to comment Share on other sites More sharing options...
shacker Posted March 7, 2012 Share Posted March 7, 2012 hi. have you clear your cache folder under tools/smarty/compile? check our fre module clear smarty to clear all cache http://catalogo-onlinersi.com.ar/en/back-office-prestashop-modules/93-clear-smarty-prestashop-module.html Link to comment Share on other sites More sharing options...
El Patron Posted March 7, 2012 Share Posted March 7, 2012 simply set your smarty to recompile whenever you are doing .tpl testing...back office-->preferences-->perfromance smarty compile Y or do as suggested by shacker... suerte 1 Link to comment Share on other sites More sharing options...
shacker Posted March 7, 2012 Share Posted March 7, 2012 She have compilation enabled. So maybe dont clear the cache at all.Or change the TPL of the wrong template Link to comment Share on other sites More sharing options...
sixthmind Posted March 7, 2012 Author Share Posted March 7, 2012 thanks guys for your help! I installed clear smarty module, cleared it and now the code changes I've done are showing. However, once I do more changes and refresh the page, it doesn't show new changes. I have to clear smarty again and only then the changes show. Do I have to clear the Smarty every time I change something in a template? I don't understand what's happening. Before it was working fine. Link to comment Share on other sites More sharing options...
El Patron Posted March 7, 2012 Share Posted March 7, 2012 you need to set smarty compile to Y...either during your testing or after upload of you .tpl you do not need to clear your cache...that is for things entirely different that .tpls Link to comment Share on other sites More sharing options...
shacker Posted March 7, 2012 Share Posted March 7, 2012 she means the smarty/compile/cache folder Link to comment Share on other sites More sharing options...
sixthmind Posted March 7, 2012 Author Share Posted March 7, 2012 I have Force compile: Yes in Performance. Is that what you meant? I am working locally. Link to comment Share on other sites More sharing options...
El Patron Posted March 7, 2012 Share Posted March 7, 2012 I have Force compile: Yes in Performance. Is that what you meant? I am working locally. correct...when I develop .tpls...I just run with smarty off...but when I develop modules I use (for example): $this->clearHeaderTplCache(); public function clearHeaderTplCache() { global $smarty; $smarty->clearCompiledTemplate('header.tpl'); } if you have compile .tpls on...and your change does not show up...then there is a problem with your modification...make sure you run with errors on using shackers module Link to comment Share on other sites More sharing options...
sixthmind Posted March 7, 2012 Author Share Posted March 7, 2012 I do that, but I still have to clear smarty every time I wanna see any changes. Link to comment Share on other sites More sharing options...
jeafgilbert Posted March 29, 2012 Share Posted March 29, 2012 Enabling 'Forced complie' in Preferences > Performance works well. Thanks! Link to comment Share on other sites More sharing options...
radamazone Posted July 19, 2012 Share Posted July 19, 2012 Hello, I have (prestashop 1.4.8.2) exactly the same problems as sixthmind. Under Preferences > Performance I have: Force compile: yes Cache: no I have also installed the ClearSmarty Module of shacker. But nothing happens when I change a .tpl file in my theme. Who can help me? Sandra Link to comment Share on other sites More sharing options...
shacker Posted July 19, 2012 Share Posted July 19, 2012 try to remove directly from tools/smarty/compile, or tools/smarty_v2/compile Link to comment Share on other sites More sharing options...
radamazone Posted July 19, 2012 Share Posted July 19, 2012 (edited) try to remove directly from tools/smarty/compile, or tools/smarty_v2/compile Thank's shacker. Now I have found the reason why my products.tpl was not shown. I have edited the products.tpl in /themes/my_theme/products.tpl. But there was another products.tpl in /modules/germanext/products.tpl Now I have edited this one - and now it works! Edited July 19, 2012 by radamazone (see edit history) 1 Link to comment Share on other sites More sharing options...
shacker Posted July 19, 2012 Share Posted July 19, 2012 ups, perfect Link to comment Share on other sites More sharing options...
cbilodeau Posted December 18, 2013 Share Posted December 18, 2013 You give the same answer that I found on nealy 100 places on the internet. This solution does not work for me and it does not work for hundred of persons. I have two differents host tooniehosting.ca and 1dollar-webhsting and there is absolutly no solution to clearing the cache. Nothing work: deleting, the parameters, etc. Why do you think hundreds of persons keep asking the same question?. Link to comment Share on other sites More sharing options...
vekia Posted December 18, 2013 Share Posted December 18, 2013 maybe your hosts use own caching system not related to cache engine in prestashop? it's worth to check it. Link to comment Share on other sites More sharing options...
shri Posted April 13, 2015 Share Posted April 13, 2015 simply set your smarty to recompile whenever you are doing .tpl testing...back office-->preferences-->perfromance smarty compile Y or do as suggested by shacker... suerte This helped solve my cms.tpl problem. Thank you Link to comment Share on other sites More sharing options...
bcsteeve Posted July 1, 2015 Share Posted July 1, 2015 (edited) more of the same. Thoroughly confused. I did all the cache stuff... still when I make changes to tpl, nothing happens! Is it perhaps the wrong tpl file? is there a DEFINITIVE guide for basic how to make changes??? I'm doing this on a local server. All caching is turned off, recompile forced enabled, etc. No changes are reflected. Extremely frustrating when basic stuff like this is so hard. Sigh. In my case, the issue was that I didn't realize I was editing a portion of the tpl specific to guest checkout. So nevermind. Edited July 1, 2015 by bcsteeve (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now