Filters
>
Showing 175 products
{
let [param, value] = filter.split('=');
console.log({ param, value });
if (!filters[param]) {
filters[param.replaceAll('?', '')] = [value];
} else {
filters[param.replaceAll('?', '')].push(value);
}
});
}
// Verificar si el filtro a agregar ya existe
let [paramToAdd, valueToAdd] = filterToAdd.split('=');
if (filters[paramToAdd] && filters[paramToAdd].includes(valueToAdd)) {
// Si existe, quitarlo de los filtros
filters[paramToAdd] = filters[paramToAdd].filter(value => value !== valueToAdd);
} else {
// Si no existe, agregarlo a los filtros
if (!filters[paramToAdd]) {
filters[paramToAdd] = [valueToAdd];
} else {
filters[paramToAdd].push(valueToAdd);
}
}
// Formatear los filtros para la URL
const filterParams = Object.entries(filters).map(([param, values]) => {
return values.map(value => `${param}=${value}`).join('&');
})
const queryString = filterParams.length > 0 ? '?' + filterParams.join('&') : '';
// Almacenar la query en el dataset
document.querySelector('.filters-wrapper').dataset.filters = queryString;
console.log('This should be desktop only', { queryString });
"
>
Sort by
>
Filters & Sort
>
×
Sort By
>
{
let [param, value] = filter.split('=');
console.log({ param, value });
if (!filters[param]) {
filters[param.replaceAll('?', '')] = [value];
} else {
filters[param.replaceAll('?', '')].push(value);
}
});
}
// Verificar si el filtro a agregar ya existe
let [paramToAdd, valueToAdd] = filterToAdd.split('=');
if (filters[paramToAdd] && filters[paramToAdd].includes(valueToAdd)) {
// Si existe, quitarlo de los filtros
filters[paramToAdd] = filters[paramToAdd].filter(value => value !== valueToAdd);
} else {
// Si no existe, agregarlo a los filtros
if (!filters[paramToAdd]) {
filters[paramToAdd] = [valueToAdd];
} else {
filters[paramToAdd].push(valueToAdd);
}
}
// Formatear los filtros para la URL
const filterParams = Object.entries(filters).map(([param, values]) => {
return values.map(value => `${param}=${value}`).join('&');
})
const queryString = filterParams.length > 0 ? '?' + filterParams.join('&') : '';
// Almacenar la query en el dataset
document.querySelector('.filters-wrapper').dataset.filters = queryString;
console.log('This should be mobile only', { queryString });
"
>
View
High Country SS
Quick View
FKT 2.0 3"
Quick View
UPF ICE Polo
Quick View
EZ Tee Perf SS
Quick View
On the Go Tank
Quick View
Cruisers 5"
Quick View
Jog Tee
Quick View
Feelin' Fine 2.5"
Quick View
Run Aways
Quick View
Best in Show
Quick View
Defroster Speed Tights
Quick View
Quadeez
Quick View
UPF Deflector 2.0
Quick View
Speed Leggy 2.5"
Quick View
Feelin’ Fine Skirt
Quick View
Feelin' Fine Pants
Quick View
EZ Tank Perf
Quick View
Summit Chasers 2.5"
Quick View
Summit Chasers 4"
Quick View
High Country Shorts
Quick View
High Country
Quick View
FKT 2.0 5"
Quick View
Race Pace Tee SS
Quick View
The Toaster
Quick View
The Toaster
Quick View
Crusher Pocket Crop
Quick View
Victory Jacket
Quick View
Victory Jacket
Quick View
7-Panel Hat | NYC
Quick View
Go Time Tee LS | NYC
Quick View
Go-To Hoodie | NYC All Gender
Quick View
Speedeez | NYC
Quick View
Speedeez | NYC
Quick View
Water Bottle | NYC
Quick View
Go Time LS | Chicago
Quick View
Go Time Tee LS | Chicago
Quick View
Speed Tights
Quick View
Speed Capris
Quick View
Runners
Quick View
Go Time Tee LS | New York
Quick View
Go Time Crop
Quick View
UPF Tee SS | Javelina
Quick View
UPF Tee SS | Javelina
Quick View
Steady State ICE
Quick View
Fleece Beanie
Quick View
Fleece Headband
Quick View