Troubleshooting

The checkout button is greyed out after turning Zapiet off

A faded checkout button that ignores every click, with no message, usually means an older piece of Zapiet code is still in your theme. How to confirm it and remove it.

For
Owner
Takes about
10 minutes
Updated

The checkout button on your cart page looks faded. You click it and nothing happens. There is no message, and nothing in the cart looks wrong.

This is not Wunder Delivery, and it is not Shopify. It is almost always a few lines of older Zapiet code still sitting in your theme.

When it shows up

  • You switched Zapiet’s cart widget off, on your live theme or on a copy you are testing.
  • You uninstalled Zapiet.
  • You are previewing a draft theme where another date app has replaced Zapiet.

On the store where we met it, the code only locked the button when the cart held something that needs shipping. A cart of only digital items is left alone, which can make the fault look random.

Why it happens

Older Zapiet setups add a short block of code to the theme’s layout file. On every page it fades the checkout button and makes it ignore clicks. Zapiet’s widget then loads, and its own script removes the lock.

The lock and the key are two separate things. Take the widget away and the lock is still there, with nothing left to open it.

The code lives in the theme, not in the app

Uninstalling Zapiet, or switching its widget off, does not remove this code. It was pasted into the theme by hand or by a past setup, so it stays until someone deletes it. Zapiet's own help says the code has to be removed if you uninstall.

Confirm it in one minute

  1. Open your cart page with a product in the cart.
  2. Right-click the page and choose View page source.
  3. Search for zapiet-style-disable-checkout-button.

If that name is on the page, this is your problem. If it is not, the button is being stopped by something else, and the next section will not help.

Remove the code

Work on a copy of the theme first if you can. Online Store → Themes → ⋯ → Duplicate, then make the change on the copy and preview it.

  1. Go to Online Store → Themes.
  2. On the theme you want to fix, choose ⋯ → Edit code.
  3. Open layout/theme.liquid.
  4. Search for Zapiet | Disable checkout button. It is a comment near the bottom of the file.
  5. Delete the whole block that follows it: the lines that check the cart, and the <style> section named zapiet-style-disable-checkout-button. Zapiet marks the end with a comment reading End of Zapiet code. On the theme we fixed there was no end comment, and the block finished at the {% endif %} just after </style>.
  6. Save, then reload the cart page. The button is back to full colour and takes you to checkout.

The block can look a little different from theme to theme. If you are not sure where it ends, tell us before deleting anything.

Each theme has its own copy

Removing the code from a draft theme changes nothing on your live theme, and the other way round. If you are testing a replacement on a draft while Zapiet still runs on the live theme, remove it from the draft only.

If you are keeping Zapiet

Leave the code alone on any theme where Zapiet’s widget is still switched on. There, Zapiet removes the lock itself and customers never notice it.

Zapiet now has a setting that does the same job without theme code: in the Zapiet app, Settings → Developers → “Block the checkout button until the widget has loaded”. If you move to that setting, Zapiet’s help also tells you to delete a matching script under Custom scripts on the same page.

It might be the gift message instead

Wunder Delivery can stop a checkout too, and it is easy to tell the two apart.

  • A faded button and no message is the Zapiet code on this page.
  • A full-colour button, and “Please enter a gift message.” under the gift message box is the gift message block doing its job. You marked the message as required and the customer left it empty. See collecting gift messages at checkout.

Still stuck?

Tell us the name of your theme and whether Zapiet is still installed. A screenshot of the cart page helps.

Next

Still stuck? Ask us about this page and we will answer directly.

Spend less time processing orders and more time delivering them.

Bring delivery-date orders, printing, invoices and driver hand-offs into one Shopify-connected workflow.