How sameday-courier/woocommerce-plugin works
This is a WooCommerce shipping plugin that exposes Sameday Courier delivery at checkout and gives store administrators tools to manage courier data and AWBs. The customer flow is choosing a Sameday service during checkout and placing an order; the administrator flow then generates an AWB and can add parcels, view its PDF or history, or remove it. Separate capabilities include importing services and delivery locations, managing pickup points, and configuring the shipping method. The excerpts show selected controller, import, and shipping-method interactions; other links reflect README-documented capabilities.
Main entry points: AllImportController.php Bulk import · SamedayCourier.php Shipping method · Awb AWB administration · Services.php Admin catalog grids
Components 18
Checkout shipping
- Shipping method
classes/Infrastructure/Woo/Shipping/Method/SamedayCourier.php
Admin operations
- AWB administration
classes/Infrastructure/Wordpress/Http/Controllers/Awb - Bulk import
classes/Infrastructure/Wordpress/Http/Controllers/Import/AllImportController.php - Admin catalog grids
classes/Infrastructure/Woo/Admin/Grid/Service/Services.php
Application workflows
- AWB workflows
classes/Application/UseCases/Awb - Import workflows
classes/Application/UseCases/Import/StartAllImport - Catalog refresh
classes/Application/UseCases/Service/Refresh/RefreshService.php - Location refresh
classes/Application/UseCases/City/Refresh - Pickup point management
classes/Application/UseCases/PickupPoint
Courier domain
- Service selection
classes/Domain/CarrierServiceSelector.php - Carrier services
classes/Domain/Models/CarrierService.php - Service rules
classes/Domain/CarrierServiceRules.php
Platform integration
- Admin controllers
classes/Infrastructure/Wordpress/Http/Controllers/AbstractController.php - Bulk job state
classes/Infrastructure/Wordpress/Http/Controllers/AbstractRecursiveBulkController.php
Other components
- Shopper
- Store admin
- Sameday Courier
- WooCommerce
Connections 19
- Shopper → Shipping method: chooses service
- Shipping method → Service selection: selects eligible
classes/Infrastructure/Woo/Shipping/Method/SamedayCourier.php - Service selection → Carrier services: returns services
- Shipping method → WooCommerce: registers shipping
- Store admin → Admin controllers: submits actions
- Admin controllers → AWB administration: routes requests
- AWB administration → AWB workflows: executes AWB actions
- AWB workflows → Sameday Courier: manages AWBs
- Store admin → Bulk import: starts import
- Bulk import → Import workflows: processes import
classes/Infrastructure/Wordpress/Http/Controllers/Import/AllImportController.php - Bulk import → Catalog refresh: executes refresh
classes/Infrastructure/Wordpress/Http/Controllers/Import/AllImportController.php - Bulk import → Location refresh: executes refresh
classes/Infrastructure/Wordpress/Http/Controllers/Import/AllImportController.php - Bulk import → Bulk job state: stores job state
classes/Infrastructure/Wordpress/Http/Controllers/AbstractRecursiveBulkController.php - Catalog refresh → Sameday Courier: loads services
- Location refresh → Sameday Courier: loads locations
- Store admin → Pickup point management: manages pickup points
- Pickup point management → Sameday Courier: updates pickup point
- Store admin → Admin catalog grids: reviews services
- Admin catalog grids → Carrier services: displays catalog
classes/Infrastructure/Woo/Admin/Grid/Service/Services.php