PHPackages                             yireo/magento2-salesblock2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. yireo/magento2-salesblock2

ActiveMagento2-module[Security](/categories/security)

yireo/magento2-salesblock2
==========================

Block transactions based on various rules

2.2.7(6mo ago)41.4k1[1 PRs](https://github.com/yireo/Yireo_SalesBlock2/pulls)3OSL-3.0PHPCI failing

Since Aug 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_SalesBlock2)[ Packagist](https://packagist.org/packages/yireo/magento2-salesblock2)[ Docs](https://www.yireo.com/software/magento-extensions/salesblock2)[ RSS](/packages/yireo-magento2-salesblock2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (21)Used By (3)

Yireo SalesBlock2 for Magento 2
===============================

[](#yireo-salesblock2-for-magento-2)

Prevent Magento 2 orders from being placed, based on specific rules.

Also see [yireo.com/software/magento-extensions/salesblock2](https://www.yireo.com/software/magento-extensions/salesblock2)

Installation
------------

[](#installation)

To install this module, use composer:

```
composer require yireo/magento2-salesblock2
```

Afterwards, enable the module and run the setup upgrade, to make sure the database table is properly created:

```
bin/magento module:enable Yireo_SalesBlock2
bin/magento setup:upgrade
```

Next, install (and enable) one or more of the additional plugins. Without these plugins, the SalesBlock2 extension will not work:

- [github.com/yireo/Yireo\_SalesBlock2ByIp](https://github.com/yireo/Yireo_SalesBlock2ByIp)
- [github.com/yireo/Yireo\_SalesBlock2ByEmail](https://github.com/yireo/Yireo_SalesBlock2ByEmail)
- [github.com/yireo/Yireo\_SalesBlock2ByGeo](https://github.com/yireo/Yireo_SalesBlock2ByGeo) (also requires the PHP GeoIP module)

Usage
-----

[](#usage)

Navigate in the Magento Admin Panel to the Store Configuration to enable this module. Then, navigate in the Magento Admin Panel to **Sales &gt; Sales Block Rules** to configure a rule. A rule consists of the following parts:

- **Enable**: Yes or no.
- **Label**: For managing things in your backend.
- **Conditions**: One or more conditions that **all** need to be met, before the rule is a match. The conditions are activated only through additional modules (see above). For instance, you could say that you are blocking sales for a person, coming from a certain IP range **and** using a specific email address.
- **Frontend label**: The message to display to the blocked customer on the frontend.
- **Frontend text**: An additional explanation to display to the blocked customer.

For additional details, see the READMEs of all submodules.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance73

Regular maintenance activity

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~145 days

Recently: every ~140 days

Total

19

Last Release

202d ago

Major Versions

1.0.0 → 2.0.02018-11-29

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

2.0.1PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (142 commits)")

---

Tags

magentocomposer-installer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yireo-magento2-salesblock2/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-salesblock2/health.svg)](https://phpackages.com/packages/yireo-magento2-salesblock2)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
