New details in the Ecwid.Cart.get() method from JS API

What's new

Ecwid JS API now allows you to receive more cart details without making any backend calls through the Ecwid.Cart.get() method.

Changes in API

The Ecwid.Cart.get() method now responds with more data.

  • New fields in the cart object: total, subtotal, tax, isPricesIncludeTax .

  • New fields in the cart -> items[] -> product object: isCustomerSetPrice, selectedPrice, mediaItem, recurringChargeSettings

New fields allow you to check the following new order details without backend API calls:

  • Order total, subtotal and tax costs.

  • Links to images of products added to the cart.

  • Details of subscription products in the cart.

Get cart details

Last updated

Was this helpful?