{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString()
loading = true;
filtersActive = true;
fetch('/collections/books-1?' + 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
-
Aren'T & Pyke
Regular price $64.98 -
Magnolia Table
Regular price $49.98 -
Magnolia Table Volume 2
Regular price $49.98 -
Homebody
Regular price $59.98 -
Three Birds Renovations: Dream Home How-To
Regular price $39.98 -
Curate
Regular price $55.00 -
Live Beautiful
Regular price $64.98 -
Resourceful Living
-
Plenty
Regular price $52.98 -
A Good Life For All Book
Regular price $39.98 -
Upscale Downsizing: Creating A Stylish, Elegant, Smaller Home
Regular price $37.98 -
The Garden Apothecary Book
-
Super Bloom
Regular price $90.00 -
Never Too Small
Regular price $59.98 -
Minimal: For Simple And Sustainable Living
Regular price $39.98 -
Leaf Supply: The House Plant Jigsaw Puzzle
-
Handpicked: Simple, Sustainable, Seasonal Flower Arrangement
Regular price $39.98 -
Forever Green
Regular price $120.00 -
Costa's World Book
Regular price $44.98 -
Cocktail Botanica
Regular price $29.98 -
At The Artisan's Table
Regular price $100.00