- What is phpsa/sc-free-shipping?
- phpsa/sc-free-shipping is a Laravel/PHP package that adds free-shipping logic to Statamic Simple Commerce storefronts. It lets you define rules that make qualifying carts or orders ship at no cost. It is intended as a reusable component rather than a full shipping engine.
- How do I install phpsa/sc-free-shipping?
- Install it with Composer using composer require phpsa/sc-free-shipping. After installation, review the package README for any required configuration or publishing steps. In Laravel projects, package discovery may handle service provider registration automatically, but confirm against the version you install.
- Does this package work with Laravel?
- Yes, it is built as a Laravel/PHP package and is designed for projects using Statamic Simple Commerce. You should verify compatibility with your specific Laravel and Statamic versions. The package sits within the Laravel application layer rather than replacing Simple Commerce shipping.
- Which Statamic Simple Commerce versions are supported?
- The package is specifically targeted at Statamic's Simple Commerce addon. Supported Simple Commerce versions should be confirmed in the package's composer.json and README before upgrading. Test against your storefront's current Simple Commerce release.
- How do I define free-shipping rules?
- Free-shipping rules are defined through the package's configuration and application code, then applied in the cart or checkout flow. Typical rules check order value, cart contents, destination, or other store conditions. Follow the README for the exact rule definitions supported by your installed version.
- How does it integrate with cart and checkout?
- The module provides free-shipping logic that you call from your cart or checkout implementation. It helps determine whether an order qualifies and applies the no-cost shipping result to that flow. Integration details depend on your Simple Commerce setup and the package version.
- Can I test free shipping locally?
- Yes, you can test the rules in a local Laravel application using Statamic Simple Commerce. Cover qualifying and non-qualifying carts, boundary values, and cart changes before checkout. Add automated tests around your own rule configuration where possible.
- Is phpsa/sc-free-shipping production ready?
- It is suitable for projects that need a simple, reusable free-shipping component, but production readiness depends on your version and testing. Run it through your own checkout scenarios, including edge cases and currency or destination rules. Review the repository for recent commits and issue activity before deploying.
- What are alternatives to this package?
- Alternatives include building free-shipping logic directly in your Simple Commerce checkout, using Simple Commerce's built-in shipping features where available, or another shipping or promotions package. This package is narrow in scope, so compare it against your need for complex shipping rates or carrier integrations.
- Who maintains phpsa/sc-free-shipping?
- The package is published under the phpsa Composer vendor namespace and maintained through its GitHub repository. Check the repository for maintainer activity, releases, and open issues. For long-term projects, confirm that the package's supported Laravel and Simple Commerce versions match your stack.