{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString();
loading = true;
fetch('/collections/discount-boys-pants?sort_by=' + sort + '&filter.v.availability=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;
history.replaceState(null, null, '?sort_by=' + sort + '&filter.v.availability=1&' + queryString);
})
.catch(error => console.error('Error:', error))
.finally(() => loading = false);
}
"
>
{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString();
loading = true;
fetch('/collections/discount-boys-pants?sort_by=' + sort + '&filter.v.availability=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;
history.replaceState(null, null, '?sort_by=' + sort + '&filter.v.availability=1&' + queryString);
})
.catch(error => console.error('Error:', error))
.finally(() => loading = false);
}
"
>
Sort by:
Products
-
adidas Boy's Track Adicolor Pants
Regular price$40Sale price $19.99 50% OFF -
Lucky Brand Boy's Lucky Authentic Skinny Denim Pant
Regular price$42.50Sale price $14.99 65% OFF -
Tommy Hilfiger Boy's Skinny Fit Denim Pant
Regular price$44.50Sale price $31.99 28% OFF -
Timberland Big Boy's Camo Jogger Pant
Regular price$44.50Sale price $11.99 73% OFF -
Nautica Boy's Jogger Pants
Regular price$39.50Sale price $11.99 70% OFF -
Lucky Brand Big Boy's Exploded Camo Jogger Pant
Regular price$49.50Sale price $9.99 80% OFF