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; }); });

"La Cittadella" Creams

Smooth and velvety spreads made with the finest hazelnuts from the Langhe, capturing all the aromas and flavours of our land. Their name pays tribute to the Cittadella, the historic fortress of Alessandria that holds a special place in the heart of every local.

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; }); });