Skip to content

Shop Storefront

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/shop-storefront
Package slugshop-storefront
Product groupCapell Commerce
Tierpaid
Bundlecommerce
Runtime contextsadmin, frontend, shared
Capell version^1.0
Catalogue roleextension
Release channelBeta
Docs sourcepackages/shop-storefront/docs
Manifestcapell.json

You can add a Buy product block to a Capell page. On a product page, the block shows the product linked to that page. On other pages, you can pick a product option for each block. Shoppers can choose a quantity in each block.

If a price goes up while the page is open, the shopper sees the new price and must accept it before adding the item. If you take a product off sale, the block stops shoppers from adding it. Other products on the same page can still be added.

Shoppers can view their basket while they browse. At checkout they review the total before placing an order. They can return to the same browser to see whether the shop received payment.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/core ^1.0.80, capell-app/admin ^1.0, capell-app/frontend ^1.0.80, capell-app/layout-builder ^1.0, capell-app/shop ^1.0.13.
  • Install: composer require capell-app/shop-storefront:@beta.
  1. Install the package: composer require capell-app/shop-storefront:@beta.
  2. Open a host admin workflow that uses the package extension and verify Shop Storefront is available.

One purchase check serves linked product pages and editor-selected widgets. It resolves the current Shop catalogue when the buyer submits an offer, including offers opened before a price or availability change.

  • Configuration files: config/capell-shop-storefront.php.
  • Commands: php artisan shop-storefront:provision-pages.
  • Install the required Capell packages at the versions in composer.json: capell-app/core ^1.0.80, capell-app/admin ^1.0, capell-app/frontend ^1.0.80, capell-app/layout-builder ^1.0, capell-app/shop ^1.0.13.
  • Review middleware, throttling, signatures, and public-output safety in routes/web.php before exposing routes.
  • Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.

Product page with the Buy product block

The basket page with a line whose price changed since it was added

  • Product page with the Buy product block (frontend).
  • The basket page with a line whose price changed since it was added (frontend).
  • The checkout page asking for the buyer’s address (frontend).
  • The receipt page with bank transfer instructions for a pending order (frontend).
  • Required packages: capell-app/core, capell-app/admin, capell-app/frontend, capell-app/layout-builder, capell-app/shop.
  • Admin navigation: no admin page or resource contribution is declared.
  • Admin/editor extensions: content-widget: BasketWidgetContribution, content-widget: BuyWidgetContribution, content-widget: CheckoutWidgetContribution, content-widget: ReceiptWidgetContribution.
  • Permissions: no package permission declarations or Shield gates detected; host access rules still apply.
  • Public routes: loads routes/web.php; registers StorefrontRoutesContribution.
  • Database changes: no package migrations declared.
  • Config: config/capell-shop-storefront.php.
  • Settings: no package settings declared.
  • Queues or schedules: none declared.
  • Cache tags: none declared.
  • Commands: shop-storefront:provision-pages.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Route returns unexpected outputRoute cache, middleware, or signed URL setup does not match the package route fileCheck the route files listed in Technical ShapeClear route cache and verify middleware before exposing public routes
Public output leaks unexpected stateRender data, cache variation, or authoring boundary has regressedCheck public Blade, cache tags, and public-output safety testsMove data loading out of Blade and rerun the package public-output tests

No manual steps between minor versions.

Read CHANGELOG.md before upgrading.