Armbänder

Geschlecht
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Legierung
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Kettenart
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Motive
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Farbe
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Material Farbe
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
Kategorie
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
$(document).ready(function() { var priceUpdated = false $.urlParam = function(name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results == null) { return null; } return decodeURI(results[1]) || 0; } if ($.urlParam('priceMin') && $.urlParam('priceMax')) { $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); } $(document).click(function(e) { const t = $(e.target); if (t.hasClass("title") && t.parents(".card-columns").length > 0) { const card = t.parents(".card"); card.siblings().removeClass("active"); if (card.hasClass("active")) { card.removeClass("active"); } else { card.addClass("active"); } if (t.next().find("#priceRangeMinInput").length > 0 && $.urlParam('priceMin') && $.urlParam('priceMax')) { console.log($("#priceRangeMinInput")); $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); $("#priceRangeMin").val($.urlParam('priceMin')); $("#priceRangeMax").val($.urlParam('priceMax')); } } if (t.attr('id') == "triggerPriceFilter") { const min = $("#priceRangeMinInput").val(); const max = $("#priceRangeMaxInput").val(); if (min !== "" && max !== "") { ceresStore.dispatch("selectPriceFacet", { priceMin: min, priceMax: max }); } } }); });

Auswahl nach Preis einschränken

Preis
(function() { const parent = document.querySelector('.range-slider'); if (!parent) { return; } const rangeS = parent.querySelectorAll('input[type="range"]'), numberS = parent.querySelectorAll('input[type="number"]'); rangeS.forEach((el) => { el.oninput = () => { let slide1 = parseFloat(rangeS[0].value), slide2 = parseFloat(rangeS[1].value); if (slide1 > slide2) { [slide1, slide2] = [slide2, slide1]; } numberS[0].value = slide1; numberS[1].value = slide2; } }); numberS.forEach((el) => { el.oninput = () => { let number1 = parseFloat(numberS[0].value), number2 = parseFloat(numberS[1].value); if (number1 > number2) { let tmp = number1; numberS[0].value = number2; numberS[1].value = tmp; } rangeS[0].value = number1; rangeS[1].value = number2; } }); $("#triggerPriceFilter").click(function() { window.ceresStore.dispatch("selectPriceFacet", { priceMin: 'slide1', priceMax: 'slide2' }); }); })();
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
$(document).ready(function() { var priceUpdated = false $.urlParam = function(name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results == null) { return null; } return decodeURI(results[1]) || 0; } if ($.urlParam('priceMin') && $.urlParam('priceMax')) { $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); } $(document).click(function(e) { const t = $(e.target); if (t.hasClass("title") && t.parents(".card-columns").length > 0) { const card = t.parents(".card"); card.siblings().removeClass("active"); if (card.hasClass("active")) { card.removeClass("active"); } else { card.addClass("active"); } if (t.next().find("#priceRangeMinInput").length > 0 && $.urlParam('priceMin') && $.urlParam('priceMax')) { console.log($("#priceRangeMinInput")); $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); $("#priceRangeMin").val($.urlParam('priceMin')); $("#priceRangeMax").val($.urlParam('priceMax')); } } if (t.attr('id') == "triggerPriceFilter") { const min = $("#priceRangeMinInput").val(); const max = $("#priceRangeMaxInput").val(); if (min !== "" && max !== "") { ceresStore.dispatch("selectPriceFacet", { priceMin: min, priceMax: max }); } } }); });
Hersteller
var $rows = $('.widget-filter-base .card-columns'); $rows.first().append($rows.not(':first').children()) $rows.not(':first').remove();
$(document).ready(function() { var priceUpdated = false $.urlParam = function(name) { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results == null) { return null; } return decodeURI(results[1]) || 0; } if ($.urlParam('priceMin') && $.urlParam('priceMax')) { $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); } $(document).click(function(e) { const t = $(e.target); if (t.hasClass("title") && t.parents(".card-columns").length > 0) { const card = t.parents(".card"); card.siblings().removeClass("active"); if (card.hasClass("active")) { card.removeClass("active"); } else { card.addClass("active"); } if (t.next().find("#priceRangeMinInput").length > 0 && $.urlParam('priceMin') && $.urlParam('priceMax')) { console.log($("#priceRangeMinInput")); $("#priceRangeMinInput").val($.urlParam('priceMin')); $("#priceRangeMaxInput").val($.urlParam('priceMax')); $("#priceRangeMin").val($.urlParam('priceMin')); $("#priceRangeMax").val($.urlParam('priceMax')); } } if (t.attr('id') == "triggerPriceFilter") { const min = $("#priceRangeMinInput").val(); const max = $("#priceRangeMaxInput").val(); if (min !== "" && max !== "") { ceresStore.dispatch("selectPriceFacet", { priceMin: min, priceMax: max }); } } }); });
21.24 45.99