High Country Trail Shoe
Go-To
Filters
>
Showing 13 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
Go-To Half Zip
Quick View
Go-To Half Zip
$ 85.00
Go-to Crew
Quick View
Go-to Crew
from
$ 67.50
$ 75.00
Go-to Crew
Quick View
Go-to Crew
from
$ 67.50
$ 75.00
Go-to Crew | Trail Society
Quick View
Go-to Crew | Trail Society
$ 80.00
Go-To Sweats
Quick View
Go-To Sweats
$ 85.00
Go-to Sweats
Quick View
Go-to Sweats
$ 85.00
Go-to Hoodie All Gender
Quick View
Go-to Hoodie All Gender
$ 85.00
Go-to Hoodie All Gender | Trail
Quick View
Go-to Hoodie All Gender | Trail
$ 76.50
$ 85.00
Go-to Hoodie All Gender | New York
Quick View
Go-to Hoodie All Gender | New York
$ 68.00
$ 85.00
Men's Go-To Sweats | New York
Quick View
Men's Go-To Sweats | New York
$ 68.00
$ 85.00
Go-to Hoodie All Gender | Leadville
Quick View
Go-to Hoodie All Gender | Leadville
$ 68.00
$ 85.00
Go-To Hoodie All Gender
Quick View
Go-To Hoodie All Gender
Sold Out
Go-to Hoodie | Mother Runner
Quick View
Go-to Hoodie | Mother Runner
$ 75.00
Go-To Half Zip
Quick View
Go-To Half Zip
$ 85.00
Go-to Crew
Quick View
Go-to Crew
from
$ 67.50
$ 75.00
Go-to Crew
Quick View
Go-to Crew
from
$ 67.50
$ 75.00
Go-to Crew | Trail Society
Quick View
Go-to Crew | Trail Society
$ 80.00
Go-To Sweats
Quick View
Go-To Sweats
$ 85.00
Go-to Sweats
Quick View
Go-to Sweats
$ 85.00
Go-to Hoodie All Gender
Quick View
Go-to Hoodie All Gender
$ 85.00
Go-to Hoodie All Gender | Trail
Quick View
Go-to Hoodie All Gender | Trail
$ 76.50
$ 85.00
Go-to Hoodie All Gender | New York
Quick View
Go-to Hoodie All Gender | New York
$ 68.00
$ 85.00
Men's Go-To Sweats | New York
Quick View
Men's Go-To Sweats | New York
$ 68.00
$ 85.00
Go-to Hoodie All Gender | Leadville
Quick View
Go-to Hoodie All Gender | Leadville
$ 68.00
$ 85.00
Go-To Hoodie All Gender
Quick View
Go-To Hoodie All Gender
Sold Out
Go-to Hoodie | Mother Runner
Quick View
Go-to Hoodie | Mother Runner
$ 75.00