viraxpress/restrict-checkout
最新稳定版本:1.0.0
Composer 安装命令:
composer require viraxpress/restrict-checkout
包简介
Restrict Checkout for ViraXpress
README 文档
README
A Magento 2 module that restricts checkout access based on customer group minimum order value rules.
Description
This extension allows store administrators to define checkout restrictions for specific customer groups. Rules can be configured with minimum order amounts and whether the restriction applies to cart subtotal or grand total. When a checkout attempt does not meet the configured criteria, the customer is redirected back to the cart with a custom error message.
Features
- Restrict checkout per customer group
- Apply minimum order restrictions based on subtotal or grand total
- Define custom error messages with placeholders
- Redirect invalid checkout attempts back to the cart
- Admin dynamic rule grid for multiple customer-group restrictions
- Overrides checkout link behavior to help prevent checkout when the minimum is not met
Compatibility
-- Magento: 2.4.x
Installation
-
Install the extension via Composer:
composer require viraxpress/restrict-checkout
-
Run the following commands from your Magento root directory:
php bin/magento module:enable ViraXpress_RestrictCheckout php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
Configuration
- In Magento Admin, go to
Stores > Settings > Configuration. - Open the
ViraXpresstab and selectMinimum Order Value Restriction. - Enable the module and add one or more rules using the dynamic rule grid.
- For each rule, select:
- Customer group
- Restriction type:
SubtotalorGrand Total - Minimum order amount
- Custom error message
Custom Error Message Placeholders
{{minimum_amount}}— Configured minimum amount{{order_subtotal}}— Current cart subtotal{{order_total}}— Current cart grand total
Support
For support, please contact ViraXpress at https://www.viraxpress.com or refer to the license agreement.
License
This extension is licensed under the ViraXpress license agreement. See https://www.viraxpress.com/license for details.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-06-11