Build a Sellissimo extension
Generate a local shipping provider, enable its handle, and test its rates.
Generate and install a provider#
Run the following in a development store with Sellissimo core installed:
php artisan sellissimo:make-extension shipping "Local Courier"
composer config repositories.local-courier path addons/sellissimo/local-courier-shipping
composer require store-extensions/local-courier-shipping:@dev
The generator creates a Composer package, discoverable service provider, implementation, and a starter test. In its service provider, register the shipping implementation with Sellissimo's shared registry. Add local_courier to the shipping list when ready.
Verify the quote#
Replace the sample free pickup quote with your service's rates for the physical lines, destination, and currency. Use stable service handles and integer minor-unit amounts. Run the generated tests in a host with PHPUnit:
vendor/bin/phpunit addons/sellissimo/local-courier-shipping/tests
Quote a matching destination in checkout and then an unsupported one. Check the service label and total. Core also ships a working local-pickup example in examples/local-pickup.
Other extension points#
Use sellissimo:make-extension payment "Acme Pay" for a gateway or sellissimo:make-extension discount "Member Rate" for a discount rule. Enable their handles in payments or discount_rules respectively. A gateway must recover the same checkout session after retries, verify the authoritative amount and currency, and use the refund ID to deduplicate refunds. The generated gateway needs a real implementation before it can start a payment.
Carrier-label extensions register a carrier under the shipping provider handle. They use the booking ID for repeatable label purchases. Tax providers return class rates in basis points and the address fields they require. See Outgoing webhooks to integrate a separate application.