Setup

To use the CurrentCart API, install the @wix/ecom package using npm or Yarn:

Copy

or

Copy

Then import { currentCart } from @wix/ecom:

Copy
Was this helpful?
Yes
No