Actions

Methods used to perform actions with the widget

Initialize

Initialize the app in the page

ZapietEats.init({
    config: {...},
    cart_limits: {...}
});

Parameters

config (optional)

Widget's preferences, as set in the store's admin

cart_limits (optional)

Limits for all of the products in the cart

Top bar

// Show
ZapietEats.showTopBar();

// Hide
ZapietEats.hideTopBar();

Message

Display a message in the widget's modal

ZapietEats.showMessage("Hello world!");

Last updated