---
title: "Let customers pick a locker from a custom cart drawer"
description: "If your own cart drawer has no InPost panel, add a button that opens the picker with one line of script."
url: https://inpost.help.progus.com/en/articles/54-let-customers-pick-a-locker-from-a-custom-cart-drawer
collection: "Delivery and checkout rules"
updated: 2026-11-16
language: en
alternates: [pl]
---

# 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**](https://inpost.help.progus.com/en/articles/24-test-pickup-selection-before-going-live.md).
    
-   If nothing shows at all: [**The pickup picker does not appear in my cart**](https://inpost.help.progus.com/en/articles/25-the-pickup-picker-does-not-appear-in-my-cart.md).
    

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).
