bnomei / kirby-kart
Streamlined E-Commerce Shopping Cart Solution
Requires
- php: >=8.3
- ext-intl: *
- getkirby/composer-installer: ^1.1
- s1syphos/php-simple-captcha: ^2.3
Requires (Dev)
- getkirby/cli: ^1.5
- getkirby/cms: ^6.0
- larastan/larastan: ^v3.0.0
- laravel/pint: ^1.13
- pestphp/pest: ^v3.5.1
- ramsey/uuid: ^4.7
- spatie/ray: ^1.39
- vlucas/phpdotenv: ^5.6
Suggests
None
Provides
None
Conflicts
- getkirby/cms: <6.0.0-stable
Replaces
None
- dev-main
- 6.1.2
- 6.1.0
- 6.0.0
- 5.17.2
- 5.17.1
- 5.17.0
- 5.16.0
- 5.15.3
- 5.15.1
- 5.15.0
- 5.14.6
- 5.14.5
- 5.14.4
- 5.14.3
- 5.14.2
- 5.14.1
- 5.14.0
- 5.13.0
- 5.12.4
- 5.12.3
- 5.12.2
- 5.12.1
- 5.12.0
- 5.11.2
- 5.11.1
- 5.11.0
- 5.10.10
- 5.10.9
- 5.10.8
- 5.10.7
- 5.10.6
- 5.10.5
- 5.10.4
- 5.10.3
- 5.10.2
- 5.10.1
- 5.10.0
- 5.9.1
- 5.9.0
- 5.8.3
- 5.8.1
- 5.8.0
- 5.7.3
- 5.7.2
- 5.7.1
- 5.7.0
- 5.6.9
- 5.6.8
- 5.6.7
- 5.6.6
- 5.6.5
- 5.6.4
- 5.6.2
- 5.6.1
- 5.6.0
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.1
- 5.4.0
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.3
- 5.1.1
- 5.1.0
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- dev-kirby-6
- dev-sync-with-delete
This package is auto-updated.
Last update: 2026-11-30 15:28:27 UTC
README
Streamlined E-Commerce Shopping Cart Solution
Kirby 6 compatibility
Kart 6.x supports Kirby 6 and requires PHP 8.3 or newer. Kirby 5 sites should stay on Kart 5.x.
Use a disposable checkout: composer testBefore replaces product, stock and order fixtures. Run composer kirby, composer testBefore, then KIRBY_HOST=kart.test composer test for the PHP suite.
In an Amp orb, run composer testBefore && tests/panel-smoke.sh for the Chromium check. It starts a loopback-only Panel, signs in with a temporary admin, checks catalog chips and gallery order, edits a price, verifies the stored price after reload, and opens Stocks and Orders. It removes its account and product and stops the server on exit. Run composer testAfter to remove the seeded catalog.
Existing kart-magic-link entries in auth.methods continue to enable frontend login/signup, in both list and map configurations. No configuration migration is required:
'auth' => [ 'methods' => ['password', 'kart-magic-link'], ],
Alternatively, include kart-magic-link in auth.challenges. Either option enables the frontend endpoints; omitting it from both disables them. The method flag adds no Panel login option.
Kart's frontend routes send signed standalone login links, independent of Panel second-factor requirements. Registering the challenge in auth.challenges also makes it available to Kirby's native authentication flows, where it uses Kirby's email-code form and second-factor rules.
Installation
- Composer:
composer require bnomei/kirby-kart:^6.1 - ZIP: unpack the v6.1.2 release into
site/plugins/kirby-kart. - Git submodule:
git submodule add https://github.com/bnomei/kirby-kart.git site/plugins/kirby-kart, thengit -C site/plugins/kirby-kart checkout v6.1.2.
Licensing
Kirby Kart is a commercial plugin that requires a license. You can install and test the plugin locally without a license. However, production environments require a valid license. You can purchase a license here.
Quickstart
- ⬇️ Install Kart using one of the methods above.
- 🏎️ Access the
/kart-route on your local setup to initialize Kart and start the demo. - 🪞 Copy the snippets and templates from the plugin into your project
site-folder. - 🎨 Modify the copied snippets and templates to match your projects style and site structure.
- 🔗 Link Kart to a Provider (like Stripe or Paypal) and fetch your products from them. Alternativly use Kirby to manage the products and the provider only for checkout.
- 💅 Enhance your products within Kirby with additional text, images and downloadable files.
- 🪪 Buy a license for Kirby Kart, register it in the config-file and go online with your shop.
- 💰 The streamlined shopping cart, invoices and downloads will make your customers happy.
- 📈 Track orders and remaining stock within Kirby.
Documentation
You can find the full documentation for Kirby Kart on its dedicated website.
Cart URL
The cart page defaults to /cart. To serve it at /warenkorb, add this to site/config/config.php:
return [ 'bnomei.kart.cart.page' => 'warenkorb', ];
Use a single slug made of lowercase letters, digits and hyphens, without a leading slash. Kart uses an existing Kirby
page with that slug if present; otherwise it renders its built-in cart template. In your own templates, link to
kart()->urls()->cart() so the link follows the setting. The /kart/… checkout endpoints are unchanged.
Provider feature matrix
| Provider | Hosted Checkout | Order Flow | Product sync | Hosted Portal | Invoice URL |
|---|---|---|---|---|---|
| chargebee | ✅ | return URL | ✅ | ✅ | ✅ |
| checkout | ✅ | return URL | - | - | - |
| fastspring | external | - | ✅ | - | - |
| gumroad | external | webhook | ✅ | - | ✅ |
| invoice_ninja | ✅ | webhook | ✅ | - | ✅ |
| lemonsqueezy | ✅ | return URL, webhook | ✅ | ✅ | ✅ |
| mollie | ✅ | return URL | - | - | - |
| paddle | JS snippet | return URL | ✅ | ✅ | ✅ |
| paypal | ✅ | return URL | ✅ | - | - |
| polar | ✅ | return URL | ✅ | - | ✅ |
| shopify | ✅ | webhook | ✅ | - | - |
| snipcart | JS snippet | webhook | ✅ | - | - |
| square | ✅ | return URL | - | - | ✅ |
| stripe | ✅ | return URL | ✅ | ✅ | ✅ |
| sumup | JS snippet | return URL | - | - | - |
Stripe invoice sync
Kart reads the Stripe invoice number and link on the checkout return when available. To also sync invoices that arrive
later, create a Your account → Snapshot webhook destination in Stripe Workbench
for invoice.paid only. Use the shop's HTTPS /kart/provider-webhook URL and set the endpoint signing secret (whsec_…)
as bnomei.kart.providers.stripe.webhook_secret (or STRIPE_WEBHOOK_SECRET with the DotEnv plugin). Use the same canonical
shop URL for checkout and webhook delivery, and a separate destination and secret for your Stripe sandbox.
The webhook only updates invoices for existing Kart orders from newly tagged checkouts. It does not create orders or
change fulfillment. Automatic late sync needs one free Stripe invoice metadata slot for kart_invoice_ref. If Stripe sends
the invoice before the checkout return creates the order, Stripe can retry delivery.
Provider product sync
For providers with product sync, configure their API credentials under bnomei.kart.providers.<provider> and grant read
access to the catalog. For example, Stripe needs bnomei.kart.providers.stripe.secret_key (or STRIPE_SECRET_KEY with the
DotEnv plugin) and access to both products and prices. If a refresh fails, the Panel shows an error without changing the
last cached catalog or its sync timestamp. If you copied the products blueprint into your site, replace the Sync Provider
button's link with dialog: '{< site.kart.urls.sync_dialog() >}'. The old link only opens Products; sync runs on dialog submission.
Shopify product metafields
Shopify product metafields can be added to the product's raw provider data with an allowlist of namespace.key values:
return [ 'bnomei.kart.providers.shopify.metafields' => [ 'custom.product_details', ], ];
The Shopify app needs the read_products and read_metaobjects access scopes. Scalar values and one level of referenced
metaobjects are available under $product->raw()->yaml()['metafields']; nested references are not resolved.
Disclaimer
This plugin is provided "as is" with no guarantee. You can use it at your own risk and always test it before using it in a production environment. If you find any issues, please create a new issue.
License
Kirby Kart License © 2025-PRESENT Bruno Meilick