jorgeferpas Posted July 25, 2012 Share Posted July 25, 2012 (edited) Hi everyone, I have a VERY annoying problem. I want to modify 'order-detail.tpl' on my theme and, when I refresh my store, I can see that Prestashop shows some modifications I did on that file, but doesn't show some of them. Of course, I have set off 'cache' and set on 'force compilation' on my Back Office > Preferences > Performance [smarty]. Beside of that, I have deleted all files but 'index.php' in '/tools/smarty/compile'. And here comes the point; when I access to a order details (so Prestashop calls 'order-detail.tpl'), a file called '(lots of numbers/letters).file.order-detail.tpl.php', amongst others, appears in '/tools/smarty/compile', and it has the changes I can see on my store, but it doesn't have the changes I did in 'order-details.tpl' who my store doesn't show. So the question is, where does Prestashop get that information from? Where is THAT cache? Thank you in advance. Regards! Edited February 12, 2013 by jorgeferpas (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2012 Share Posted July 25, 2012 /tools/smarty/compile and /tools/smarty/cache If you also use file system cacheing (last option in the performance tab), you should disable that. Link to comment Share on other sites More sharing options...
jorgeferpas Posted July 26, 2012 Author Share Posted July 26, 2012 Thanks tomerg3, but I have disabled that too, and my forder /tools/smarty/cache is empty. I really don't know why are parts of the file I can't modify (I can modify but prestashop ignores these modifications). Link to comment Share on other sites More sharing options...
tomerg3 Posted July 26, 2012 Share Posted July 26, 2012 What files are you trying to modify? Most likely the problem is elsewhere (maybe you are not changing the right files), since Prestashop does not ignore changes. Link to comment Share on other sites More sharing options...
jorgeferpas Posted July 26, 2012 Author Share Posted July 26, 2012 I am trying to modify order-detail.tpl in my theme directory. The strange part is that I have done some changes who I can see in prestashop. For example, I changed the text "order done at {date}", and I can see the change in my store. But I change a <td> label in the same file (I change "<td>" for "<td id="left">) and I can't see the changes on my website (even I can't find the label "<td id="left">" in the source code of my site, which means that that part of the file was not taken from "order-detail.tpl". This is the part I want to modify, where the red text is the modified text who prestashop "ignores", and the blue text is the modified text who prestashop does correctly: {if count($order_history)} <p class="bold" style="margin:20px 0 -15px 35px;width:125px;text-align:center;color:#fffff8;background:#cbcbbb;border-radius:3px 3px 0 0">Order history</p> <div class="table_block"> <table class="detail_step_by_step std"> <thead> <tr> <th class="first_item">{l s='Date'}</th> <th class="last_item">{l s='Status'}</th> </tr> </thead> <tbody> {foreach from=$order_history item=state name="orderStates"} <tr class="{if $smarty.foreach.orderStates.first}first_item{elseif $smarty.foreach.orderStates.last}last_item{/if} {if $smarty.foreach.orderStates.index % 2}alternate_item{else}item{/if}"> <td id="left">{dateFormat date=$state.date_add full=1}</td> <td id="right">{$state.ostate_name|escape:'htmlall':'UTF-8'}</td> </tr> {/foreach} </tbody> </table> </div> {/if} Link to comment Share on other sites More sharing options...
tomerg3 Posted July 26, 2012 Share Posted July 26, 2012 When you look at the compiled file, do you not see the code in red? Also, your syntax there is wrong, you cannot have more than 1 element with the the same id="" and in your case you have it in a loop... Link to comment Share on other sites More sharing options...
jorgeferpas Posted July 26, 2012 Author Share Posted July 26, 2012 Exactly, I don't see the code in red when I look at the compiled file. You're right, it's a syntax error, I will fix it, but even a syntax error should appear in the compiled file. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 26, 2012 Share Posted July 26, 2012 Hard to say, you may not be looking in the right place... Link to comment Share on other sites More sharing options...
Recommended Posts