Opencart 3x How change date in footer, insert only years (html or javascript), no text ! (language/en-en/common/footer.php - $_['text_powered'] )
Asked
Active
Viewed 218 times
1 Answers
1
The real plece where the date implements in OpenCart 3 footer is in
catalog/controller/common/footer.php
$data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y', time()));
This one is date
date('Y', time())
You can change 'Y' as you want using PHP date formats.
Also you can put current date directly to your footer.twig.
{{ "now"|date('d-m-Y H:i') }}

DarkBee
- 16,592
- 6
- 46
- 58

focus.style
- 6,612
- 4
- 26
- 38
-
Thanks! I wrote like this - {{ "now"|date('Y') }} - Very good! – Vlad Kursish Feb 19 '22 at 21:46