Download the PHP package kishorthummar/module-cartrule-ipvalidation without Composer

On this page you can find all versions of the php package kishorthummar/module-cartrule-ipvalidation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-cartrule-ipvalidation

Magento 2 Cart Rule IP Based Validation Extension

An Adobe Commerce / Magento 2 extension that adds IP-address-based usage limiting to Cart Price Rules (Sales Rules / Coupons), closing a gap in Magento's native coupon usage-limit logic — most notably for guest checkouts.


1. The Magento Limitation

Adobe Commerce ships with two coupon usage-limit fields on every Cart Price Rule:

Field What it actually limits
Uses per Coupon Total number of times a single coupon code can be used, across all customers combined.
Uses per Customer Number of times one logged-in customer account can use the coupon.

The admin form itself is explicit about the gap — the "Uses per Customer" field carries the note:

"Usage limit enforced for logged in customers only."

This means:

Net effect: any cart price rule intended as "one use per customer" is only reliably enforced for customers who log in and use one account — which, for public/marketing coupon codes, is often not the majority case.


2. How This Extension Resolves It

This module adds a secondary, independent usage-limit dimension based on IP address, layered on top of (not replacing) the existing "Uses per Customer" logic — enforced for both guests and logged-in customers.

What's added

What this does not change


3. Installation

Option A — Composer (recommended)

Option B — Manual installation

  1. Create the module directory:

  2. Copy/extract the module source into that directory, preserving the folder structure (Model/, Plugin/, Observer/, etc/, view/, Setup/, registration.php, etc.).
  3. Enable and install:

Post-install configuration

  1. In the Admin panel, go to Stores → Configuration → Sales → Cart Rule IP Validation and set Enable to Yes. This is the global master switch — the feature is enabled by default.
  2. Go to Marketing → Cart Price Rules, open (or create) a rule, and locate the "Enable IP Validation" and "Uses per IP" fields directly below "Uses per Customer".
  3. Enable IP Validation on the rule and set a numeric Uses per IP value (leave blank for unlimited — usage will still be tracked but not enforced).
  4. Save the rule.

If the global switch (step 1) is left disabled, the two fields above will not appear on the Cart Price Rule form at all, and no IP validation or usage tracking occurs anywhere in the store.


4. Important Caveats (Limitations of IP-Based Validation)

IP-based validation is a supplementary fraud-reduction layer, not a precise or foolproof identity control. Please account for the following before enabling it broadly:


5. Support

For issues, questions, or feature requests related to this extension, please open an issue in the module's repository.


All versions of module-cartrule-ipvalidation with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
magento/framework Version *
magento/module-sales-rule Version *
magento/module-sales Version *
magento/module-checkout Version *
magento/module-config Version *
magento/module-store Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kishorthummar/module-cartrule-ipvalidation contains the following files

Loading the files please wait ...