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

Knight999666

Newbie
  
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

1,152 profile views

Knight999666's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Вот тут нашел подробную статью, может пригодиться кому-то http://napositive.com.ua/ubiraem-nenuzhnye-shagi-oformleniya-zakaza-ili-bystryj-zakaz-opencart/
  2. Добрый день. Вроде все делал по инструкции. Захожу в Продажи->Заказы пишет: Notice: Undefined variable: webme_review_reminder_order_status_id in /home/MYSite/www/admin/view/template/sale/order_list.tpl on line 102 Notice: Undefined variable: webme_review_reminder_order_status_id in /home/MYSite/www/admin/view/template/sale/order_list.tpl on line 102 ________ UPD: Все работает, извините )
  3. Добрый день! После внедрения фрилансером отчетов google analytics заметил такую ошибку: 1) Если добавить в корзину товар 
2) выбрать оформление товара без регистрации 
3) ввести все данные (номер, имя, фамилию и.т.д.) 4) и не нажать финальную кнопку "офорить заказ", а вернуться назад на сайт Происходит очень примечательный баг. Теперь если добавить любой товар в корзину, и нажать к "Заказу" магазин пишет "Ваша корзина пуста!" Помогает только сброс кешей. Восстанавливая по очереди файлы из резервной копии нашел что ошибка вот в этом коде в файле: www/catalog/controller/common/header.php if ( isset($this->session->data['order_id']) && ( ! empty($this->session->data['order_id'])) ) {$this->session->data['ga_order_id'] = $this->session->data['order_id']; } $this->data['save_ga'] = 0; if (isset($this->session->data['ga_order_id'])) { $this->data['order_info'] = array(); $this->data['products'] = array(); $this->load->model('checkout/order'); $order_info = $this->model_checkout_order->getOrder($this->session->data['ga_order_id']); if ($order_info) { $this->data['order_info'] = $order_info; $this->data['save_ga'] = 1; $this->data['transaction_id'] = date("Y.m.d", time()) . '-' . $order_info['order_id']; $this->data['store_name'] = $this->config->get('config_url'); $this->data['total'] = $this->currency->format($order_info['total'], '', '', FALSE); $this->data['city'] = (empty($order_info['payment_city'])) ? 'Kiev' : $order_info['payment_city']; $this->data['zone'] = (empty($order_info['payment_zone'])) ? 'Kiev' : $order_info['payment_zone']; $this->data['country'] = (empty($order_info['payment_country'])) ? '”краина' : $order_info['payment_country']; $products = $this->cart->getProducts(); foreach ($products as $product) { $this->data['products'][] = array( 'key' => $product['key'], 'name' => $product['name'], 'model' => $product['model'], 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'], '', '', FALSE), ); } } $this->cart->clear(); } unset($this->session->data['ga_order_id']); Я так понимаю что это код формирует переменые для записи в гугл аналитику Вопрос: кто может помочь переделать код чтобы он и передавал данные в гугл аналитику, и не вызывал такой досадной ошибки?
×
×
  • 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.