{
    const queryString = new URLSearchParams(new FormData($refs.filter_form)).toString()
    loading = true;
    fetch('/collections/all-products?' + queryString)
      .then(response => response.text())
      .then(data => {
        let html_div = document.createElement('div');
        html_div.innerHTML = data;
        let html_dom = html_div.querySelector('#ProductGridContainer').innerHTML;
        document.querySelector('#ProductGridContainer').innerHTML = html_dom;
        // update url without refreshing the page
        history.replaceState(null, null, '?' + queryString);
      })
      .catch(error => console.error('Error:', error))
      .finally(() => loading = false);
  })"
  >
    
    
          - Featured
- Best selling
- Alphabetically, A-Z
- Alphabetically, Z-A
- Price, low to high
- Price, high to low
- Date, old to new
- Date, new to old
- 
                
        Fish Fun Magnetic Fishing ToyRegular price $16.00
- 
                
        Nail StampRegular price $12.00
- 
                
    Sale    Pet Reflective Collar$16.00 $14.00
- 
                
        Safe Security Anti Theft WalletRegular price $17.00
- 
                
        Solarius Solar Power ChargerRegular price $57.00
- 
                
        Magic Color PenRegular price $10.00
- 
                
        Baby Montessori ToyRegular price $26.00
- 
                
        Portable Biker BagRegular price $45.00
- 
                
        USB Charging Shoulder BagRegular price $39.00
- 
                
        InterActive Pet BallRegular price $15.00
- 
                
        Soccer Ball For DogRegular price $32.00
- 
                
        Grain StorageRegular price $80.00
- 
                
        Clear Face Facial CleanserRegular price $79.00
- 
                
        PainKiller Colic DeviceRegular price $22.00
 
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
               
            
           
            
              