S
S
Spb91180022019-01-14 09:54:11
Twig
Spb9118002, 2019-01-14 09:54:11

How to get Email from OpenCart3 TWIG store settings?

There are a lot of instructions on the Internet to output Email to tpl files of the old OpenCart, but in version 3 of php in TWIG it doesn’t work, so I don’t understand how to display email from the store settings in Opencart, I wrote {{ email }}, it doesn’t help, although I brought out the phone exactly like this {{ .telephone }}. I'm waiting for an answer, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spb9118002, 2019-01-14
@Spb9118002

I solved the issue myself, in short, we go into the controller at - /public_html/catalog/controller/common. Open footer, header or whatever you need, and paste this code there - $data['email'] = $this->config->get('config_email');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question