Minorder is a Shop-Script plugin that enforces minimum order rules on the storefront and checkout flow. It supports global limits, shipping-specific limits, category-specific limits, and product-specific limits with customizable frontend messages.
- storefront-aware settings, including a fallback configuration for
* - validation for cart, checkout and order steps
- separate messages for common errors and item-level product warnings
- backend dialogs for category, product and storefront configuration
- import/export support for plugin settings
lib/shopMinorder.plugin.php- plugin entrypoint and hook integrationlib/actions/- backend actions and JSON controllerslib/classes/- domain services, providers, validators and helperslib/models/- persistent settings modellib/config/- declarative plugin configuration and schematemplates/- backend UI templates
The Shop-Script runtime still relies on its own legacy class loader, so the production code in lib/ keeps the original plugin class names for compatibility. New tooling has been prepared around that constraint:
- Composer metadata is included for local tooling and future extraction work
- the internal service layer is split by responsibility: storefront resolution, settings access, cart inspection, validation, and message formatting
The repository now includes a baseline PHP_CodeSniffer ruleset and EditorConfig settings.
Typical local workflow:
composer install
vendor/bin/phpcs- Shop-Script / Webasyst plugin
- PHP 7.4+ recommended for local development