You're looking at the documentation for Liquid Ajax Cart v1. Go to Liquid Ajax Cart v2

Releases

v1.11.2

Released on 2023, Oct 27
Changes:
  • The issue is fixed when the cart state and the cart content was wrong when a user clicks the “Back” button in the browser.

v1.11.1

Released on 2023, Aug 21
Changes:
  • Fixed bug when Shopify returns not fully updated section HTML in the /cart/add.js response.

v1.11.0

Released on 2023, Apr 11
Changes:
  • The lineItemQuantityErrorText configuration parameter is removed, as Shopify started returning error in the /cart/change.js response.
  • Fixed bug when Shopify Pixel analytics product_added_to_cart event fired twice on a form submission.
  • Fixed bug when data-ajax-cart-message prints out null instead of an error message.

v1.10.3

Released on 2022, Jul 5
Changes:
  • The liquidAjaxCartInit event is added for the body tag.

v1.10.2

Released on 2022, Jun 15
Changes:
  • Shopify Markets support is added

v1.10.1

Released on 2022, Apr 8
Changes:
  • The js-ajax-cart-not-compatible CSS class is added.
  • The JavaScript module is reduced in size.

v1.10.0

Released on 2022, Feb 19
Changes:
  • The previousCart parameter is always passed to subscribeToCartStateUpdate callback functions.
  • The getCartState always returns the previousCart as well.
  • subscribeToCartStateUpdate callback functions will be called with one more parameter — isCartChanged.
  • The info.cancel property of a Request state lets you cancel the request before it is started.
  • All Ajax Cart requests get in queues to be performed.
  • The newQueue property is accepted within the options parameter of the cartRequest* functions and lets you manage request queue position.

v1.9.0

Released on 2022, Feb 3
Changes:
  • The data-ajax-cart-static-element attribute is added.

v1.8.2

Released on 2022, Feb 2
Changes:
  • The subscribeToCartSectionsUpdate function is added.

v1.8.0

Released on 2022, Jan 22
Changes:
  • The addToCartCssClass configuration parameter is added.
  • The money_with_currency formatter is added for the data-ajax-cart-bind-state attribute.
  • The stateBinderFormatters configuration parameter is added.
  • The subscribeToCartStateUpdate function doesn’t call the callback immediately after subscribing. Only after a next state change.
  • subscribeToCartStateUpdate callback functions will be called with one more parameter — previousCart.

v1.7.0

Released on 2022, Jan 3
Changes:
  • The data-ajax-cart-property-input attribute is added.
  • The routes to routes.cart_*_url are not automatically ajaxified anymore. Add the data-ajax-cart-request-button to ajaxify them.

v1.6.0

Released on 2021, Nov 16
Changes:
  • The data-ajax-cart-quantity-input supports line item’s index now.
  • The data-ajax-cart-messages attribute with an item.key parameter shows messages even if the request resulted with a message was called with the line parameter, not id.
  • Liquid Ajax Cart update cart sections and the State when a window gets focus.
  • The configure function is removed.
  • The configureCart function is added.
  • The data-ajax-cart-configuration attribute is added.
  • The updateOnWindowFocus configuration parameter is added.

v1.5.0

Released on 2021, Nov 2
Changes:

If the data-ajax-cart-section is attached to a section’s root container, it doesn’t update the whole section anymore. Only containers with the attribute will be updatable.

v1.4.0

Released on 2021, Oct 30
Changes:

If the data-ajax-cart-section is added not to a root HTML container then only the container with the attribute will be updated, not the whole section.

v1.3.0

Released on 2021, Oct 25
Changes:
  • The window.liquidAjaxCart object is available.
  • Liquid Ajax Cart works correctly even if it is included more than once on a page.

v1.2.1

Released on 2021, Oct 23
Changes:

The data-ajax-cart-quantity-input adds initiator property to Ajax requests.

v1.2.0

Released on 2021, Oct 22
Changes:
  • The info property is accepted within the options parameter of the cartRequest* functions.
  • All the controls and product forms add the initiator property for any request.
  • The data-ajax-cart-quantity-input sends data as the FormData object.
  • The data-ajax-cart-form-error attribute is removed.
  • The data-ajax-cart-messages attribute is added.
  • The messageBuilder, lineItemQuantityErrorText and requestErrorText configuration options are added.

v1.1.0

Released on 2021, Oct 16
Changes:

The data-ajax-cart-quantity-input is added.

v1.0.0

Released on 2021, Oct 10
Changes:

Public release.

v0.2.0

Released on 2021, Oct 10
Changes:
  • The cartRequest* functions don’t return the Promise anymore.
  • The cartRequest* functions have one more parameter — the options object with the possibilty to pass the firstComplete and lastComplete callbacks.

v0.1.1

Released on 2021, Oct 10
Changes:
  • The 'x-requested-with': 'XMLHttpRequest' header is added to the FormData and URLSearchParams requests.

v0.1.0

Released on 2021, Oct 5
Changes:
  • The data-ajax-cart-quantity-button attribute is removed.
  • The data-ajax-cart-request-button attribute is added.
  • The cartRequestAdd and cartRequestUpdate functions are added.

v0.0.1

Released on 2021, Oct 5

Hello world!