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

Snakepro

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

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

Snakepro's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • First Post
  • Conversation Starter

Recent Badges

0

Reputation

  1. {% if option_value.price %} ({{ option_value.price_prefix }}{{ option_value.price }}) Вот эти строчки надо удалить?
  2. к сожалению такого участка нет есть такой участок <script type="text/javascript"><!-- $('#button-cart2').on('click', function() { $("input#quantity_wanted").val($("input#quantity_wanted2").val()); {% for option in options %} {% if (option['type'] == 'radio') %} $("#input-option{{ option['product_option_id'] }}-2 .radio").each(function () { if($(this).find("input").is(":checked")) { var index = $(this).index(); $("#input-option{{ option['product_option_id'] }} .radio").eq(index).find("label").click(); } }); {% endif %} {% if (option['type'] == 'checkbox') %} $("#input-option{{ option['product_option_id'] }}-2 .checkbox").each(function () { if($(this).find("input").is(":checked")) { var index = $(this).index(); $("#input-option{{ option['product_option_id'] }} .checkbox").eq(index).find('input').prop("checked", true); } else { var index = $(this).index(); $("#input-option{{ option['product_option_id'] }} .checkbox").eq(index).find('input').prop("checked", false); } }); {% endif %} {% if (option['type'] == 'select') %} $("#input-option{{ option['product_option_id'] }}").val($("#input-option{{ option['product_option_id'] }}-2").val()); {% endif %} {% endfor %} $("#button-cart").click(); }); $('#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() { $('#product #button-cart').val($('#product #button-cart').attr("data-loading-text")); }, complete: function() { $('#product #button-cart').val($('#product #button-cart').attr("data-original-text")); }, 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']) { var product_id = $('#product input[name="product_id"]').val(); $('#modalAddToCartProduct').modal('show'); $('#modalAddToCartProduct .tt-img img').attr('src', $(".product-info").find("#image").attr("src")); $('#modalAddToCartProduct .tt-title').html($(".product-info").find("h1").html()); $('#modalAddToCartProduct .tt-product-total .tt-price').html($(".product-info").find(".price .price-new").html()); $('#modalAddToCartProduct .tt-qty span').html($('.product-info input[name="quantity"]').val()); $('#modalAddToCartProduct .tt-cart-total .tt-price').html(' ').load('index.php?route=common/cart/info #total_amount_ajax'); $('#modalAddToCartProduct .tt-cart-total .text-total').text($('#modalAddToCartProduct .tt-cart-total .text-total').text().replace(/[0-9]+/, parseInt($('#total_count_ajax').html())+parseInt($('.product-info input[name="quantity"]').val()))); $('#cart_block #cart_content').load('index.php?route=common/cart/info #cart_content_ajax'); $('#cart_block #total_count_ajax, .open-cart .cart-count').load('index.php?route=common/cart/info #total_count_ajax'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); //--></script> и что тут надо изменить?
  3. Version 3.0.3.8 (trs-3) у меня нет .tpl? есть twig а в этом файле нет того,о чём идет разговор в той теме, що Вы показали.
  4. Здраствуйте Подскажите как убрать отображение цены в списке опции товара?
×
×
  • 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.