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.jsresponse.
v1.11.0
Released on 2023, Apr 11
Changes:
- The
lineItemQuantityErrorTextconfiguration parameter is removed, as Shopify started returning error in the/cart/change.jsresponse. - Fixed bug when Shopify Pixel analytics
product_added_to_cartevent fired twice on a form submission. - Fixed bug when
data-ajax-cart-messageprints outnullinstead of an error message.
v1.10.3
Released on 2022, Jul 5
v1.10.2
Released on 2022, Jun 15
v1.10.1
Released on 2022, Apr 8
Changes:
- The
js-ajax-cart-not-compatibleCSS class is added. - The JavaScript module is reduced in size.
v1.10.0
Released on 2022, Feb 19
Changes:
- The
previousCartparameter is always passed tosubscribeToCartStateUpdatecallback functions. - The
getCartStatealways returns thepreviousCartas well. subscribeToCartStateUpdatecallback functions will be called with one more parameter —isCartChanged.- The
info.cancelproperty of a Request state lets you cancel the request before it is started. - All Ajax Cart requests get in queues to be performed.
- The
newQueueproperty is accepted within theoptionsparameter of thecartRequest*functions and lets you manage request queue position.
v1.9.0
Released on 2022, Feb 3
v1.8.2
Released on 2022, Feb 2
v1.8.0
Released on 2022, Jan 22
Changes:
- The
addToCartCssClassconfiguration parameter is added. - The
money_with_currencyformatter is added for thedata-ajax-cart-bind-stateattribute. - The
stateBinderFormattersconfiguration parameter is added. - The
subscribeToCartStateUpdatefunction doesn’t call the callback immediately after subscribing. Only after a next state change. subscribeToCartStateUpdatecallback functions will be called with one more parameter —previousCart.
v1.7.0
Released on 2022, Jan 3
Changes:
- The
data-ajax-cart-property-inputattribute is added. - The routes to
routes.cart_*_urlare not automatically ajaxified anymore. Add thedata-ajax-cart-request-buttonto ajaxify them.
v1.6.0
Released on 2021, Nov 16
Changes:
- The
data-ajax-cart-quantity-inputsupports line item’s index now. - The
data-ajax-cart-messagesattribute with anitem.keyparameter shows messages even if the request resulted with a message was called with thelineparameter, notid. - Liquid Ajax Cart update cart sections and the State when a window gets focus.
- The
configurefunction is removed. - The
configureCartfunction is added. - The
data-ajax-cart-configurationattribute is added. - The
updateOnWindowFocusconfiguration 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.liquidAjaxCartobject 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
v1.2.0
Released on 2021, Oct 22
Changes:
- The
infoproperty is accepted within theoptionsparameter of thecartRequest*functions. - All the controls and product forms add the
initiatorproperty for any request. - The
data-ajax-cart-quantity-inputsends data as theFormDataobject. - The
data-ajax-cart-form-errorattribute is removed. - The
data-ajax-cart-messagesattribute is added. - The
messageBuilder,lineItemQuantityErrorTextandrequestErrorTextconfiguration options are added.
v1.1.0
Released on 2021, Oct 16
v1.0.0
Released on 2021, Oct 10
v0.2.0
Released on 2021, Oct 10
Changes:
- The
cartRequest*functions don’t return thePromiseanymore. - The
cartRequest*functions have one more parameter — theoptionsobject with the possibilty to pass thefirstCompleteandlastCompletecallbacks.
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-buttonattribute is removed. - The
data-ajax-cart-request-buttonattribute is added. - The
cartRequestAddandcartRequestUpdatefunctions are added.
v0.0.1
Released on 2021, Oct 5
Hello world!