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

Ostaf

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ostaf's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Выводит этот скрипт: <script type="text/javascript"><!-- $('#button-cart').on('click', function() { $.ajax({ url: 'index.php?route=extension/soconfig/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').remove(); $('.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 option_data %} if(typeof ProductOptionId !== undefined && ProductOptionId==i.replace('_', '-')){ $('.so-colorswatch-productpage-icons').after('<div class="text-danger">' + json['error']['option'] + '</div>'); } {% endif %} if (element.parent().hasClass('input-group')) { element.parent().after('<div class="text-danger">' + json['error']['option'] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'] + '</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']) { $('.text-danger').remove(); /*Leader custom code*/ $('#previewModal').modal('show'); $('#previewModal .modal-body').load('index.php?route=extension/soconfig/cart/info&product_id=/'+ {{ product_id }}); /*End Leader custom code*/ $('#cart .total-shopping-cart ').html(json['total'] ); $('#cart > ul').load('index.php?route=common/cart/info ul li'); $('.so-groups-sticky .popup-mycart .popup-content').load('index.php?route=extension/module/so_tools/info .popup-content .cart-header'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); $('#button-checkout').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-checkout').button('loading'); }, complete: function() { $('#button-checkout').button('reset'); }, success: function(json) { $('.alert').remove(); $('.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 option_data %} if(typeof ProductOptionId !== undefined && ProductOptionId==i.replace('_', '-')){ $('.so-colorswatch-productpage-icons').after('<div class="text-danger">' + json['error']['option'] + '</div>'); } {% endif %} {% if option_data %} if(ProductOptionId != undefined && ProductOptionId==i.replace('_', '-')){ $('.so-colorswatch-productpage-icons').after('<div class="text-danger">' + json['error']['option'] + '</div>'); } {% endif %} if (element.parent().hasClass('input-group')) { element.parent().after('<div class="text-danger">' + json['error']['option'] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'] + '</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']) { $('.text-danger').remove(); $('#cart .total-shopping-cart ').html(json['total'] ); window.location.href = "index.php?route=checkout/checkout"; } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); //--></script>
  2. Да. Должно выводить попап окно что данный товар добавлен в корзину. Проблема в том, что эту ссылку (index.php?route=extension/soconfig/cart/add) выводится как /soconfig/cart/add и все летит
  3. А можно поподробнее? куда это вписывать и как туда вписать конкретную ссылку? Это нужно добавлять в файл seopro или в файл где выводится ссылки?
  4. Как добавить конкретную ссылку в исключение SeoPro. Например index.php?route=extension/soconfig/cart/add Проблема в том, что при добавлении товара в корзину некорректно отображаются всплывающие окна. То есть нужно чтобы конкретные ссылки открывало с index.php?route=extension/ Версия ocStore 3.0.2.0
×
×
  • 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.