- NOUTĂȚI
- BIJUTERII
- CĂSĂTORIE
- COLECȚII
- CADOURI
- CONCEPT
Coliere
Filtrează
Șterge tot
- filtrează după:
- RON - RON
aplică
resetare
{
// Read existing query params
let existingParams = new URLSearchParams(window.location.search);
// Grab form data
const form = new FormData($refs.filter_form);
// If testD == false, remove price filters
if (form.get('testD') === 'false') {
form.delete('filter.v.price.gte');
form.delete('filter.v.price.lte');
}
// Convert form data to new URLSearchParams
let newParams = new URLSearchParams(form);
// Merge existing params into newParams
for (let [key, value] of existingParams.entries()) {
if (! newParams.has(key)) {
newParams.set(key, value);
}
}
// Redirect with merged query string
loading = true;
const finalQuery = newParams.toString();
window.location.href = `${window.location.pathname}?${finalQuery}`;
})
">