Skip to main content
All CollectionsIntegrations
Vitals: Reviews, Bundles, AI
Vitals: Reviews, Bundles, AI

Learn how to integrate Vitals with Zapiet - Pickup + Delivery

Jelizaveta avatar
Written by Jelizaveta
Updated yesterday

Vitals: Reviews, Bundles, AI offers conversion-boosting tools for your store.

To use Vitals: Reviews, Bundles, AI 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: Reviews, Bundles, AI click Settings.

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

    vitalsSet('VITALS_HOOK__CAN_EXECUTE_CHECKOUT',function() {
    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 ($('.checkoutMethodContainer.delivery').length) {
    method = 'delivery';
    }
    var errorMessage = ZapietCachedSettings.cached_config.translations[method].checkout_error;
    ZapietEvent.fire("checkout_error", errorMessage);
    return false;
    }
    }
    return true;
    });

    vitalsSet('VITALS_HOOK__GET_CUSTOM_CHECKOUT_URL_PARAMETERS',function() {
    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: Reviews, Bundles, AI, please contact their support team at [email protected].

Did this answer your question?