Skip to content

Latest commit

 

History

111 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minorder

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.

Highlights

  • 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

Project layout

  • lib/shopMinorder.plugin.php - plugin entrypoint and hook integration
  • lib/actions/ - backend actions and JSON controllers
  • lib/classes/ - domain services, providers, validators and helpers
  • lib/models/ - persistent settings model
  • lib/config/ - declarative plugin configuration and schema
  • templates/ - backend UI templates

Architecture notes

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

Development

The repository now includes a baseline PHP_CodeSniffer ruleset and EditorConfig settings.

Typical local workflow:

composer install
vendor/bin/phpcs

Compatibility

  • Shop-Script / Webasyst plugin
  • PHP 7.4+ recommended for local development

About

Shop-Script minimal order plugin.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Contributors

Languages