Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

beeper

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

910 profile views

beeper's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Вопрос в следующем: требуется установить модуль отправки SMS, в некоторые файлы нужно вручную внести изменения. Как это "грамматически" правильно сделать? К примеру, в файлe controller.php нужно в строку public function __construct($registry) { $this->registry = $registry; } добавить <operation> <search position="before"> <![CDATA[public function __construct($registry) {]]> </search> <add> <![CDATA[ ## AlphaSms.ua [bEGIN] protected function alphasms_net_init(){ # Load language $this->load->language('module/alphasms_net'); $this->registry->set('alphasms_net_logger', new Log('alphasms_net.log')); if ($this->config->get('alphasms_net_login') && $this->config->get('alphasms_net_password') && file_exists(DIR_SYSTEM . 'library/alphasms_net_gateway.php')){ # Load VipSMS.net library require_once(DIR_SYSTEM . 'library/alphasms_net_gateway.php'); $gateway = new AlphaSmsNetGateway( $this->config->get('alphasms_net_login'), $this->config->get('alphasms_net_password') ); # Set sign $alphasms_net_sign = $this->config->get('alphasms_net_sign'); $gateway->setSign($alphasms_net_sign); # Add to global registry $this->registry->set('alphasms_net_gateway', $gateway); return true; } } ## AlphaSms.ua [END] ]]> </add> Как эта строка должна в итоге выглядеть? Заранее спасибо! Файлы для примера прилагаю Также файлы для правки system/engine/controller.php admin/model/sale/order.php catalog/controller/information/contact.php catalog/controller/account/quickregister.php catalog/controller/account/register.php catalog/controller/checkout/register.php catalog/controller/checkout/simplecheckout.php catalog/controller/checkout/success.php admin/controller/sale/order.php alphasms_net.xml controller.php
×
×
  • 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.