lizardmedia / module-cart-rule-mobile
Magento2 module adding custom cart rule for mobile devices
Installs: 1 249
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.1.0
- magento/module-sales-rule: 101.*
Requires (Dev)
- phpunit/phpunit: >=7.0.0
This package is auto-updated.
Last update: 2024-12-22 06:37:18 UTC
README
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
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
- Magento 2.2 or higher
- PHP 7.1
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
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Maciej Sławik - Lizard Media
License
This project is licensed under the MIT License - see the LICENSE file for details