Zapiet Docs
Zapiet Eats
Zapiet Eats
  • Widget API
  • Reference
    • Settings
    • Data
    • Actions
    • Events
Powered by GitBook
On this page
  • Initialize
  • Parameters
  • Top bar
  • Message
  1. Reference

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!");
PreviousDataNextEvents

Last updated 3 years ago