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

Leaderboard

Popular Content

Showing content with the highest reputation on 04/29/2018 in Posts

  1. Уважаемые знатоки. Столкнулся с ошибкой при загрузке в гугл вебмастер карты сайта. Ошибка вот такого рода Обнаружена неверная дата. Исправьте дату или ее формат перед повторной передачей. Подскажите кто сталкивался с таким где ее править. Спасибо за ответы! сайт fishtrail.by карта сайта http://fishtrail.by/index.php?route=extension/feed/google_sitemap
    1 point
  2. В таких случаях можно настроить редирект со старых страниц на новые. Но, со всех страниц, наверное, не надо, только со страниц, на которые есть трафик и ссылки. Если трафика нет, то можно забить и заниматься популяризацией сайта.
    1 point
  3. там же написано в настройках новостей, смотрели?
    1 point
  4. Так для главной работает или нет?) О каком модуле идет речь? Нужно больше инф-ии
    1 point
  5. для www укажите другой IP. Но для чего Вам это? Вы же понимаете, к чему это может привести с точки зрения SEO?
    1 point
  6. каталог-> статьи создаете статью статус - включено отображить снизу - ставим галочку
    1 point
  7. Да вот так просто и элегантно 100kb - это интерфейс админ. части установки и настроек модуля
    1 point
  8. Добрый день. Запомните, если я вам делал адаптацию с шаблоном, то вам не желательно перезаписывать файл OCMOD'a так как внесенные изменения утратят силу. Остальные файлы которые относяться к папкам catalog, admin можно перезаписывать. Нет, по-дефолту адаптации с unishop нету. Для того, чтобы она заработала, нужно пойти в ocmod файл и сделать след. действия для замен в "catalog/view/theme/*/template/product/product.tpl".
    1 point
  9. Проблемы с мультиками еще предстоит Чаво не видел.. Основная проблема - это затруднительное управление настройками для каждого магазина Наиболее правильное решение, исходя из небольшого опыта - это настройка магазина и модулей из своей админки т.е. на самом деле админка одна, но заходить в нее нужно из своего домена, тогда можно включать доставки, оплаты, толко для своего домена Надо не забывать, что Сначала применяются настройки - дефолтного магазина, затем сверху на него наезжают настройки домена
    1 point
  10. Сам задал вопрос и сам отвечу. Может кому поможет. Заходим в catalog/controller/extension/feed/google_sitemap.php и правим немного код foreach ($products as $product) { if ($product['image']) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>'; $output .= '<priority>1.0</priority>'; $output .= '<image:image>'; $output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>'; $output .= '<image:caption>' . $product['name'] . '</image:caption>'; $output .= '<image:title>' . $product['name'] . '</image:title>'; $output .= '</image:image>'; $output .= '</url>'; } } заменяем на такое foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } И убрать вот эту строку чуть выше: $this->load->model('tool/image'); И будет все гуд. Гугл и Яндекс пропустил наш sitemap
    1 point
  11. И для карточки товара еще надо в catalog/view/theme/*/template/product/product.tpl: <script type="text/javascript"><!-- $('#button-cart').on('click', function() { $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'), dataType: 'json', beforeSend: function() { $('#button-cart').button('loading'); }, complete: function() { $('#button-cart').button('reset'); }, success: function(json) { $('.alert, .text-danger').remove(); $('.form-group').removeClass('has-error'); if (json['error']) { if (json['error']['option']) { for (i in json['error']['option']) { var element = $('#input-option' + i.replace('_', '-')); if (element.parent().hasClass('input-group')) { element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>'); } } } if (json['error']['recurring']) { $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>'); } // Highlight any found errors $('.text-danger').parent().addClass('has-error'); } if (json['success']) { $('.breadcrumb').after('<div class="alert alert-success">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>'); $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>'); $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart > ul').load('index.php?route=common/cart/info ul li'); yaCounter123123132.reachGoal('идентификатор'); return true; // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ } },
    1 point
  12. нет, разница есть + thentru, точно подметил, если есть товары с опциями, то надо в success // Cart add remove functions var cart = { 'add': function(product_id, quantity) { $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: 'product_id=' + product_id + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1), dataType: 'json', beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { $('.alert, .text-danger').remove(); if (json['redirect']) { location = json['redirect']; } if (json['success']) { $('#content').parent().before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="close" data-dismiss="alert">&times;</button></div>'); // Need to set timeout otherwise it wont update the total setTimeout(function () { $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>'); }, 100); $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart > ul').load('index.php?route=common/cart/info ul li'); yaCounter123123132.reachGoal('идентификатор'); return true; // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); },
    1 point
Guest
×
  • 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.