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

Fedka

Users

Everything posted by Fedka

  1. Вы этот файл правили?
  2. Вот так вот: // Action Events $_['action_event'] = array( 'controller/*/before' => array( 'event/language/before' ), 'controller/*/after' => array( 'event/language/after' ), 'view/*/before' => array( 500 => 'event/theme/override', 998 => 'event/language', 1000 => 'event/theme' ), 'language/*/after' => array( 'event/translation' ), //'view/*/before' => array( // 1000 => 'event/debug/before' //), 'controller/*/after' => array( 0=>'event/language/after', 1=>'event/debug/after' ) );
  3. system/config/catalog.php Ищем 'event/debug/after' Меняем 0=>'event/language/after', 1=>'event/debug/after'
  4. Можно я тогда его выложу) lang_fix.ocmod.xml
  5. Кэш модификаторов обновили?
  6. А Вы эти файлы не удалили?
  7. Это бок локализации у @chukcha есть модификатор для этого решения. По этому поводу, добро пожаловать в личку.
  8. Думаю поможет
  9. А не проще устранить ошибку, если Вы уже знаете какой модуль конфликтует?
  10. Можете попробовать по очередности отключать вывод модулей на главной. Если дело в каком-то модуле, тогда должна открываться главная.
  11. Кэш модификаторов обновляли после переименования языковых папок?
  12. Обновление шаблона не делали? Может адоптация какого-то модуля слетела. Не открывается только главная? Страница категории, товара открываются?
  13. Посмотрите логи сервера. Там все будет написано. Можно ещё включить отображение ошибок, тоже поможет А так только гадать. Возможно место закончилось и кэш не создаётся. Может модуль поставили какой-то и т.д.
  14. Удаляем таблицы: DROP TABLE IF EXISTS `oc_blog_category`; DROP TABLE IF EXISTS `oc_blog_category_description`; DROP TABLE IF EXISTS `oc_blog_category_to_layout`; DROP TABLE IF EXISTS `oc_blog_category_to_store`; DROP TABLE IF EXISTS `oc_blog_category_path`; DROP TABLE IF EXISTS `oc_article_to_blog_category`; DROP TABLE IF EXISTS `oc_article`; DROP TABLE IF EXISTS `oc_article_description`; DROP TABLE IF EXISTS `oc_article_image`; DROP TABLE IF EXISTS `oc_article_related`; DROP TABLE IF EXISTS `oc_article_related_mn`; DROP TABLE IF EXISTS `oc_article_related_product`; DROP TABLE IF EXISTS `oc_product_related_article`; DROP TABLE IF EXISTS `oc_article_related_wb`; DROP TABLE IF EXISTS `oc_article_to_download`; DROP TABLE IF EXISTS `oc_article_to_layout`; DROP TABLE IF EXISTS `oc_article_to_store`; DROP TABLE IF EXISTS `oc_review_article`; где oc_ - префикс в таблице Удаляем файлы: admin/controller/blog - всю папку admin/controller/extension/module/blog_category.php admin/controller/extension/module/blog_featured.php admin/controller/extension/module/blog_latest.php admin/language/*/blog - всю папку admin/language/*/extension/module/blog_category.php admin/language/*/extension/module/blog_featured.php admin/language/*/extension/module/blog_latest.php admin/mode/blog - всю папку admin/view/template/blog - всю папку admin/view/template/extension/module/blog_category.twig admin/view/template/extension/module/blog_featured.twig admin/view/template/extension/module/blog_latest.twig catalog/controller/blog - всю папку catalog/controller/extension/module/blog_category.php catalog/controller/extension/module/blog_featured.php catalog/controller/extension/module/featured_article.php catalog/controller/extension/module/blog_latest.php catalog/language/*/blog - всю папку catalog/language/*/extension/module/blog_category.php catalog/language/*/extension/module/blog_featured.php catalog/language/*/extension/module/blog_latest.php catalog/mode/blog - всю папку catalog/view/template/blog - всю папку catalog/view/template/extension/module/blog_category.twig catalog/view/template/extension/module/blog_featured.twig catalog/view/template/extension/module/blog_latest.twig В коде удаляем: admin/controller/catalog/product.php Удалить: if (isset($this->request->post['product_related_article'])) { $articles = $this->request->post['product_related_article']; } elseif (isset($product_info)) { $articles = $this->model_catalog_product->getArticleRelated($this->request->get['product_id']); } else { $articles = array(); } $data['product_related_article'] = array(); $this->load->model('blog/article'); foreach ($articles as $article_id) { $article_info = $this->model_blog_article->getArticle($article_id); if ($article_info) { $data['product_related_article'][] = array( 'article_id' => $article_info['article_id'], 'name' => $article_info['name'] ); } } admin/controller/catalog/category.php Удалем: if (isset($this->request->post['article_related'])) { $articles = $this->request->post['article_related']; } elseif (isset($category_info)) { $articles = $this->model_catalog_category->getArticleRelated($this->request->get['category_id']); } else { $articles = array(); } $data['article_related'] = array(); $this->load->model('blog/article'); foreach ($articles as $article_id) { $related_info = $this->model_blog_article->getArticle($article_id); if ($related_info) { $data['article_related'][] = array( 'article_id' => $related_info['article_id'], 'name' => $related_info['name'] ); } } dmin/controller/catalog/manufacturer.php Удаляем: if (isset($this->request->post['article_related'])) { $articles = $this->request->post['article_related']; } elseif (isset($manufacturer_info)) { $articles = $this->model_catalog_manufacturer->getArticleRelated($this->request->get['manufacturer_id']); } else { $articles = array(); } $data['article_related'] = array(); $this->load->model('blog/article'); foreach ($articles as $article_id) { $related_info = $this->model_blog_article->getArticle($article_id); if ($related_info) { $data['article_related'][] = array( 'article_id' => $related_info['article_id'], 'name' => $related_info['name'] ); } } admin/controller/common/column_left.php Удаляем // BLOG $blog = array(); if ($this->user->hasPermission('access', 'blog/article')) { $blog[] = array( 'name' => $this->language->get('text_blog_article'), 'href' => $this->url->link('blog/article', 'user_token=' . $this->session->data['user_token'], true), 'children' => array() ); } if ($this->user->hasPermission('access', 'blog/category')) { $blog[] = array( 'name' => $this->language->get('text_blog_category'), 'href' => $this->url->link('blog/category', 'user_token=' . $this->session->data['user_token'], true), 'children' => array() ); } if ($this->user->hasPermission('access', 'blog/review')) { $blog[] = array( 'name' => $this->language->get('text_blog_review'), 'href' => $this->url->link('blog/review', 'user_token=' . $this->session->data['user_token'], true), 'children' => array() ); } if ($this->user->hasPermission('access', 'blog/setting')) { $blog[] = array( 'name' => $this->language->get('text_blog_setting'), 'href' => $this->url->link('blog/setting', 'user_token=' . $this->session->data['user_token'], true), 'children' => array() ); } if ($blog) { $data['menus'][] = array( 'id' => 'menu-blog', 'icon' => 'fa-book', 'name' => $this->language->get('text_blog'), 'href' => '', 'children' => $blog ); } admin/model/catalog/category.php Удаляем: public function getArticleRelated($category_id) { $article_related_data = array(); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "article_related_wb WHERE category_id = '" . (int)$category_id . "'"); foreach ($query->rows as $result) { $article_related_data[] = $result['article_id']; } return $article_related_data; } Там же if (isset($data['article_related'])) { foreach ($data['article_related'] as $related_id) { $this->db->query("INSERT INTO " . DB_PREFIX . "article_related_wb SET category_id = '" . (int)$category_id . "', article_id = '" . (int)$related_id . "'"); } } Там же $this->db->query("DELETE FROM " . DB_PREFIX . "article_related_wb WHERE category_id = '" . (int)$category_id . "'"); if (isset($data['article_related'])) { foreach ($data['article_related'] as $related_id) { $this->db->query("DELETE FROM " . DB_PREFIX . "article_related_wb WHERE category_id = '" . (int)$category_id . "' AND article_id = '" . (int)$related_id . "'"); $this->db->query("INSERT INTO " . DB_PREFIX . "article_related_wb SET category_id = '" . (int)$category_id . "', article_id = '" . (int)$related_id . "'"); } } Там же $this->db->query("DELETE FROM " . DB_PREFIX . "article_related_wb WHERE category_id = '" . (int)$category_id . "'"); Там же public function getCategoryRelated_article($category_id) { $category_related_data = array(); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "article_related_wb WHERE article_id = '" . (int)$article_id . "'"); foreach ($query->rows as $result) { $article_related_data[] = $result['related_id']; } return $article_related_data; } admin/model/catalog/manufacturer.php Удаляем if (isset($data['article_related'])) { foreach ($data['article_related'] as $related_id) { $this->db->query("INSERT INTO " . DB_PREFIX . "article_related_mn SET manufacturer_id = '" . (int)$manufacturer_id . "', article_id = '" . (int)$related_id . "'"); } } Там же $this->db->query("DELETE FROM " . DB_PREFIX . "article_related_mn WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); if (isset($data['article_related'])) { foreach ($data['article_related'] as $related_id) { $this->db->query("DELETE FROM " . DB_PREFIX . "article_related_mn WHERE manufacturer_id = '" . (int)$manufacturer_id . "' AND article_id = '" . (int)$related_id . "'"); $this->db->query("INSERT INTO " . DB_PREFIX . "article_related_mn SET manufacturer_id = '" . (int)$manufacturer_id . "', article_id = '" . (int)$related_id . "'"); } } Там же $this->db->query("DELETE FROM `" . DB_PREFIX . "article_related_mn` WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); Там же public function getArticleRelated($manufacturer_id) { $article_related_data = array(); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "article_related_mn WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); foreach ($query->rows as $result) { $article_related_data[] = $result['article_id']; } return $article_related_data; } admin/model/catalog/product.php Удаляем public function getArticleRelated($product_id) { $article_related_data = array(); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_related_article WHERE product_id = '" . (int)$product_id . "'"); foreach ($query->rows as $result) { $article_related_data[] = $result['article_id']; } return $article_related_data; } Там же if (isset($data['product_related_article'])) { foreach ($data['product_related_article'] as $article_id) { $this->db->query("DELETE FROM " . DB_PREFIX . "product_related_article WHERE product_id = '" . (int)$product_id . "' AND article_id = '" . (int)$article_id . "'"); $this->db->query("INSERT INTO " . DB_PREFIX . "product_related_article SET product_id = '" . (int)$product_id . "', article_id = '" . (int)$article_id . "'"); } } Там же $this->db->query("DELETE FROM " . DB_PREFIX . "product_related_article WHERE product_id = '" . (int)$product_id . "'"); if (isset($data['product_related_article'])) { foreach ($data['product_related_article'] as $article_id) { $this->db->query("DELETE FROM " . DB_PREFIX . "product_related_article WHERE product_id = '" . (int)$product_id . "' AND article_id = '" . (int)$article_id . "'"); $this->db->query("INSERT INTO " . DB_PREFIX . "product_related_article SET product_id = '" . (int)$product_id . "', article_id = '" . (int)$article_id . "'"); } } Там же $data['product_related_article'] = $this->getArticleRelated($product_id); Там же $this->db->query("DELETE FROM " . DB_PREFIX . "product_related_article WHERE product_id = '" . (int)$product_id . "'"); admin/view/template/catalog/category_form.twig Удаляем: <div class="form-group"> <label class="col-sm-2 control-label" for="input-article-related"><span data-toggle="tooltip" title="{{ help_related }}">{{ entry_related_article }}</span></label> <div class="col-sm-10"> <input type="text" name="article_related_input" value="" placeholder="{{ entry_related_article }}" id="input-article-related" class="form-control" /> <div id="article-related" class="well well-sm" style="height: 150px; overflow: auto;"> {% for article_related in article_related %} <div id="article-related{{ article_related.article_id }}"><i class="fa fa-minus-circle"></i> {{ article_related.name }} <input type="hidden" name="article_related[]" value="{{ article_related.article_id }}" /> </div> {% endfor %}</div> </div> </div> Там же <script type="text/javascript"><!-- $('input[name=\'article_related_input\']').autocomplete({ source: function(request, response) { $.ajax({ url: 'index.php?route=blog/article/autocomplete&user_token={{ user_token }}&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['article_id'] } })); } }); }, select: function(item) { $('input[name=\'product\']').val(''); $('#article-related' + item['value']).remove(); $('#article-related').append('<div id="article-related' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="article_related[]" value="' + item['value'] + '" /></div>'); } }); $('#article-related').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); //--></script> admin/view/template/catalog/manufacturer_form.twig Удаляем <div class="form-group"> <label class="col-sm-2 control-label" for="input-article-related"><span data-toggle="tooltip" title="{{ help_related }}">{{ entry_related_article }}</span></label> <div class="col-sm-10"> <input type="text" name="article_related_input" value="" placeholder="{{ entry_related_article }}" id="input-article-related" class="form-control" /> <div id="article-related" class="well well-sm" style="height: 150px; overflow: auto;"> {% for article_related in article_related %} <div id="article-related{{ article_related.article_id }}"><i class="fa fa-minus-circle"></i> {{ article_related.name }} <input type="hidden" name="article_related[]" value="{{ article_related.article_id }}" /> </div> {% endfor %}</div> </div> </div> Там же <script type="text/javascript"><!-- $('input[name=\'article_related_input\']').autocomplete({ source: function(request, response) { $.ajax({ url: 'index.php?route=blog/article/autocomplete&user_token={{ user_token }}&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['article_id'] } })); } }); }, select: function(item) { $('input[name=\'product\']').val(''); $('#article-related' + item['value']).remove(); $('#article-related').append('<div id="article-related' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="article_related[]" value="' + item['value'] + '" /></div>'); } }); $('#article-related').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); //--></script> admin/view/template/catalog/product_form.twig Удаляем <div class="form-group"> <label class="col-sm-2 control-label" for="input-related-article"><span data-toggle="tooltip" title="{{ help_related }}">{{ entry_related_article }}</span></label> <div class="col-sm-10"> <input type="text" name="product_related_article_input" value="" placeholder="{{ entry_related_article }}" id="input-related-article" class="form-control" /> <div id="article-related" class="well well-sm" style="height: 150px; overflow: auto;"> {% for product_related_article in product_related_article %} <div id="article-related{{ product_related_article.article_id }}"><i class="fa fa-minus-circle"></i> {{ product_related_article.name }} <input type="hidden" name="product_related_article[]" value="{{ product_related_article.article_id }}" /> </div> {% endfor %}</div> </div> </div> Там же // Related Article $('input[name=\'product_related_article_input\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=blog/article/autocomplete&user_token={{ user_token }}&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['article_id'] } })); } }); }, 'select': function(item) { $('input[name=\'product_related_article\']').val(''); $('#article-related' + item['value']).remove(); $('#article-related').append('<div id="article-related' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="product_related_article[]" value="' + item['value'] + '" /></div>'); } }); $('#article-related').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); Вроде все файлы и части кода описал. Если что-то упустил, дополняйте.
  15. У меня от @toporchillo стоит модуль, не наблюдалось ни каких проблем с ним при работе
  16. Там модификатором дописана эта возможность, видел файл.
  17. Вместо статуса наличия в тул тип вывести нужно название опции. Изменение зависит от того какой модуль тултипов используете. Некоторые берут значения с атрибута title, некоторые добавляют свои атрибуты.
  18. Попросите тех.поддержку хостинга, чтоб они помогли Вам сделать полный бекап и дали Вам возможность скачать архив. И храните где хотите, хоть на телефоне (если место будет позволять)
  19. Можете скинуть файл category.php или какого-то модуля с папки storage/modification Чтоб посмотреть как формируются доп изображения и какие параметры там используются для width и height
  20. Какой у Вас шаблон? Есть какие-то изменения в файле product.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.