Shirts
{
let form = $refs.filter_form
const queryString = new URLSearchParams(new FormData(form)).toString()
fetch('/collections/shirts?' + queryString + '&sort_by=created-descending')
.then(response => response.text())
.then(data => {
let html_div = document.createElement('div');
html_div.innerHTML = data;
let html_dom = html_div.querySelector('#product-grid-container').innerHTML;
document.querySelector('#product-grid-container').innerHTML = html_dom;
// update url without reloading page
history.replaceState(null, null, '/collections/shirts?' + queryString + '&sort_by=created-descending');
})
.catch(error => console.error('Error:', error));
});">
Sort
Homme Plissé Issey Miyake
Embroidery Press S/S Shirt in Khaki
Studio Nicholson
Sanko Short Sleeve Shirt in White
Common Divisor
Kanas Shirt in Navy
Common Divisor
Satre Knit Top in Grey
Common Divisor
Satre Knit Top in Black