ATTENZIONE: le spedizioni nel periodo natalizio possono subire dei ritardi

Type

weight

Filters

 

Price

Filter by

document.addEventListener('DOMContentLoaded', function () { const checkbox = document.getElementById('onSaleToggle'); // Controlla se il parametro è già presente nell'URL const urlParams = new URLSearchParams(window.location.search); const isOnSale = urlParams.get('on_sale') === '1'; checkbox.checked = isOnSale; // Al cambio della checkbox, aggiorna l’URL checkbox.addEventListener('change', function () { const newParams = new URLSearchParams(window.location.search); if (checkbox.checked) { newParams.set('on_sale', '1'); } else { newParams.delete('on_sale'); } // Ricostruisce l'URL con i parametri aggiornati const newUrl = `${window.location.pathname}?${newParams.toString()}`; window.location.href = newUrl; }); });
document.addEventListener('DOMContentLoaded', function () { const checkbox = document.getElementById('inStockToggle'); const urlParams = new URLSearchParams(window.location.search); const isInStock = urlParams.get('in_stock') === '1'; checkbox.checked = isInStock; checkbox.addEventListener('change', function () { const newParams = new URLSearchParams(window.location.search); if (checkbox.checked) { newParams.set('in_stock', '1'); } else { newParams.delete('in_stock'); } const newUrl = `${window.location.pathname}?${newParams.toString()}`; window.location.href = newUrl; }); });

hazelnuts

Type

Filter by

document.addEventListener('DOMContentLoaded', function () { const checkbox = document.getElementById('onSaleToggle'); // Controlla se il parametro è già presente nell'URL const urlParams = new URLSearchParams(window.location.search); const isOnSale = urlParams.get('on_sale') === '1'; checkbox.checked = isOnSale; // Al cambio della checkbox, aggiorna l’URL checkbox.addEventListener('change', function () { const newParams = new URLSearchParams(window.location.search); if (checkbox.checked) { newParams.set('on_sale', '1'); } else { newParams.delete('on_sale'); } // Ricostruisce l'URL con i parametri aggiornati const newUrl = `${window.location.pathname}?${newParams.toString()}`; window.location.href = newUrl; }); });
document.addEventListener('DOMContentLoaded', function () { const checkbox = document.getElementById('inStockToggle'); const urlParams = new URLSearchParams(window.location.search); const isInStock = urlParams.get('in_stock') === '1'; checkbox.checked = isInStock; checkbox.addEventListener('change', function () { const newParams = new URLSearchParams(window.location.search); if (checkbox.checked) { newParams.set('in_stock', '1'); } else { newParams.delete('in_stock'); } const newUrl = `${window.location.pathname}?${newParams.toString()}`; window.location.href = newUrl; }); });

Wonder Box

Assorted and Chocolate-Covered Baci Gallina
50,00