Skip to content

Add minimum order amount settings#59

Merged
roncodes merged 2 commits intodev-v0.4.8from
feature/add-minimum-order-amount-setting
Dec 5, 2025
Merged

Add minimum order amount settings#59
roncodes merged 2 commits intodev-v0.4.8from
feature/add-minimum-order-amount-setting

Conversation

@roncodes
Copy link
Copy Markdown
Member

This PR adds minimum order amount settings to both store and network configurations.

Changes

  • Added required_checkout_min toggle setting to enable/disable minimum order amount requirement
  • Added required_checkout_min_amount MoneyInput field for setting the minimum amount
  • Settings are positioned after the tax configuration in both:
    • Store settings (addon/templates/settings/index.hbs)
    • Network settings (addon/templates/networks/index/network/index.hbs)
  • MoneyInput field only displays when the toggle is enabled
  • Uses the store/network currency for proper formatting

Implementation Details

  • The toggle uses @model.options.required_checkout_min for the enabled state
  • The amount input uses @model.options.required_checkout_min_amount for the value
  • MoneyInput component properly handles currency formatting based on @model.currency
  • Follows the same pattern as the existing tax settings for consistency

- Added required_checkout_min toggle setting
- Added required_checkout_min_amount MoneyInput field
- Settings appear after tax configuration in both store and network settings
- MoneyInput field only displays when toggle is enabled
- Added enable-minimum-order-amount toggle label
- Added minimum-order-amount input label
- Added minimum-order-amount-help-text
- Keys added for both store and network settings sections
@roncodes roncodes changed the base branch from main to dev-v0.4.8 December 5, 2025 09:52
@roncodes roncodes merged commit 2213eb8 into dev-v0.4.8 Dec 5, 2025
4 checks passed
@roncodes roncodes deleted the feature/add-minimum-order-amount-setting branch December 5, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant