company logo

Help center

Go to InPost Paczkomaty - Progus
Powered by
All collectionsDelivery and checkout rulesLet customers pick a locker from a custom cart drawer

Let customers pick a locker from a custom cart drawer

If your own cart drawer has no InPost panel, add a button that opens the picker with one line of script.

A custom cart drawer can open the pickup point picker from a button you add yourself. The app exposes one script call for this, so you do not need the standard cart panel.

Before you start

  • Switch on the app embed named Wybór Paczkomatu in the theme editor, because the script call only exists while the embed is on.

  • The page with your button must be on your Shopify store domain.

  • The call works on every app plan. It fails once you reach your monthly order limit.

Step 1: Add a button to your cart drawer

Add a button with your own label and styling to the drawer template, for example one with the id "paczkomat".

Step 2: Open the picker from the button

Add this script to your theme. After the customer picks a point, it takes them to checkout.

JavaScript
document.querySelector('#paczkomat').addEventListener('click', function () {
  window.InPostPickup.open({ checkout: true })
    .catch(function (error) { console.warn(error.reason); });
});

Step 3: Wait for the script on page load

If the page may call it too early, wait for the document event "inpost:pickup:ready" before you use window.InPostPickup.

Step 4: Read the error if the picker does not open

The error "reason" tells you why. Common ones:

  • "app_disabled": the app is switched off in the app dashboard.

  • "order_limit_reached": your monthly order limit is used up.

  • "cart_not_eligible": the cart is empty or holds no shippable products.

  • "cart_excluded_by_rules": a pickup point visibility rule excludes the cart.

What to do next

  • Check the result in a private window: Test pickup selection before going live.

  • If nothing shows at all: The pickup picker does not appear in my cart.

Stuck on any of this? Open the chat in the bottom right corner of the app and we will help you set it up.

Last verified on 2026-11-16 against inpost c68bdb9e (kb-ref: let-customers-pick-a-locker-from-a-custom).

Did this answer your question?
😞
😐
😁