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

Mihlutka

Новичок
  
  • Posts

    3
  • Joined

  • Last visited

Mihlutka's Achievements

Newbie

Newbie (1/14)

  • One Year In
  • First Post
  • Week One Done
  • One Month Later
  • Reacting Well Rare

Recent Badges

1

Reputation

    Отличный модуль!!! Сайт очень тормозил на мобильной версии, сейчас все леиет! Рекомендую однозначно!
  1. <?xml version="1.0" encoding="utf-8"?> <modification> <name>Дополнительные телефоны магазинов</name> <code>additional-phones</code> <version>1.0</version> <author>maksimist</author> <link></link> <file path="admin/controller/setting/setting.php"> <operation> <search><![CDATA[if (isset($this->request->post['config_fax'])) {]]></search> <add position="before" offset="1"> <![CDATA[ /*additional-phones*/ if (isset($this->request->post['config_telephone2'])) { $data['config_telephone2'] = $this->request->post['config_telephone2']; } else { $data['config_telephone2'] = $this->config->get('config_telephone2'); } if (isset($this->request->post['config_telephone3'])) { $data['config_telephone3'] = $this->request->post['config_telephone3']; } else { $data['config_telephone3'] = $this->config->get('config_telephone3'); } /*additional-phones*/]]> </add> </operation> </file> <file path="admin/view/template/setting/setting.twig"> <operation> <search><![CDATA[<label class="col-sm-2 control-label" for="input-fax">{{ entry_fax }}</label>]]></search> <add position="before" offset="1"> <![CDATA[ <!--additional-phones--> <div class="form-group"> <label class="col-sm-2 control-label" for="input-telephone2">{{ entry_telephone }} 2</label> <div class="col-sm-10"> <input type="text" name="config_telephone2" value="{{ config_telephone2 }}" placeholder="{{ entry_telephone }} 2" id="input-telephone2" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-telephone3">{{ entry_telephone }} 3</label> <div class="col-sm-10"> <input type="text" name="config_telephone3" value="{{ config_telephone3 }}" placeholder="{{ entry_telephone }} 3" id="input-telephone3" class="form-control" /> </div> </div> <!--additional-phones-->]]> </add> </operation> </file> <file path="catalog/controller/common/header.php"> <operation error="log"> <search><![CDATA[$data['telephone'] = $this->config->get('config_telephone');]]></search> <add position="after"> <![CDATA[ /*additional-phones*/ $data['telephone2'] = $this->config->get('config_telephone2'); $data['telephone3'] = $this->config->get('config_telephone3'); /*additional-phones*/]]> </add> </operation> </file> <file path="catalog/view/theme/*/template/common/header.twig"> <operation error="log"> <search><![CDATA[<li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>]]></search> <add position="replace"> <![CDATA[ <!--additional-phones--> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-phone"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <?php if($telephone2) { ?> <li><a href="tel:<?php echo $telephone2; ?>"><?php echo $telephone2; ?></a></li> <?php } ?> <?php if($telephone3) { ?> <li><a href="tel:<?php echo $telephone3; ?>"><?php echo $telephone3; ?></a></li> <?php } ?> <?php if($telephone4) { ?> <li><a href="tel:<?php echo $telephone4; ?>"><?php echo $telephone4; ?></a></li> <?php } ?> </ul> </li> <!--additional-phones--> ]]> </add> </operation> </file> <file path="catalog/controller/information/contact.php"> <operation error="log"> <search><![CDATA[$data['telephone'] = $this->config->get('config_telephone');]]></search> <add position="after"> <![CDATA[ /*additional-phones*/ $data['telephone2'] = $this->config->get('config_telephone2'); $data['telephone3'] = $this->config->get('config_telephone3'); /*additional-phones*/]]> </add> </operation> </file> <file path="catalog/view/theme/*/template/information/contact.twig"> <operation error="log"> <search><![CDATA[<a href="tel:{{ telephone_tel }}" class="text-muted">{{ telephone }}</a></p>]]></search> <add position="replace"> <![CDATA[ <a href="tel:{{ telephone_tel }}" class="text-muted">{{ telephone }}</a><br /> <!--additional-phones--> <a href="tel:{{ telephone2 }}" class="text-muted">{{ telephone2 }}</a><br /> <a href="tel:{{ telephone3 }}" class="text-muted">{{ telephone3 }}</a></p> <!--additional-phones-->]]> </add> </operation> </file> </modification> Усиновил ваш мод, дополнительные телефоны появились в админке, но на сайте ничего не меняется....в чем проблема? может есть мысли?
×
×
  • 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.