KasperB Posted March 22, 2011 Share Posted March 22, 2011 I'm currently developing a new theme for my web shop, hereunder redesigning the default modules layout. However, the process is very time consuming due to changes not showing when the theme is viewed in the browser: sometimes it helps to clear the smarty chache, other times it doesn't work, and other times again you have to delete the whole theme from the server and reupload. Isn't there a way to edit the theme and then SEE the changes without needing to do the above constantly? Secondly, what's the best work flow when designing? Right now I'm editing my files in DreamWeaver, uploading, refreshing page, reedit and upload again ... ... ... Isn't there an easier way? Link to comment Share on other sites More sharing options...
KasperB Posted March 22, 2011 Author Share Posted March 22, 2011 Partly solved: To solve the caching problems, simply disable the Cache in the Preferences --> Performance tab (doh). However, I'm still looking forward to hear suggestions on how to optimize the design process. Link to comment Share on other sites More sharing options...
keweli Posted March 23, 2011 Share Posted March 23, 2011 I tried clearing cache and all that crap but it didn't work. Seems in 1.4, the .php files are no longer using the include function.Anyway to solve the problem, go to Preferences -> Performance -> turn on Force compileRemember to turn this off after updating however or there will be much more processing every time someone visits a page. 1 Link to comment Share on other sites More sharing options...
Doulas Akula Posted January 21, 2013 Share Posted January 21, 2013 (edited) The you best way I found to design is to have this directory that contains prestashops compiled files open (public_html/tools/smarty/compile ). Then you delete from this directory every file that you have edited.The files normally have a .tlp.php extension.Deleting the files from the compile directory forces smarty to recompile the exact file you deleted.This saves server resources as opposed to recompiling the whole smarty template when the changes are affecting a specific file. Edited January 21, 2013 by Doulas Akula (see edit history) 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