Avery Row
Avery Row is a British brand devoted to creating beautifully crafted, sustainable textiles for babies, toddlers, parents, and the home. With a deep love for thoughtful design, they take pride in the little details that make each piece truly special. Inspired by cherished childhood memories, their collections blend delicate prints, luxurious fabrics, and fine embroidery detail to bring warmth and character to every item. Striking the perfect balance between modern style and timeless charm, Avery Row’s designs are made to be treasured by both parents and little ones for years to come.
{
const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString();
let pattern = /[?&]sort_by=/;
let collUrl = location.search;
let newUrl = queryString;
if(pattern.test(collUrl)) {
const theString = window.location.search;
const urlParams = new URLSearchParams(theString);
const sorty = urlParams.get('sort_by')
newUrl = queryString + '&sort_by=' + sorty;
console.log(sorty);
}
console.log(queryString);
console.log(newUrl);
loading = true;
fetch('/collections/avery-row?' + newUrl)
.then(response => response.text())
.then(data => {
let html_div = document.createElement('div');
html_div.innerHTML = data;
let html_dom = html_div.querySelector('#dataMix').innerHTML;
document.querySelector('#dataMix').innerHTML = html_dom;
// update url without refreshing the page
history.replaceState(null, null, '?' + newUrl);
})
.catch(error => console.error('Error:', error))
.finally(() => loading = false);
})"
>