{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString()
loading = true;
filtersActive = true;
fetch('/collections/plant-care?' + 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
-
Mr Fothergills Colored Windowsill Tins Herbs Mix
Regular price $24.98 -
Mr Fothergills Colored Windowsill Tins Lavender
Regular price $24.98 -
Mr Fothergills Colored Windowsill Tins Strawberry
Regular price $24.98 -
Mr Fothergills Colored Windowsill Tins Sunflower
Regular price $24.98 -
Long Sleeve Garden Gloves Navy Large
Regular price $39.98 -
Long Sleeve Garden Gloves Navy Medium
Regular price $39.98 -
Long Sleeve Garden Gloves Olive Large
-
Long Sleeve Garden Gloves Olive Medium
Regular price $39.98 -
Long Sleeve Garden Gloves Terracotta Large
-
Long Sleeve Garden Gloves Terracotta Medium
Regular price $39.98 -
Love The Glove Gardening Glove Oak Leaf Moss
-
Love The Glove Gardening Glove Oak Leaf Poppy
-
Love The Glove Oak Moss Medium / Large
-
Peter Rabbit Children's Gardening Gloves
Regular price $24.98 -
Red Tweed Gardening Gloves Medium/Large
-
Red Tweed Gardening Gloves Small/Medium
Regular price $49.98 -
Sprout Gloves Bushwalk Medium
-
Sprout Gloves Hibiscus Medium
-
Brunnings Metal Watering Can Cream 4.5Ltr
Regular price $54.98 -
Brunnings Metal Watering Can Galvanized 9Ltr
Regular price $79.98 -
Brunnings Metal Watering Can Heritage Black 4.5Ltr
-
Mr Fothergills Watering Can Kits Cucumber
Regular price $24.98 -
Mr Fothergills Watering Can Kits Sunflower
Regular price $24.98 -
Mr Fothergills Watering Can Kits Tomato
Regular price $24.98