The openCart action navigates the user directly to the active cart page within the app.
It provides a seamless way to programmatically take the user to their current cart, allowing them to review items, apply discounts, or proceed to checkout — all without reloading or external links.
Function Signature
Superfans.actions.openCart()
Parameter
Type
Required
Description
Nil
Nil
Nil
This action does not require any parameter.
Structure of Response
Status
Response
Success
{ "status": "success", "message": "Cart opened successfully" }
Cart not accessible
{ "status": "error", "errorId": 400, "errorHandle": "cart-not-accessible", "message": "Cart not accessible at the moment, please try again" }