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

nash

Users
  
  • Posts

    421
  • Joined

  • Last visited

1 Follower

Technical support

  • Works Day
    Пн
    Вт
    Ср
    Чт
    Пт
  • Holidays
    Сб
    Вс
  • Status
    Работаю

Information

  • Gender
    Мужчина
  • City:
    Мюнхен

Recent Profile Visitors

10,699 profile views

nash's Achievements

Proficient

Proficient (10/14)

  • Dedicated Rare
  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done

Recent Badges

10

Reputation

  1. Подскажите, пожалуйста, как работает двусторонний обмен заказами в данном модуле. Модуль стоит на опенкарт 3. по каким данным синхронизируются заказы, если гуид заказов нигде не фигурирует? Файл от 1с с заказом приходит.
  2. почему-то выгружаются все товары из категории
  3. @SooR подскажите, пожалуйста, как получить отфильтрованный массив товаров? Делаю со страницы категории экспорт товаров в PDF формат. Раньше делал так, а как сейчас в новой версии, не понимаю if ($category_info) { // OCFilter start if (isset($this->request->get['filter_ocfilter'])) { $filter_ocfilter = $this->request->get['filter_ocfilter']; } else { $filter_ocfilter = ''; } // OCFilter end if (isset($this->request->get['filter'])) { $filter = $this->request->get['filter']; } else { $filter = ''; } if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.sort_order'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'ASC'; } if (isset($this->request->get['page'])) { $page = $this->request->get['page']; } else { $page = 1; } if (isset($this->request->get['limit'])) { $limit = (int)$this->request->get['limit']; } else { $limit = $this->config->get($this->config->get('config_theme') . '_product_limit'); } require('system/library/mpdf/mpdf.php'); $data['heading_title'] = $category_info['name']; $data['text_refine'] = $this->language->get('text_refine'); $data['text_empty'] = $this->language->get('text_empty'); $data['text_quantity'] = $this->language->get('text_quantity'); $data['text_manufacturer'] = $this->language->get('text_manufacturer'); $data['text_model'] = $this->language->get('text_model'); $data['text_price'] = $this->language->get('text_price'); $data['products'] = array(); $filter_data = array( 'filter_category_id' => $category_id, 'filter_filter' => $filter, 'sort' => $sort, 'order' => $order, 'start' => ($page - 1) * $limit, 'limit' => 10000 ); // OCFilter start $filter_data['filter_ocfilter'] = $filter_ocfilter; // OCFilter end $product_total = $this->model_catalog_product->getTotalProducts($filter_data); $results = $this->model_catalog_product->getProducts($filter_data); foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_product_width'), $this->config->get($this->config->get('config_theme') . '_image_product_height')); } else { $image = $this->model_tool_image->resize('placeholder.png', $this->config->get($this->config->get('config_theme') . '_image_product_width'), $this->config->get($this->config->get('config_theme') . '_image_product_height')); } if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) { $price = $result['price']; } else { $price = false; } if ((float)$result['special']) { $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $special = false; } $data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'model' => $result['model'], 'collection' => $result['collection'], 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), 'price' => (int)$price . ' руб', 'special' => $special, 'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url) ); } // $template = 'product/category'; //$this->load->library('mpdf/mpdf'); $headerHTML = ' <div style="float: left; width: 340px; text-align: left"> <a target="_blank" href="' . HTTPS_SERVER . '"><img style="max-width:100%;max-height:180px" src="/image/'.$this->config->get('config_logo').'" /></a> </div> <div style="float: right; width: 340px; text-align: right; color: #808180"> ' . nl2br($this->config->get('config_address')) . '<br/> ' . $this->config->get('config_telephone') . '<br/> ' . $this->config->get('config_email') . '<br/> <a style="color:blue; text-decoration:none;" target="_blank" href="' . HTTPS_SERVER . '">' . HTTPS_SERVER . '</a> </div> <div class="clear"></div> <hr> '; //print_r($this->config); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/price_to_pdf.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/price_to_pdf.tpl'; } else { $this->template = 'default/template/product/price_to_pdf.tpl'; } $today = date("d.m.Y"); $mpdf = new mPDF('utf-8', 'A4', 7, 'Helvetica', 20, 5, 35, 5); $mpdf->name = $category_info['name'] . '.pdf'; $mpdf->SetHTMLHeader($headerHTML); $mpdf->WriteHTML($this->load->view('product/price_to_pdf.tpl', $data)); $mpdf->Output('Прайс_' . $today . '.pdf', 'D'); }
  4. а фильтр по цене с главной страницы не работает?
  5. <Предложение> <Ид>a4de4d29-5bca-11ea-85b7-00155d010302#cf8a8d45-52f1-11ea-8459-38d54716e418</Ид> <Артикул>1439299300</Артикул> <Наименование>ШИНЫ 215/55 R-17 Cordiant Snow Cross 98T ш (Новый)</Наименование> <БазоваяЕдиница Код="796 " НаименованиеПолное="Штука" МеждународноеСокращение="PCE"> <Пересчет> <Единица>796</Единица> <Коэффициент>1</Коэффициент> </Пересчет> </БазоваяЕдиница> <Цены> <Цена> <Представление> 6 840 RUB за PCE</Представление> <ИдТипаЦены>5a04b1b7-df3b-11ed-8f29-309c23823e7f</ИдТипаЦены> <ЦенаЗаЕдиницу>6840</ЦенаЗаЕдиницу> <Валюта>RUB</Валюта> <Единица>PCE</Единица> <Коэффициент>1</Коэффициент> </Цена> </Цены> <Количество>4</Количество> <Склад ИдСклада="9429b9d0-d0d7-11ea-906f-00155d010302" КоличествоНаСкладе="4"/> </Предложение> не парсятся остатки из-за вот этого, хотя в коде разбивка идет по #: <Ид>a4de4d29-5bca-11ea-85b7-00155d010302#cf8a8d45-52f1-11ea-8459-38d54716e418</Ид> удаляю вторую часть ИДэшника и загружаю в ручном режиме, все остатки и цены проставляются нормально. Как победить этот косяк?
  6. А как сделать, чтобы цены в админке были в долларах, а на сайт, при первом заходе пользователя, ставились рубли, а потом при переключении, если ему надо, он переключал валюты?
  7. с php это вряд ли связано. На 7.3 у меня работает и соединяется. Сайт с https? как версия модуля у вас?
  8. много обращений будет к серверу) я делал себе по хэшу, но мне сказали, что так не надо..)
  9. @Kirillove не подскажите как это считается? и с чем может быть связана ошибка? Читал в теме, что якобы статусы не назначены... но в настройках все настроено. Версия 1.6.4.8
  10. Есть много сайтов, собранные на одной и той же сборке, с одними и теми же модулями. Но на одном из сайтов при выводе модуля на любой схеме ИМ вылезает ошибка 502. Написал хостеру, они мне говорят: "В ходе проверки нами было выяснено, что наблюдается проблема в коде проекта, у вас циклически вызывается следующее: ModelExtensionModuleMenu->getPath в catalog/model/extension/module/Menu.php " [0x7fffdf1a3280] ModelExtensionModuleMenu->getCategories(171, "by_id") /home/m/mrven/oc23/public_html/catalog/model/extension/module/Menu.php:21 [0x7fffdf1a3200] ModelExtensionModuleMenu->getCategory("171") /home/m/mrven/oc23/public_html/catalog/model/extension/module/Menu.php:4 [0x7fffdf1a30b0] ModelExtensionModuleMenu->getPath("171") /home/m/mrven/oc23/public_html/catalog/model/extension/module/Menu.php:99 [0x7fffdf1a2f60] ModelExtensionModuleMenu->getPath("172") /home/m/mrven/oc23/public_html/catalog/model/extension/module/Menu.php:105 как поправить этот косяк? menu.php
  11. судя по скрину, у вас либо в контроллере прописан фактический размер ресайза, либо в настройках
×
×
  • 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.