Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Помогите с написанием xml к vqmod


m4gz
 Share

Recommended Posts

Хочу для своего модуля добавления телефона в шапку сгделать чтобы стиль номера можно было указывать на страничке в настройки -> общие рядом с телефоном, подскажите что нужно добавить чтобы для этого?

<modification>
	<id><![CDATA[Phone in the Header]]></id>
	<version><![CDATA[0.1]]></version>
	<vqmver><![CDATA[2.4.1]]></vqmver>
	<author><![CDATA[m4gz]]></author>
	<file name="catalog/controller/common/header.php">
		<operation>
			<search position="after"><![CDATA[$this->data['lang'] = $this->language->get('code');]]></search>
				<add><![CDATA[$this->data['telephone'] = $this->config->get('config_telephone');]]></add>
		</operation>
	</file>
	<file name="catalog/view/theme/*/template/common/header.tpl">
		<operation>
			<search position="after"><![CDATA[<div id="header">]]></search>
				<add><![CDATA[<div style="font-size: 18pt; position: absolute; top: 72px; left:15px;"> <?php echo $telephone; ?> </div> ]]></add>
		</operation>
	</file>	
</modification>

Проблема в том как в базе данных добавить новую строчку, а как выводить я в принципе понял.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.