{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString()
loading = true;
fetch('/collections/bestsellers?' + 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);
})"
>
- En vedette
- Le plus pertinent
- Meilleures ventes
- Alphabétique, de A à Z
- Alphabétique, de Z à A
- Prix: faible à élevé
- Prix: élevé à faible
- Date, de la plus ancienne à la plus récente
- Date, de la plus récente à la plus ancienne
-
Sale
Premium pique polo shirt
$48.00 $46.00 -
Old School Bucket Hat
Prix habituel $37.00 -
Sale
Short-Sleeve Unisex T-Shirt
$22.00 $18.00 -
Sale
Unisex Hoodie
$47.00 $42.00 -
Crossbody bag
Prix habituel $45.00 -
Sale
Unisex Hoodie
$54.00 $48.00 -
Sale
Short-Sleeve Unisex T-Shirt
$42.00 $33.00 -
Dad hat
Prix habituel $39.00 -
Sale
Unisex t-shirt
$48.00 $31.00 -
T-shirt classique unisexe
Prix habituel $31.00