Giter Site home page Giter Site logo

walish / magento2-mobiledetect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eadesgin/magento2-mobiledetect

0.0 2.0 0.0 32 KB

Mobile detect change theme and redirect based on device type. Magento 2 module.

Home Page: https://www.eadesign.ro

PHP 100.00%

magento2-mobiledetect's Introduction

Magento 2 Mobile Detect Theme Change

Build Status

Magento 2 Mobile detect system can be used to load different themes base on the client device (desktop, tablet, mobile). It uses the library https://github.com/serbanghita/Mobile-Detect.

How to use the module

The main configuration can be done under the Content > Design > Configuration. There (Design Rule > User Agent Rules) you can add user agent expressions.

  • add eadesign_is_mobile to load a theme for mobile
  • add eadesign_is_tablet to load a theme for tablet
  • add eadesign_is_desktop to load a theme for desktop

Under system configurations you need to enable the extension. Also there you will find 3 fields for redirects. If you add a url to the mobile field for example the user will be redirected to the url in there. This can be useful if you want to use a different website/store view url for the mobile theme.

Installation.

You can install the module via composer or manually by adding it to the app/code directory. The module is available on packagist.org.

Via composer

composer config repositories.magento2-mobiledetect git [email protected]:EaDesgin/magento2-mobiledetect;
composer require eadesignro/module-mobiledetect;
php bin/magento setup:upgrade;

Uninstall

You need to remove the module.

composer remove eadesignro/module-mobiledetect;

magento2-mobiledetect's People

Contributors

davidlambauer avatar eadesignro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.