mcpField
B
bagisto-shipping-method-development

bagisto-shipping-method-development

github.com/bagistoDevelopment13123 installsUpdated 2w ago
Repository

About bagisto-shipping-method-development

bagisto-shipping-method-development is a skill for building shipping methods in Bagisto. It covers the carrier architecture, rate calculation, configuration, and integrating carrier APIs.

Key features

  1. 01Configure carriers and rate logic
  2. 02Price by unit, order, or weight
  3. 03Add admin configuration forms
  4. 04Support channels and localization
  5. 05Integrate third-party APIs

Use cases

  1. 01Add shipping options to checkout
  2. 02Implement region-specific shipping rules
  3. 03Connect carriers such as FedEx or UPS
  4. 04Modify existing shipping settings

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bagisto/agent-skills --skill bagisto-shipping-method-development

After installing, type/bagisto-shipping-method-developmentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

carrier-api.md
implementation.md
reference.md

Details

From the project README

Shipping Method Development

Overview

Creating custom shipping methods in Bagisto allows you to tailor delivery options to meet your specific business needs. Whether you need special handling for fragile items, express delivery options, or region-specific shipping rules, custom shipping methods provide the flexibility your e-commerce store requires.

For our tutorial, we'll create a Custom Express Shipping method that demonstrates all the essential concepts you need to build any type of shipping solution.

When to Apply

Activate this skill when:

  • Creating new shipping methods
  • Integrating shipping carriers (FedEx, UPS, DHL, USPS, etc.)
  • Adding shipping options to checkout
  • Modifying existing shipping configurations
  • Creating admin configuration for shipping methods
  • Implementing rate calculation logic

Bagisto Shipping Architecture

Bagisto's shipping system is built around a flexible carrier-based architecture that separates configuration from business logic.

Core Components
ComponentPurposeLocation
Carriers ConfigurationDefines shipping method propertiesConfig/carriers.php
Carrier ClassesContains rate calculation logicCarriers/ClassName.php
System ConfigurationAdmin interface formsConfig/system.php
Service ProviderRegisters shipping methodProviders/ServiceProvider.php
Shipping FacadeCollects and manages ratesWebkul\Shipping\Shipping
Key Features
  • Flexible Rate Calculation: Support for per-unit, per-order, weight-based, or custom pricing.
  • Configuration Management: Admin-friendly settings interface.
  • Multi-channel Support: Different rates and settings per sales channel.
  • Localization Ready: Full translation support.
  • Extensible Architecture: Easy integration with third-party APIs.

Reference files — load only what the current task needs

FileLoad when
implementation.mdBuilding a carrier — the step-by-step guide
carrier-api.mdThe base carrier class and the CartShippingRate model
reference.mdBuilt-in carriers, pricing examples, the Shipping facade, package layout, testing, pitfalls

REQUIRED SUB-SKILL: Use bagisto-change-verification before calling any change done.

Comments

Markdown supported