onCartAbandoned( )


Deprecated. This event will continue to work until September 4, 2024, but a newer version is available at wix-ecom-backend.Events.onAbandonedCheckoutCreated().

We recommend you migrate to the new Wix eCommerce APIs as soon as possible.

An event that fires when a visitor abandons a shopping cart.

The onCartAbandoned() event handler runs when a visitor adds an item to the shopping cart, but does not complete the purchase within 1 hour.

If the visitor completes the purchase after it has been abandoned, an onCartRecovered event is fired.

You can use this event to reach out to the visitor who abandoned the shopping cart.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventCartAbandonedEventRequired

Information about the cart that was abandoned.

Was this helpful?
Yes
No