# inpost/magento2-module-restrictions

> Module allows for configuration of restrictions for products not handled by InPost Pay.

`composer require inpost/magento2-module-restrictions`

Canonical URL: https://packagento.com/inpost/magento2-module-restrictions

## At a glance

- **Vendor**: inpost (https://packagento.com/inpost.md)
- **Latest version**: v2.7.0 — released 2026-04-10
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/inpost/magento2-module-restrictions and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require inpost/magento2-module-restrictions:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Module allows for configuration of restrictions for products not handled by InPost Pay.

## README

Module allows for configuration of restrictions for products not handled by InPost Pay.

### Compatibility

Compatibility and dependency requirements are defined in [`composer.json`](composer.json).

### Installation

```bash
composer require inpost/magento2-module-restrictions
bin/magento module:enable InPost_Restrictions
bin/magento setup:upgrade
```

### License

This plugin is licensed under the Creative Commons BY-NC-ND 4.0 License.

You are free to use this plugin in its original, unmodified form for non-commercial purposes only.
Redistribution, modification, and commercial use are strictly prohibited.

License details: http://creativecommons.org/licenses/by-nc-nd/4.0/

## Changelog

All notable changes to this project will be documented in this file.

### [2.0.0] - 2025-01-17

#### Fixed

- Fixed modules dependencies by moving custom logger injection from InPost_Restriction module to InPost_InPostPay module

### [1.0.8] - 2024-09-05

#### Added

- Configuration that allows to set up CRON process for refreshing restricted products list
- CRON job that deletes and regenerates all products restricted by configured restriction rules

### [1.0.7] - 2024-08-08

#### Added

- Configuration that separates delivery methods for restrictions allowing to restrict for example only pickup points

#### Changed

- Data sent to InPost Pay API - reduced available deliveries if basket item is restricted
- Data sent to InPost Pay API - information about product allowed delivery methods

### [1.0.0]

- Initial version

## Recent Versions

| Version | Released |
|---|---|
| v2.7.0 | 2026-04-10 |
| v2.7.1 | 2026-04-10 |
| 2.4.2 | 2026-03-24 |
| v2.6.0 | 2026-02-10 |
| v2.6.1 | 2026-02-10 |
| v2.6.2 | 2026-02-10 |
| 2.5.0 | 2026-01-29 |
| 2.4.1 | 2025-11-26 |
| 2.4.0 | 2025-11-04 |
| 2.3.1 | 2025-10-22 |

Showing 10 of 15 versions. Full release history on https://packagento.com/inpost/magento2-module-restrictions.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | * |
| magento/module-catalog-rule | * |
| magento/module-ui | * |
| monolog/monolog | * |
| php | >=8.1 |
| psr/log | * |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["inpost/magento2-module-restrictions"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

inpost is a Magento 2 vendor on Packagento. See https://packagento.com/inpost.md for their full catalogue.

