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.
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
.
- Magento 2.2 or higher
- PHP 7.1
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
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Maciej Sławik - Lizard Media
This project is licensed under the MIT License - see the LICENSE file for details