lizardmedia/module-cart-rule-mobile

Magento2 module adding custom cart rule for mobile devices

1.0.0 2018-08-02 15:22 UTC

This package is auto-updated.

Last update: 2024-12-22 06:37:18 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version License

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

License

This project is licensed under the MIT License - see the LICENSE file for details