Jump to content

[Solved] Customising a tpl-file doesn´t work


aqian
 Share

Recommended Posts

Hi,

when i comment some code out of a .tpl-file, the elements still apear in the shop.

I tried to comment this p-element(checkbox + label for) in the authentication.tpl

{*


  <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin ==   
  '1'}checked="checked"{/if}>
{l s='Receive special offers from our partners'}

*}



Why is this p-element still apear on the front page?

46708_2eaC8h50vglfxNICXznO_t

Share this post


Link to post
Share on other sites

it could be cache.
please clear both your browser cache and server PrestaShop cache.

go back office - preference - performance

change smarty setting:
change to force compile to
disable smarty cache

at bottom of the page cache section,
change to disable cache

Share this post


Link to post
Share on other sites

Hi

sorry i forget to mention that the browser cach is deactivated and presta are forced to compile each client-request.
I think there is an another place where the change have to be done, isn´t there?

Share this post


Link to post
Share on other sites

if you are using 1.4x, there are 3 places in the same file.
I think they for normal checkout, guest checkout, ...

try to search the text "Receive special offers from our" in the file, you will find them.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More