Is the new Ajax Cart Library viable for your theme development projects?

Hello everyone. I have a question for theme developers.

Since Shopify published the new Sections API, we can use the Bundled Section Rendering to update cart sections.

I created a Javascript library that does all the Javascript job for ajax-cart. So to create an ajax-cart section we just need to mark it with the “data-ajax-cart-section” attribute:

{% comment %} sections/my-cart.liquid {% endcomment %}

    {% for item in cart.items %}  
      {{ item.title }} 

      Price: {{ item.final_price | money }} 

      Quantity:
       Minus one 
      
       Plus one  

      Total: **{{ item.final_line_price | money }}** 
 
  
    {% endfor %}
  
     Checkout — {{ cart.total_price | money_with_currency }} 

{% schema %} { "name": "My Cart" } {% endschema %}

The library will update the section without reloading a page every time when a user submits a product form or clicks “Minus” and “Plus” buttons.

So the question: is this library is viable, would you like to use it within your projects?

Or maybe you have suggestions about new features etc.

I would love to have a feedback for you guys.

The library docs — https://liquid-ajax-cart.js.org

1 Like