TheMoonWalk Posted December 26, 2023 Share Posted December 26, 2023 Hello PrestaShop Community, I'm encountering an issue with updating the copyright year in the footer of my PrestaShop site and would appreciate your help. I aim to update the year to display "2023" instead of the current year or a previous one. I'm using the `at_movic` theme and have already tried to modify the `footer.tpl` file of this theme, but without success. Here's what I've attempted so far: - I've searched in the `footer.tpl` file for any text or code related to the year, but I found no direct reference to a hardcoded year. - I also tried clearing the PrestaShop cache after making changes, but the displayed year does not change. Here is an excerpt from my `footer.tpl` file: Path: web\themes\classic\templates\_partials\footer.tpl Code: ``` {block name='copyright_link'} <a class="_blank" href="http://www.prestashop.com" target="_blank"> {l s='%copyright% %year% - Ecommerce software by %prestashop%' sprintf=['%prestashop%' => 'PrestaShop™', '%year%' => 'Y'|date, '%copyright%' => '©'] d='Shop.Theme.Global'} </a> {/block} ``` And in the at_movic theme similarly: Path: web\themes\classic\at_movic\templates\_partials\footer.tpl ``` {block name='hook_footer_before'} ... {/block} {block name='hook_footer'} ... {/block} {block name='hook_footer_after'} ... {/block} ``` I suspect that the year might be dynamically generated or managed by a module, but I'm not sure how to proceed to modify it. Would you have any suggestions or advice on how to resolve this issue? Any help would be greatly appreciated. Thank you very much for your time and assistance! Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted December 26, 2023 Share Posted December 26, 2023 That'ss is the code you need to change: "%year%' => 'Y'|date" to "%year%' => 2023" 1 Link to comment Share on other sites More sharing options...
TheMoonWalk Posted December 27, 2023 Author Share Posted December 27, 2023 Thank you so much that's work 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