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

MatrixIT

Users
  • Posts

    52
  • Joined

  • Last visited

Everything posted by MatrixIT

  1. Скачать / Купить дополнение Лента RSS последних товаров RSS Feed v1.26 Модуль похож на RSS лента Последних поступлений 1, но переделан и дополнен. Теперь модуль проходит валидацию на feedvalidator.org Данный модуль выводит в RSS ленту "Последние поступления". В настройках устанавливается лимит на товар для вывода в ленту, выгружать или нет изображения, показывать ли цену. демо: http://feeds.feedburner.com/losini Совместимость: Opencart v1.5.6.x OcStore v1.0.1, OcStore v1.5.5.x Работает на OpenCart 1.5 - 1.5.6.4 Примечание: Известная проблема Opencart и OcStore, когда URL картинок может быть с пробелами, что не даст пройти валидацию и будет мешать экспорту. Решение: В файле catalog/model/tool/image.php найти строки: $image_path = explode ('/', trim(DIR_IMAGE, '/')); $image_folder = end($image_path); if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return $this->config->get('config_ssl') . $image_folder . '/' . $new_image; } else { return $this->config->get('config_url') . $image_folder . '/' . $new_image; и заменить на эти: $parts = explode('/', $new_image); $new_image = implode('/', array_map('rawurlencode', $parts)); if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return $this->config->get('config_ssl') . 'image/' . $new_image; } else { return $this->config->get('config_url') . 'image/' . $new_image; Добавил MatrixIT Добавлено 01.03.2016 Категория Прочее  
  2. Version 1.26

    203 downloads

    RSS Feed v1.26 Модуль похож на RSS лента Последних поступлений 1, но переделан и дополнен. Теперь модуль проходит валидацию на feedvalidator.org Данный модуль выводит в RSS ленту "Последние поступления". В настройках устанавливается лимит на товар для вывода в ленту, выгружать или нет изображения, показывать ли цену. демо: http://feeds.feedburner.com/losini Совместимость: Opencart v1.5.6.x OcStore v1.0.1, OcStore v1.5.5.x Работает на OpenCart 1.5 - 1.5.6.4 Примечание: Известная проблема Opencart и OcStore, когда URL картинок может быть с пробелами, что не даст пройти валидацию и будет мешать экспорту. Решение: В файле catalog/model/tool/image.php найти строки: $image_path = explode ('/', trim(DIR_IMAGE, '/')); $image_folder = end($image_path); if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return $this->config->get('config_ssl') . $image_folder . '/' . $new_image; } else { return $this->config->get('config_url') . $image_folder . '/' . $new_image; и заменить на эти: $parts = explode('/', $new_image); $new_image = implode('/', array_map('rawurlencode', $parts)); if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return $this->config->get('config_ssl') . 'image/' . $new_image; } else { return $this->config->get('config_url') . 'image/' . $new_image;
    Free
  3. Вот мой контроллер новостей: <?php class ControllerModuleNews extends Controller { private $_name = 'news'; protected function index($setting) { static $module = 0; $this->language->load('module/' . $this->_name); $this->data['heading_title'] = $this->language->get('heading_title'); $this->document->addStyle('catalog/view/theme/sstore/style/news.css'); $this->data['customtitle'] = $this->config->get($this->_name . '_customtitle' . $this->config->get('config_language_id')); $this->data['header'] = $this->config->get($this->_name . '_header'); if (!$this->data['customtitle']) { $this->data['customtitle'] = $this->data['heading_title']; } if (!$this->data['header']) { $this->data['customtitle'] = ''; } $this->data['icon'] = $this->config->get($this->_name . '_icon'); $this->data['box'] = $this->config->get($this->_name . '_box'); $this->data['text_more'] = $this->language->get('text_more'); $this->data['text_posted'] = $this->language->get('text_posted'); $this->data['buttonlist'] = $this->language->get('buttonlist'); $this->load->model('catalog/news'); $this->load->model('tool/image'); $this->data['news_count'] = $this->model_catalog_news->getTotalNews(); $this->data['news_limit'] = $setting['limit']; if ($this->data['news_count'] > $this->data['news_limit']) { $this->data['showbutton'] = true; } else { $this->data['showbutton'] = false; } $this->data['newslist'] = $this->url->link('information/news'); $this->data['show_headline'] = $this->config->get($this->_name . '_headline_module'); $this->data['numchars'] = $setting['numchars']; if (isset($this->data['numchars'])) { $chars = $this->data['numchars']; } else { $chars = 100; } $this->data['news'] = array(); $results = $this->model_catalog_news->getNewsShort($setting['limit']); foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], 230, 205); } else { $image = false; } $news_length = strlen(utf8_decode($result['description'])); if ($news_length > $chars) { $description = strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')); $description = substr($description, 0, $chars); $description = rtrim($description, "!,.-"); $description = substr($description, 0, strrpos($description, ' ')); $description .= "..."; } else { $description = html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'); } $this->data['news'][] = array( 'title' => $result['title'], 'image' => $image, 'description' => $description, 'href' => $this->url->link('information/news', 'news_id=' . $result['news_id']), 'posted' => date($this->language->get('date_format_short'), strtotime($result['date_added'])) ); } $this->data['module'] = $module++; // Template $this->data['template'] = $this->config->get('config_template'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/' . $this->_name . '.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/' . $this->_name . '.tpl'; } else { $this->template = 'default/template/module/' . $this->_name . '.tpl'; } $this->render(); } } ?>
  4. Можете подсказать в какой файл и после какой строки сделали эту вставку?
  5. Вот сайт: http://sailfish.com.ua/ Сделал всё по инструкции как на видео, отсюда: http://opencartadmin.com/youtube/ustanovka-modulja-occms-versii-5-dlja-opencart.html Но на сайте ничего не изменилось, модуль отзывы остался таким же как и был на сайте. Что я сделал не так и как это исправить?
  6. Оригинальный подход, купить самый дорогой модуль в серии и дополнительно докупить к нему инструкцию.. Пытался вывести отзывы к товарам с помощью модуля следуя первоначальной инструкции - Fail Создал категорию Новости, в записи добавил статью. Как вывести Новости на сайте? Сайт: http://sailfish.com.ua/
  7. Сделал всё по инструкции, но на сайте изменений не видно. Подскажите есть ли детальная инструкция по данному плагину?
  8. Доброе время суток, вроде сделал всё по инструкции, но на сайте вообще ничего не изменилось. Тема используется нестандартная. Где можно ознакомиться с полной инструкцией?
  9. Здравсвуйте, сегодня купил здесь модуль, установил его, а он пишет: Установленная версия модуля: 19.1 Последняя версия модуля: 19.4 (21-08-2015) Рекомендуется: обновите модуль до последней версии Где мне скачать обновление?
  10. Фильтр отличный всё работает. Но столкнулся с тремя проблемками. 1) Warning: mysql_query() [function.mysql-query]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /home/kharko05/vkraini.com/infant/admin/model/catalog/coolfilter.php on line 219Warning: mysql_query() [function.mysql-query]: No such file or directory in /home/kharko05/vkraini.com/infant/admin/model/catalog/coolfilter.php on line 219Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in/home/kharko05/vkraini.com/infant/admin/model/catalog/coolfilter.php on line 219Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/kharko05/vkraini.com/infant/admin/model/catalog/coolfilter.php on line219 2) Цены снизу налипли друг на друга, может их лучше вообще убрать. И как? 3) Сортировка списка идёт не так как задано в сортировке. Заголовки "Возраст" и "Цвет" разные один не выделен, а другой выделен.
×
×
  • 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.