Opens the Side Cart panel.
The openSideCart()
function opens the Side Cart panel on the current page.
Notes:
openSideCart()
will work on mobile.function openSideCart(): void;
import wixEcomFrontend from "wix-ecom-frontend";
$w("#myOpenSideCartButton").onClick(() => {
// on button click - open the side cart
wixEcomFrontend.openSideCart();
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.