matlanpos Posted February 6, 2015 Share Posted February 6, 2015 Hai... I just want to know if there any method to make the year in the footer automaticlly update. I try to use <?php echo date ("Y"); ?> in blockcms.tpl but its not working. Anyone can answer,,,,thank you and appreciate so much.. Presta Shop 1.6 Link to comment Share on other sites More sharing options...
bellini13 Posted February 6, 2015 Share Posted February 6, 2015 and where is blockcms.tpl located? Link to comment Share on other sites More sharing options...
matlanpos Posted February 6, 2015 Author Share Posted February 6, 2015 Hai Bellini,, 1- presta shop modules/blockcms/blockcms.tpl 2- presta shop themes/default-bootstrap/modules/blockcms/blockcms.tpl seem nothing happen if you add or change anything here, even if I erase the © 2014 the year still appear in the front-end. And I also want to know how to change the favicon Thank you.. 1 Link to comment Share on other sites More sharing options...
bellini13 Posted February 6, 2015 Share Posted February 6, 2015 You need to change it in the theme 2- presta shop themes/default-bootstrap/modules/blockcms/blockcms.tpl You also need to ensure that you have cleared your smarty cache, or enabled recompile of smarty templates. You can upload a new favicon in the Preferences > Themes page of the back office 1 Link to comment Share on other sites More sharing options...
matlanpos Posted February 6, 2015 Author Share Posted February 6, 2015 Favicon already change, in admin panel preferences .> themes > icons. Save. Link to comment Share on other sites More sharing options...
matlanpos Posted February 6, 2015 Author Share Posted February 6, 2015 Thanks Bellini,, So,, it mean I only need to add <?php echo date ("Y"); ?> after © 2014...right. O.k thank you very much for your help Bellini,,, .. Link to comment Share on other sites More sharing options...
bellini13 Posted February 7, 2015 Share Posted February 7, 2015 no, you cannot use php code in a smarty template. try something like this <div> © {'Y'|date} </div> 1 Link to comment Share on other sites More sharing options...
matlanpos Posted February 23, 2015 Author Share Posted February 23, 2015 Ok... Understand now..... You're very helpful,,,,,,,Thanks... 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