Moulin Roty
Today, Moulin Roty represents 40 years of dreams and softness. A multitude of characters and stories have punctuated the years.
Each new collection begins with a story, a universe, an adventure. This “once upon a time” that pushes their illustrators, designers and seamstresses to work the shapes, materials and volumes, to draw, assemble and stitch our future heroes. Always bearing in mind the constraints imposed by quality and standards, but above all the children’s pleasure and delight, they bring to life the ranges and characters so dear to our hearts
{
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/moulin-roty?' + 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);
})"
>