silvershop-suite / click-and-collect
Local pickup / click & collect (BOPIS) for SilverShop: a dedicated zero-cost PickupShippingMethod that suppresses the shipping address, a first-class collect fulfilment layer on the order (ready-for-pickup / collected), and a styled ready-for-pickup notification email.
Package info
github.com/silvershop-suite/silvershop-click-and-collect
Type:silverstripe-vendormodule
pkg:composer/silvershop-suite/click-and-collect
Requires
- php: ^8.3
- silvershop/core: ^6
- silvershop/shipping: ^3.2 || ^4
- silverstripe/framework: ^6.0
Requires (Dev)
Suggests
- silvershop-suite/notification-log: Logs the ready-for-pickup email (fulfilment audit) from the stamped X-SilverShop-Notification-Key header.
- silvershop-suite/order-admin: Surfaces the pickup fulfilment pills in the modern order screen (this module ships a standalone Pickup tab as a fallback).
- silvershop-suite/store-locations: One pickup method per physical store: the order, the CMS and the pickup email show that store's address and opening hours.
- silvershop-suite/store-profile: Supplies the single implicit pickup location in v1 — the shop address + name shown in the ready-for-pickup email and the admin pickup panel.
- silvershop-suite/storefront: Ships the styled checkout delivery-vs-pickup choice and the account / confirmation 'ready for pickup' wording (this module relies on the existing shipping-method optionset).
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-23 10:43:19 UTC
README
Local pickup / click & collect (BOPIS) for SilverShop (CMS 6). Let a buyer choose "Pick up in store" instead of delivery: no shipping cost, no shipping address required, and a first-class collect fulfilment layer the shop can act on (ordered → ready for pickup → collected) with a styled ready-for-pickup notification email.
This is the v1 slice: one pickup location (the store-profile address) or one per store with store-locations, €0 (or a flat fee) collect, address suppression, the ready / collected fulfilment state, and the ready-for-pickup email. See Roadmap for what is deliberately out of scope.
How it works
Pickup is modelled as a dedicated PickupShippingMethod — a ShippingMethod subclass — so it reuses
the existing shipping-method selection surface (the checkout optionset + the ShippingFrameworkModifier
line) with no new checkout plumbing:
requiresAddress()returnsfalse, soOrderShippingExtension::setShippingMethod()accepts a pickup order with no shipping address — the delivery address is suppressed.calculateRate()returns the configuredFee(0 by default), nevernull, soShippingEstimatorkeeps the method even before an address is entered.
Behind the method, OrderPickupExtension adds the collect fulfilment layer to Order:
ReadyForPickupandCollecteddatetimes (tracked like the coreDispatched/Printedpattern the order-admin screen already reads — no newOrder.Statusenum value);IsPickup(),IsReadyForPickup(),IsCollected(),PickupFulfilmentState()predicates;markReadyForPickup()/markCollected()actions, and a standalone Pickup tab on the order edit form (date fields + the store-profile pickup location) whensilvershop-suite/order-adminis not driving it;- when
ReadyForPickuptransitions from empty to set, a ready-for-pickup email is sent once.
The ReadyForPickupEmail is self-contained (its own inline-safe <style>, so the module installs on
core 6.1 without the 6.2 email shell) and stamps two headers an optional silvershop-suite/notification-log
records with zero coupling:
X-SilverShop-Order-ID: {OrderID}
X-SilverShop-Notification-Key: pickup.ready
Installation
composer require silvershop-suite/click-and-collect
Then run dev/build?flush=all. In Settings → Shipping methods add a Pickup / collect method
(set it Enabled, give it a name such as "Collect in store", and an optional Fee). It then appears in the
checkout shipping-method list; selecting it suppresses the shipping address and places the order as a collect
order.
Requires silvershop/core ^6 and silvershop/shipping. Optional integrations (auto-detected):
| Module | What it adds |
|---|---|
silvershop-suite/store-profile |
The single implicit pickup location (address + name) shown in the email and admin panel. |
silvershop-suite/order-admin |
Surfaces pickup state in the modern order screen (this module ships a standalone Pickup tab otherwise). |
silvershop-suite/notification-log |
Logs the ready-for-pickup email from the stamped header. |
silvershop-suite/storefront |
Styled checkout delivery-vs-pickup choice and account / confirmation pickup wording. |
Configuration
SilverShop\ClickAndCollect\Extension\OrderPickupExtension: # When true, markCollected() also advances the order Status to Complete. Off by default — v1 keeps # fulfilment on the datetimes and leaves the payment / status machinery untouched. complete_on_collected: false
The pickup fee is per-method (the Fee field on each PickupShippingMethod).
Several stores (with silvershop-suite/store-locations)
Install silvershop-suite/store-locations and
create one pickup method per store ("Collect at High Street", "Collect at Riverside"), each linked to its store in
the method's Store field. Then:
- the order's Pickup tab shows that store's name and address (
$Order.PickupStoreLocationin templates); - the ready-for-pickup email names the store and lists its opening hours;
- a method whose store is permanently closed is no longer offered at checkout;
silvershop-suite/delivery-schedulingoffers only that store's pickup slots and skips its closed days.
Without store-locations a pickup method keeps using the single store-profile address.
Roadmap (v2)
Deliberately not in v1: a dedicated checkout location picker (today each store is its own pickup method);
time slots (see delivery-scheduling);
the per-product pickup-only / not-shippable flag (silvershop-suite/shippability) and the mixed-cart
"forces pickup" enforcement; collector-name / notes; hold-period reminders + no-show handling; and a fuller storefront UX.
Licence
BSD-3-Clause.
Credits
Built and maintained by Remy Vaartjes (remy@xd.nl) — part of the SilverShop-Suite.