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

anruzh67

Newbie
  
  • Posts

    27
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

anruzh67's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Всем здравствуйте. В карточке товара почему то незарегистрированный пользователь может видеть цену товара в сериях. Это проявляется только на мобильных устройствах. Шаблон Unishop2. Где ошибка в шаблоне или в сериях?
  2. Извините я отлучаюсь. Пока буду автора донимать. Еще раз всем спасибо.
  3. Здравстуйте. Подскажите что могло произойти. При попытке редактирования личной информации (account/edit) выдает ошибку Fatal error: Call to a member function getCustomer() on null in /var/www/u0925585/data/ocartdata/storage/modification/catalog/controller/account/edit.php on line 87.
  4. Да дело в этом модификаторе. Пойду в другую ветку. Всем спасибо.
  5. или там же <file path="catalog/controller/account/edit.php"> <operation> <search trim="true"><![CDATA[if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {]]></search> <add position="before"><![CDATA[$this->load->model('account/customer'); $telephone = preg_replace('/[^0-9]/','',$this->request->post['telephone']); $telephone = preg_replace('/^(7|8)([0-9]{10})$/','7$2',$telephone); $telephone = preg_replace('/^(380)([0-9]{9})$/','380$2',$telephone); if(!preg_match('/^(7)([0-9]{10})$/',$telephone) && !preg_match('/^(380)([0-9]{9})$/',$telephone)){ $telephone = ''; } if (!$telephone) { $this->error['telephone'] = 'Неверный формат номера!'; } $customer_info = $this->model_account_customer->getCustomer($this->customer->getId()); if($this->model_account_customer->getLoginTele($telephone) && $telephone!=$customer_info['telephone']){ $this->error['telephone'] = 'Такой номер уже зарегистрирован!'; } ]]></add> </operation> </file>
  6. <file path="catalog/controller/account/edit.php"> <operation> <search trim="true"><![CDATA[$this->load->model('account/customer');]]></search> <add position="replace"><![CDATA[]]></add> </operation> <operation> <search ><![CDATA[if ($this->request->server['REQUEST_METHOD'] == 'POST' && isset($this->request->post['submitted']) && $this->validate()) {]]></search> <add position="replace"><![CDATA[ $this->load->model('account/customer'); if(isset($this->request->post['edit']['telephone'])){ $telephone = preg_replace('/[^0-9]/','',$this->request->post['edit']['telephone']); $telephone = preg_replace('/^(7|8)([0-9]{10})$/','7$2',$telephone); $telephone = preg_replace('/^(380)([0-9]{9})$/','380$2',$telephone); if(!preg_match('/^(7)([0-9]{10})$/',$telephone) && !preg_match('/^(380)([0-9]{9})$/',$telephone)){ $telephone = ''; } if (!$telephone) { $this->_templateData['phone_error'] = 'Неверный формат номера!'; } }else{ $telephone = ''; } $customer_info = $this->model_account_customer->getCustomer($this->customer->getId()); if($this->model_account_customer->getLoginTele($telephone) && $telephone!=$customer_info['telephone']){ $this->_templateData['phone_error'] = 'Такой номер уже зарегистрирован!'; } if ($this->request->server['REQUEST_METHOD'] == 'POST' && isset($this->request->post['submitted']) && $this->validate() && !isset($this->_templateData['phone_error'])) { $this->request->post['edit']['telephone'] = $telephone; $this->session->data['simple']['edit']['telephone'] = $telephone; ]]></add> </operation> </file> Может здесь что не так. Это модуль регистрации по номеру телефона.
  7. <?php class ControllerAccountEdit extends Controller { private $error = array(); public function index() { if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/edit', '', true); $this->response->redirect($this->url->link('account/login', '', true)); } $this->load->language('account/edit'); $this->document->setTitle($this->language->get('heading_title')); $this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js'); $this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js'); $this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js'); $this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css'); $this->load->model('account/customer'); Он в начале.
  8. ИД пользователя или клиента? в базе эти значения не нулевые.
×
×
  • 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.