{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString()
loading = true;
filtersActive = true;
fetch('/collections/home-decor?' + queryString)
.then(response => response.text())
.then(data => {
let html_div = document.createElement('div');
html_div.innerHTML = data;
let html_dom = html_div.querySelector('#ProductGridContainer').innerHTML;
document.querySelector('#ProductGridContainer').innerHTML = html_dom;
// update url without refreshing the page
history.replaceState(null, null, '?' + queryString);
})
.catch(error => console.error('Error:', error))
.finally(() => {
loading = false
filtersActive = true
});
})
"
>
Filter:
Show: All
-
Neale Whitaker Henley Basket Small
Regular price $79.99 -
Neale Whitaker Henley Basket Medium
Regular price $99.98 -
Neale Whitaker Henley Basket Large
Regular price $119.00 -
Urban Oasis Marley Basket Small
Regular price $69.99 -
Urban Oasis Marley Basket Medium
Regular price $89.99 -
Urban Oasis Marley Basket Large
Regular price $109.00 -
Ben David Candy Stripe Bowl Nude Mango
Regular price $99.98 -
Ben David Candy Stripe Small Vase Nude Mango
Regular price $99.98 -
Ben David Candy Stripe Cylinder Vase Nude Mango
Regular price $129.00 -
Ben David Candy Stripe Small Vase Pink Mango
Regular price $99.98 -
Ben David Candy Stripe Cylinder Vase Pink Mango
Regular price $129.00 -
Ben David Candy Fruit Bowl Emerald
Regular price $139.00 -
Ben David Candy Vase Small Emerald
Regular price $139.00 -
Ben David Candy Vase Cylinder Emerald
Regular price $99.98 -
Ben David Malibu Vase Tall Natural
Regular price $119.00 -
Ben David Malibu Vase Round Natural
Regular price $119.00 -
Ben David Malibu Vase Tall Forest
Regular price $119.00 -
Ben David Malibu Vase Round Forest
-
Ben David Cino Vase Rose Medium
-
Ben David Cino Vase Forest Medium
-
Ben David Cino Vase Rust Large
-
Ben David Cino Vase Coffee Large
Regular price $129.00 -
Ben David Cino Frilled Vase Emerald
Regular price $230.00 -
Ben David Cino Frilled Vase Pink
Regular price $230.00