Setup

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

Copy
npm install @wix/ecom

or

Copy
yarn add @wix/ecom

Then import { cart } from @wix/ecom:

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