showMiniCart( )


Deprecated. This function will continue to work, but a newer version is available at wix-ecom-frontend.openSideCart().

Migration Instructions

If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to wix-ecom-frontend.openSideCart().

To migrate to the new function:

  1. Add the new import statement:

    Copy
  2. Look for any code that uses cart.showMiniCart(), and replace it with wixEcomFrontend.openSideCart().

  3. Test your changes to make sure your code behaves as expected.

Shows the Mini Cart.

The showMiniCart() function displays the Mini Cart. Learn more about the Mini Cart.

Note: This API will fail when viewing the site on mobile because there is no Mini Cart on the mobile site.

Method Declaration
Copy
Request
This method does not take any parameters
Did this help?