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 outnull
instead 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-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 tosubscribeToCartStateUpdate
callback functions. - The
getCartState
always returns thepreviousCart
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 theoptions
parameter 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
addToCartCssClass
configuration parameter is added. - The
money_with_currency
formatter is added for thedata-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 thedata-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 anitem.key
parameter shows messages even if the request resulted with a message was called with theline
parameter, notid
. - 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
v1.2.0
Released on 2021, Oct 22
Changes:
- The
info
property is accepted within theoptions
parameter of thecartRequest*
functions. - All the controls and product forms add the
initiator
property for any request. - The
data-ajax-cart-quantity-input
sends data as theFormData
object. - The
data-ajax-cart-form-error
attribute is removed. - The
data-ajax-cart-messages
attribute is added. - The
messageBuilder
,lineItemQuantityErrorText
andrequestErrorText
configuration 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 thePromise
anymore. - The
cartRequest*
functions have one more parameter — theoptions
object with the possibilty to pass thefirstComplete
andlastComplete
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
andcartRequestUpdate
functions are added.
v0.0.1
Released on 2021, Oct 5
Hello world!