tsDan Posted September 27, 2011 Share Posted September 27, 2011 I'm fairly new to presta shop but am very familiar with smarty... However, I have my hands tied with this question. Is there some caching that sets a time after editing .tpl files? I have made many changes such as removing footer and header div's just for testing purposes and nothing has altered... The original content is still there. I am only using the default prestashop theme. Many thanks, Dan Link to comment Share on other sites More sharing options...
dazzza Posted September 27, 2011 Share Posted September 27, 2011 In Admin go to Preferences > performance & change force compile to yes & cache to no when making changes to the template .tpl files. 1 Link to comment Share on other sites More sharing options...
tsDan Posted September 27, 2011 Author Share Posted September 27, 2011 Cheers... I am still amazed at how many features the admin section has... Have a great, Day Link to comment Share on other sites More sharing options...
dazzza Posted September 27, 2011 Share Posted September 27, 2011 I will thanks. Hope it solved your problem Link to comment Share on other sites More sharing options...
chrishpi Posted September 27, 2011 Share Posted September 27, 2011 after a few hours you solved my problem thanks YOU very much.................. Link to comment Share on other sites More sharing options...
publitesa Posted December 23, 2011 Share Posted December 23, 2011 Hi. It doesn't run for me... I tried forcing compile and saving but when I refresh it doesn't run... My category module appears white. I need showing my changes on .tpl and I can not get it. If I turn force compile again to off, it doesn't show my changes. Any help? Link to comment Share on other sites More sharing options...
Carl Favre Posted December 23, 2011 Share Posted December 23, 2011 Hi publitesa, Have you cleared your cache? What kind of changes have you done? Link to comment Share on other sites More sharing options...
publitesa Posted December 27, 2011 Share Posted December 27, 2011 Hi Carl. I tried deleting "<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />" from the category.tpl of my theme but it doesn't run. I try it marking "force compilation" and I also tried with category.tpl of default theme of Prestashop but it doesn't run. I can not make any change in any .tpl because it has no effects. I also tried deleting my cache... with no exit Can you help me? Link to comment Share on other sites More sharing options...
Carl Favre Posted December 27, 2011 Share Posted December 27, 2011 Could you send me your back-office + FTP login/password so I can check why it is not working? Link to comment Share on other sites More sharing options...
publitesa Posted December 27, 2011 Share Posted December 27, 2011 I'm sorry but I'm working in local. But it's not my first Prestashop development, and I've never had those problems with other older versions of it working in local and online. What could I see in configuration for try finding the solution? Link to comment Share on other sites More sharing options...
Carl Favre Posted December 27, 2011 Share Posted December 27, 2011 As I told you "Forced compilation" should be set to "ON" and "Cache" set to "NO" in preferences/performances. You should also clear your browser cache and there is no reason for your changes not to appear. Take a look into \tools\smarty\cache and \tools\smarty\compile to be sure that you have no more files except index.php that should not be deleted. Link to comment Share on other sites More sharing options...
publitesa Posted December 27, 2011 Share Posted December 27, 2011 I set "forced copilation" to "on" and "cache" to off, then I cleared my browser cache and all files in tools\smarty\cache and tools\smarty\compile except index.php... I made changes in category.tpl of my theme deleting only the <img> tag I said in the other post, and after I set "forced compilation" to "on"... but the result is a white category page. I can see everything (header, left column, footer...) but no content, as I show you on this picture: On this other picture you can see how I set compilation to on and cache to off: Link to comment Share on other sites More sharing options...
Carl Favre Posted December 27, 2011 Share Posted December 27, 2011 There must be a problem in your custom theme. Try to compare it with the default one and check if everything is alright. Link to comment Share on other sites More sharing options...
publitesa Posted December 27, 2011 Share Posted December 27, 2011 I tried selecting default prestashop theme and I get the same result... no changes. So I thing it's something about my ps configuration... Link to comment Share on other sites More sharing options...
publitesa Posted December 28, 2011 Share Posted December 28, 2011 I installed a clean Prestashop, without modules, and I'm activating them as soon I need them. Is possible that this was the reason because I can not modify any .tpl? Maybe I have to activate any other module? Link to comment Share on other sites More sharing options...
Carl Favre Posted December 28, 2011 Share Posted December 28, 2011 Well if you installed PrestaShop without any modules your homepage is going to be blank. You will have to install homepage module, cms module, etc. Link to comment Share on other sites More sharing options...
publitesa Posted December 28, 2011 Share Posted December 28, 2011 I already installed those modules and categories block, cart, etc... I see all I want and my content (categories and products) but if I want to modify any .tpl and follow all the process you explained to me (compilation, cache, clear smarty cache...) then categories appears on white (like you can see in my message #12)... but my product details appears correctly!!! I don'nt know why... Link to comment Share on other sites More sharing options...
publitesa Posted December 28, 2011 Share Posted December 28, 2011 I've uploaded all the website to Internet and set to display errors and we can see this message instead of products list: Fatal error: Smarty error: [in /var/www/vhosts/parafarmaciacentre.com/httpdocs/themes/theme178/category.tpl line 61]: syntax error: unexpected {elseif} (Smarty_Compiler.class.php, line 486) in /var/www/vhosts/parafarmaciacentre.com/httpdocs/tools/smarty_v2/Smarty.class.php on line 1095 I can not find any error in this line of my category.tpl... Now I can send you user and password of backoffice and FTP, by private message. Thanks! Link to comment Share on other sites More sharing options...
publitesa Posted December 29, 2011 Share Posted December 29, 2011 It was PS version... My theme only works propertly with 1.4.3 and I was using 1.4.6.2. And for modifying image category, best is doing it on theme/scenes.tpl file 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