Liquid Ajax Cart is also available as an npm package .
select
element is added for the data-ajax-cart-quantity-input
.data-ajax-cart-errors
element
when the request error is an object is fixed.
extraRequestOnError
configuration parameter with the true
value by default is added.
It makes Liquid Ajax Cart send an additional request in order to re-render the cart related sections
if the current request has returned an error. It fixes the issue
when a request that returns an error actually makes some changes in the cart.
A new API called “Cart mutations” is added. It allows you to automatically add or remove cart items based on specific conditions. It is perfect solution for promotions and cart correction logic.
The data-ajax-cart-quantity-minus
and data-ajax-cart-quantity-plus
buttons
of the <ajax-cart-quantity>
custom tag
get the aria-disabled
and disabled
attributes when inactive.
quantityTagAllowZero
configuration parameter is added.
It lets a user reach the "0" value by clicking the data-ajax-cart-quantity-minus
button
within the <ajax-cart-quantity>
custom tag.
quantityTagDebounce
configuration parameters is added.
It lets you change the debounce time for the <ajax-cart-quantity>
custom tag.
The architecture of the library is completely redesigned.
Read more in the “Differences from v1.x.x” article.
Visit the Liquid Ajax Cart v1 page to read the docs, see the changelog, or download previous versions.