Skip to content

Instantly share code, notes, and snippets.

@proweb
Created December 20, 2016 15:34
Show Gist options
  • Save proweb/1baa654088aabc2e8cafc1e6a68a1acb to your computer and use it in GitHub Desktop.
Save proweb/1baa654088aabc2e8cafc1e6a68a1acb to your computer and use it in GitHub Desktop.
Модифицируем заголовок модуля Рекомендуемые (Featured) в Opencart. Заголовок берется из настроек самого модуля
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Featured module name replace</name>
<code>featuredmodulenamebyagatha65</code>
<version>1.0</version>
<author>agatha65.com</author>
<link>http://agatha65.com/services/opencart-extensions</link>
<file path="catalog/controller/extension/module/featured.php">
<operation>
<search><![CDATA[
$data['heading_title'] = $this->language->get('heading_title');
]]></search>
<add position="replace"><![CDATA[
$data['heading_title'] = $setting['name'];
]]></add>
</operation>
</file>
</modification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment