Setup

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

Copy
npm install @wix/ecom

or

Copy
yarn add @wix/ecom

Then import { currentCart } from @wix/ecom:

Copy
import { currentCart } from "@wix/ecom";
Did this help?