Sale-Acc
{
let form = $refs.filter_form
const queryString = new URLSearchParams(new FormData(form)).toString()
fetch('/collections/sale-acc?' + queryString + '&sort_by=best-selling')
.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/sale-acc?' + queryString + '&sort_by=best-selling');
})
.catch(error => console.error('Error:', error));
});">
Sort
Carne Bollente
Carrot Affair Keychain
Carne Bollente
Puppy Love Forever Keychain
Carne Bollente
Truckstop Tails Cap in Dark Navy
Carne Bollente
Lapin Lust Keychain
Carne Bollente
Burning Rubber Cap in Off Blue