Women's Bestsellers
Filters
>
Showing 36 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
Crusher Pocket Crop
Quick View
Race Pace Tank
Quick View
Race Pace Tee SS
Quick View
Go Time Crop
Quick View
EZ Tank
Quick View
EZ Tee Cropped
Quick View
EZ Tee Perf ICE SS
Quick View
EZ Tee LS Cropped
Quick View
EZ Tee Perf ICE LS
Quick View
UPF Deflector 2.0
Quick View
High Country SS
Quick View
High Country
Quick View
Steady State ICE
Quick View
Strappy Pocket Bra
Quick View
The Toaster
Quick View
Fuel n' Fly 2.5"
Quick View
Fuel n' Fly 4"
Quick View
EZ Tights
Quick View
Speed Leggy 2.5"
Quick View
Speed Leggy 4"
Quick View
Speed Leggy 7"
Quick View
Surf’s Up 2.5”
Quick View
Surfs Up 4"
Quick View
Summit Chasers 2.5"
Quick View
Smashems 3"
Quick View
Hopper
Quick View
Hopper | Relax High-Rise
Quick View
EZ Tights | High-Rise
Quick View
EZ Joggers 2.0
Quick View
Speed Tights
Quick View
Speed Capris
Quick View
Defroster Speed Tights
Quick View