T
T
Temur Begiev2015-04-14 20:31:42
opencart
Temur Begiev, 2015-04-14 20:31:42

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?
jjnHiF6wjew.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
opencart-russia, 2015-06-14
@temurbegiev

in the desired controller

$data['config_owner'] = $this->config->get('config_owner');

N
Nefrick, 2017-05-24
@Nefrick

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 question

Ask a Question

731 491 924 answers to any question