Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

BAH0

Користувачі
  
  • Публікації

    191
  • З нами

  • Відвідування

Усі публікації користувача BAH0

  1. Необходимо будет 2 комплекта одинаковых опций
  2. Подскажите, а возможно при повторном нажатии +All производить дублирование всех опций?
  3. Можете подсказать, что была за проблема и решение, планирую также оба этих дополнения ставить..
  4. Вроде работает на 2.3 custom-name="<?php echo $option['name']; ?> (<?php echo $option_value['name']; ?>)" <div class="row"> <div class="col-lg-12"> <div class="options-results product-info-li"> <h4>Вы выбрали:</h4> <p class="optionResults" product-name="<?php echo $heading_title; ?>"></p> </div> </div> </div> <script> // customer $(document).ready(function() { var hash = window.location.hash; if (hash) { var hashpart = hash.split('#'); var vals = hashpart[1].split('-'); for (i=0; i<vals.length; i++) { $('#product').find('select option[value="'+vals[i]+'"]').attr('selected', true).trigger('select'); $('#product').find('input[type="radio"][value="'+vals[i]+'"]').attr('checked', true).trigger('click'); $('#product').find('input[type="checkbox"][value="'+vals[i]+'"]').attr('checked', true).trigger('click'); } } }) $(document).ready(function() { var optionResults = []; Array.prototype.remove = function() { var what, a = arguments, L = a.length, ax; while (L && this.length) { what = a[--L]; while ((ax = this.indexOf(what)) !== -1) { this.splice(ax, 1); } } return this; }; function setOptionResult(data) { var result = ""; if (data.attr("type") == "radio") { $("div[id^=input-" + data.attr("name").replace(/[\[\]]/g, "") + "] input").each(function () { optionResults.remove($(this).attr('custom-name')); }); } if(data.is(':checked')) { if(!optionResults.includes(data.attr('custom-name'))) optionResults.push(data.attr('custom-name')); } else { optionResults.remove(data.attr('custom-name')); } optionResults.forEach(function(e) { //result += ", " + e ; result += e + ". <br>"; }); result = result.slice(0); //$(".optionResults").attr('product-name'); //$('.optionResults').html($(".optionResults").attr('product-name') + result); $('.optionResults').html(result); } $('input[type="checkbox"]').bind('change', function() { setOptionResult($(this)); }); $('input[type="radio"]').bind('change', function() { setOptionResult($(this)); }); $('select option').bind('change', function() { setOptionResult($(this)); }); }); </script>
  5. Здравствуйте. Прочитал тему, не нашел ответа, реализовали поддержку товаров с опциями?
  6. Так? .li_left {float: left!important;} .li_right {float: right!important;} <li class="li_left""><a href="http://todi.16mb.com/component">Запчасти для телефонов</a></li> <li class="li_right"><a href="http://todi.16mb.com/k_d_n">

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.