Search by

silvershop-suite / click-and-collect

RVXD

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

Statistics

Installs: 2

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

1.0.0 2026-11-21 14:19 UTC

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() returns false, so OrderShippingExtension::setShippingMethod() accepts a pickup order with no shipping address — the delivery address is suppressed.
  • calculateRate() returns the configured Fee (0 by default), never null, so ShippingEstimator keeps the method even before an address is entered.

Behind the method, OrderPickupExtension adds the collect fulfilment layer to Order:

  • ReadyForPickup and Collected datetimes (tracked like the core Dispatched / Printed pattern the order-admin screen already reads — no new Order.Status enum 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) when silvershop-suite/order-admin is not driving it;
  • when ReadyForPickup transitions 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.PickupStoreLocation in 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-scheduling offers 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.