viraxpress/restrict-checkout

Restrict Checkout for ViraXpress

Maintainers

Package info

github.com/viraxpress/RestrictCheckout

Type:magento2-module

pkg:composer/viraxpress/restrict-checkout

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-06-11 12:56 UTC

This package is auto-updated.

Last update: 2026-06-11 12:58:59 UTC


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

  1. Install the extension via Composer:

    composer require viraxpress/restrict-checkout
  2. 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

  1. In Magento Admin, go to Stores > Settings > Configuration.
  2. Open the ViraXpress tab and select Minimum Order Value Restriction.
  3. Enable the module and add one or more rules using the dynamic rule grid.
  4. For each rule, select:
    • Customer group
    • Restriction type: Subtotal or Grand 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.