Introduction

With the eCommerce frontend API, you can interact with the native cart and checkout components on a site.

With the eCommerce frontend API, you can:

  • Refresh a cart to display its latest state.
  • Listen to changes in the native cart components.
  • Open the side cart panel.
  • Navigate to the Cart Page.
  • Navigate to the Checkout Page.

To use the eCommerce frontend API, import wixEcomFrontend from the wix-ecom-frontend module:

Copy

Before you begin

It's important to note the following before starting to code:

Terminology

  • Cart: Holds information about a potential transaction, including details about selected items, prices, and discounts, as well as the potential buyer.
  • Side cart: A preview of the cart page, which opens as a panel on the side of a page.
  • Cart page: A page where a buyer can view and manage the items in their cart.
  • Checkout page: A page where a buyer finalizes a purchase. Each checkout holds information about the items to be purchased, price and tax summaries, shipping and billing information, any applied discounts, and more.
Did this help?