Answer the question
In order to leave comments, you need to log in
How to display data from the "Shop Owner" field on the site in Opencart?
How to display data from the "Shop Owner" field on the site in Opencart?
Answer the question
In order to leave comments, you need to log in
in the desired controller
$data['config_owner'] = $this->config->get('config_owner');
You can't work directly with the kernel. You need to use modifiers.
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>footerphone</code>
<name>Footer Phone</name>
<version>1.0</version>
<author>WebApe</author>
<link>http://webape.ru</link>
<file path="catalog/controller/common/footer.php">
<operation>
<search><![CDATA[
$data['newsletter'] = $this->url->link('account/newsletter', '', true);
]]></search>
<add position="after"><![CDATA[
$data['telephone'] = $this->config->get('config_telephone');
]]></add>
</operation>
</file>
</modification>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question