PHPackages                             lizardmedia/module-cart-rule-mobile - 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. lizardmedia/module-cart-rule-mobile

ActiveMagento2-module

lizardmedia/module-cart-rule-mobile
===================================

Magento2 module adding custom cart rule for mobile devices

1.0.0(7y ago)21.2k2MITPHPPHP ^7.1.0

Since Aug 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lizardmedia/cart-rule-mobile-magento2)[ Packagist](https://packagist.org/packages/lizardmedia/module-cart-rule-mobile)[ RSS](/packages/lizardmedia-module-cart-rule-mobile/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/99bcb14bdd2a1d094c643c6dff829c5c6b64a0bff8d8107dae1706f23a4d6d37/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c697a6172646d656469612f636172742d72756c652d6d6f62696c652d6d6167656e746f322f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lizardmedia/cart-rule-mobile-magento2/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f281e1a2dd4a815045cd8d0a6f874f88909c6ad246ca6e23ed8c9614e9ab958a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c697a6172646d656469612f636172742d72756c652d6d6f62696c652d6d6167656e746f322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lizardmedia/cart-rule-mobile-magento2/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d64b581c66a53a3d8033fb2c021c2183da3518f866606b49b19ce20116bbd048/68747470733a2f2f706f7365722e707567782e6f72672f6c697a6172646d656469612f6d6f64756c652d636172742d72756c652d6d6f62696c652f762f737461626c65)](https://packagist.org/packages/lizardmedia/module-cart-rule-mobile)[![License](https://camo.githubusercontent.com/5731455734cad8b7b313272ce3e6d5722e5993a132e9e2e9e01979a48cc82ca5/68747470733a2f2f706f7365722e707567782e6f72672f6c697a6172646d656469612f6d6f64756c652d636172742d72756c652d6d6f62696c652f6c6963656e7365)](https://packagist.org/packages/lizardmedia/module-cart-rule-mobile)

Magento2 Cart Rule Mobile
=========================

[](#magento2-cart-rule-mobile)

A Magento2 module adding a custom Sales Rule for mobile devices.

It allows you to choose if the rule should be applied to mobile devices only or to desktop devices only.

#### Device detection

[](#device-detection)

The rule uses a user-agent-based detection system. If you wish to override the detection mthod simply change the implementation of `\LizardMedia\CartRuleMobile\Api\MobileDetectorInterface`.

Prerequisites
-------------

[](#prerequisites)

- Magento 2.2 or higher
- PHP 7.1

Installing
----------

[](#installing)

You can install the module by downloading a .zip file and unpacking it inside `app/code/LizardMedia/CartRuleMobile` directory inside your Magento or via Composer (required).

To install the module via Composer simply run

```
composer require lizardmedia/module-cart-rule-mobile

```

Than enable the module by running these command in the root of your Magento installation

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

```

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/lizardmedia/cart-rule-mobile-magento2/tags).

Authors
-------

[](#authors)

- **Maciej Sławik** - [Lizard Media](https://github.com/lizardmedia)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2841d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68c2484123c5a8f7a80ddce8b9e0f05f75c59739829102299aa6014a2c670c4f?d=identicon)[lizardmedia](/maintainers/lizardmedia)

---

Top Contributors

[![maciejslawik](https://avatars.githubusercontent.com/u/11910648?v=4)](https://github.com/maciejslawik "maciejslawik (1 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lizardmedia-module-cart-rule-mobile/health.svg)

```
[![Health](https://phpackages.com/badges/lizardmedia-module-cart-rule-mobile/health.svg)](https://phpackages.com/packages/lizardmedia-module-cart-rule-mobile)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[code4business/freeproduct2

Adds a sales rule action to add a product to cart. Can be used to create sales rules to add gifts to cart.

65167.1k](/packages/code4business-freeproduct2)[faonni/module-price

Rounding Price to Prettier Value for Multi-Currency Stores.

63120.9k](/packages/faonni-module-price)[buckaroo/magento2

Buckaroo Magento 2 extension

32404.0k6](/packages/buckaroo-magento2)[smile/module-gift-sales-rule

Extension of Magento2 Sales Rule to provide gifted (free) products.

34118.5k1](/packages/smile-module-gift-sales-rule)

PHPackages © 2026

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