Redo - not on sale
Redo is using this collection to allow the discount codes we create to only apply to items that are not on sale. Please don't delete this collection unless you've turned off the discount setting "Don't apply to items on sale"
{
let form = $refs.filter_form
const queryString = new URLSearchParams(new FormData(form)).toString()
fetch('/collections/redo-not-on-sale?' + queryString + '&sort_by=most-relevant')
.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/redo-not-on-sale?' + queryString + '&sort_by=most-relevant');
})
.catch(error => console.error('Error:', error));
});">
Sort