lizardmedia / cart-rule-mobile-magento2

Magento2 module adding custom cart rule for mobile devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Magento2 module adding custom cart rule for mobile devices

License:MIT License


Languages

Language:PHP 100.0%