OpenCart 2.3–4.1 extension

Supreme Store Locator and Click-and-Collect

Show your shops on a public page with address, phone, opening hours and a map, and let customers choose "Pick up in store" at checkout. When the order is ready you press one button and the customer gets an e-mail with the address and the hours. No theme file is edited: the stores page is its own page, and the pick-up choice is a normal shipping method.

$20
Supreme Store Locator and Click-and-Collect — overview

For OpenCart 2.3, 3.0, 4.0 and 4.1

The stores page

  • Up to 100 stores, each with a name, street address, city, postcode, phone, e-mail, a note ("use the side door"), a sort order and a switch to hide it.
  • The weekly opening hours: one line per day, one or two time spans ("09:00-13:00,14:00-18:00"), empty = closed. Today is highlighted, and every store shows "Open now" or "Closed now" by the shop's clock.
  • A map from OpenStreetMap beside the list (no key, no account) for every store that has coordinates. A "Show on map" button per store moves the map. A "Directions" link opens the route in the maps app of the visitor.
  • A search box that filters the list by name, street, city or postcode as the visitor types. Phone numbers are tap-to-call, e-mail addresses are links.
  • Stores that offer pick-up show the fee (or "free") and the time it takes ("ready in 2 hours").
  • The address of the page is shown in the settings: add it to your menu or to an information page. The page is a normal shop page with your header and footer. When the module is switched off the page answers "not available" with a 404.
  • All wording is in one language file: copy it into another language folder and translate the right-hand side. The names of the days are in it too.

Click and collect at checkout

THE "READY FOR PICK-UP" E-MAIL

WHAT YOU SEE (Extensions > Modules > Supreme Store Locator and Click-and-Collect)

  • Every store that is marked "pick-up" and is shown becomes a shipping choice: "Pick up: Central Store, Springfield (ready in 2 hours)" with its own fee (0 = free). The name before the colon ("Pick up") is a setting.
  • It is a normal OpenCart shipping method, registered when you install the module, so it shows in the classic checkout and in checkouts that read the core shipping methods. The order keeps the store in its shipping method, so the admin order page, the invoice and the shipping list show where the order is collected.
  • Switch pick-up off for all stores in the settings, or for one store, or hide a store: the choice disappears at once.
  • The customer still enters a delivery address, because OpenCart asks for one when the cart has products that ship.
  • A list of orders that chose a store, newest first, with the customer, the store and the state: waiting, ready, collected. Filter by state.
  • "Ready" sends the e-mail once to the address on the order. "E-mail again" sends it again. "Collected" and "Waiting" only change the state. Orders without a status (never placed) and orders that did not choose a store are not shown and cannot be marked.
  • The subject and the message are yours: plain text with {name} {order} {store} {address} {hours} {phone} {shop}. The opening hours of the store are written out line by line. Anything typed in the message is sent as text, never as markup.
  • Switch the e-mail off to only mark orders. If the order has no valid address the answer says no mail was sent and the order is not marked as notified.
  • The mail goes through the shop's own mail settings (the same as the order mails).
  • The settings, the store editor (add, change, delete) and the pick-up orders in one page. A store is checked when you save: a missing name, an e-mail that is not an address, only one coordinate, a coordinate out of range, a fee that is not 0 to 999, and opening hours that are not valid (a time span that passes midnight, overlapping spans, more than two spans) are refused and the message says what to fix.

Safe by design

  • Texts are cleaned to plain text when saved and escaped again on every page and in the shipping choice. Admin pages need Access, saving, deleting and marking need Modify and answer POST only; the stores and the pick-up list cannot be read without an admin session.

Notes

  • The stores and the pick-up records are your data: they are kept when you uninstall and are there again after a reinstall.
  • Hours cannot pass midnight (use two days for a night shop). "Open now" uses the time zone of the shop.
  • The map needs the visitor to reach openstreetmap.org. Without coordinates a store has no map but still has a "Directions" link that searches by address.
  • The e-mail is sent when you press the button, not by a schedule. There is no SMS and no pick-up code.
  • The admin screens are in English only; the storefront text is translatable.
  • Tested on OpenCart 4.1.0.4, 4.0.2.3, 3.0.5.1 and 2.3.0.2 with the real admin installer (install, settings, stores, the stores page, the shipping choices read through the core, real orders through the order model, the e-mail into a test mail server, uninstall, reinstall). The store editor and the pick-up buttons on the admin page, the search box and the "Show on map" buttons on the stores page were syntax-checked but not clicked in a browser, and the checkout of the One Page Checkout module was not run with this method.

Screenshots

Supreme Store Locator and Click-and-Collect — Storefront stores
Storefront stores
Supreme Store Locator and Click-and-Collect — Admin settings part 1
Admin settings part 1
Supreme Store Locator and Click-and-Collect — Backend settings
Backend settings

More modules

You May Also Need.

Supreme Coupon Links

Put a coupon in a link: https://your-shop/?coupon=SPRING10 (or &coupon=SPRING10 on any page of the shop) and the coupon field of the visitor's cart is filled. Use it in e-mails, ads and social posts so shoppers never type a code. No monthly fee, no outside service, no core files changed.

See all OpenCart modules