Vitals: All‑in‑One Marketing

Learn how to integrate Vitals: All‑in‑One Marketing with Zapiet - Pickup + Delivery

Jelizaveta avatar
Written by Jelizaveta
Updated over a week ago

Vitals: All‑in‑One Marketing offers conversion-boosting tools for your store.

To use Vitals: All‑in‑One Marketing app with Zapiet - Pickup + Delivery, you need to add a code snippet to make sure the checkout button in the cart page remains locked until the details in our widget are selected.

  1. In Vitals: All‑in‑One Marketing, click My vitals, then Global settings.

  2. Copy and paste the following code to the Custom JS Hooks field.

    if (typeof window.Zapiet !== 'undefined' && typeof window.Zapiet.Widget !== 'undefined') {
    if (Zapiet.Widget.checkoutEnabled()) {
    return true;
    } else {
    var method = 'shipping';
    if ($('.checkoutMethodContainer.pickup').length) {
    method = 'pickup';
    if ($('').length) {
    method = 'delivery';
    var errorMessage = ZapietCachedSettings.cached_config.translations[method].checkout_error;"checkout_error", errorMessage);
    return false;
    return true;

    var params = {};
    if (Zapiet.Widget.getCheckoutParams()) {
    Object.entries(Zapiet.Widget.getCheckoutParams()).forEach(([key, value]) => {
    params[key] = value;
    return params;

  3. Click Save.

Checkout button will now remain locked until the customer has selected information in Zapiet - Pickup + Delivery widget.

If you have any questions regarding Vitals: All‑in‑One Marketing, please contact their support team at [email protected].

Did this answer your question?