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

Overview

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;
You might also like...
SASS based version of Magento 2 Blank theme

Magento 2 - Blank theme - SASS version SASS based version of Magento 2 Blank theme, which aims to be as close to the core code as possible. Installati

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

LDAP-OSNAME-CHANGE-ALLOWER - This is my first php, hopefully last.
LDAP-OSNAME-CHANGE-ALLOWER - This is my first php, hopefully last.

LDAP-OSNAME-CHANGE-ALLOWER This PHP script allows SELF user to read and write the 'Operating System' property on the target computer/s. How was it dev

A PocketMine-MP Plugin that allow you to change your nickname to specific colors
A PocketMine-MP Plugin that allow you to change your nickname to specific colors

General Home A PocketMine-MP Plugin that allow you to change your display nametag to specific colors Made By BabosApple And Updated To PM4 By ZhorifCr

A plugin for Pocketmine-MP to change gamemode with ui
A plugin for Pocketmine-MP to change gamemode with ui

GamemodeUI A Plugin For Pocketmine-MP To Change Gamemode With UI 💾 Config # GamemodeUI plugin # Made By FlynnKunz and fernanACM ##############

Replace, concat strings or change number fields permanently using Grid Options
Replace, concat strings or change number fields permanently using Grid Options

It's Pimcore Bundle to replace ,concat strings or change number fields permanently using Grid Options. It will save replaced strings directly in object.

Library for PHP 7.4+ to detect Browsers and Devices

This library requires PHP 7.4+. Also a PSR-3 compatible logger and a PSR-16 compatible cache are required. In

Library allows to detect emoji, remove emoji, encode emoji and decode emoji in string.

It allows to detect emoji, remove emoji, encode emoji and decode emoji in string. Installation composer require anisimov/emoji How to use Encode and

Helps detect the user's browser and platform at the PHP level via the user agent

cbschuld/browser.php Helps detect the user's browser and platform at the PHP level via the user agent Installation You can add this library as a local

Comments
  • Breaks the install on Magento 2.2

    Breaks the install on Magento 2.2

    Following error on Magento 2.2:

      Problem 1
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.7
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.6
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.5
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.4
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.2
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.1
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.7
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.6
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.5
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.4
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.2
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.1|remove magento/framework 101.0.2
        - Conclusion: don't install eadesignro/module-mobiledetect 1.1.1|don't install magento/framework 101.0.2
        - Installation request for eadesignro/module-mobiledetect ^1.1 -> satisfiable by eadesignro/module-mobiledetect[1.1.1, 1.1.2, 1.1.4, 1.1.5, 1.1.6, 1.1.7].
        - eadesignro/module-mobiledetect 1.1.1 requires magento/framework 100.1.* -> satisfiable by magento/framework[100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7, 100.1.8, 100.1.9, 100.1.10, 100.1.11].
        - Can only install one of: magento/framework[101.0.2, 100.1.0].
        - Can only install one of: magento/framework[101.0.2, 100.1.1].
        - Can only install one of: magento/framework[101.0.2, 100.1.2].
        - Can only install one of: magento/framework[101.0.2, 100.1.3].
        - Can only install one of: magento/framework[101.0.2, 100.1.4].
        - Can only install one of: magento/framework[101.0.2, 100.1.5].
        - Can only install one of: magento/framework[101.0.2, 100.1.6].
        - Can only install one of: magento/framework[101.0.2, 100.1.7].
        - Can only install one of: magento/framework[101.0.2, 100.1.8].
        - Can only install one of: magento/framework[101.0.2, 100.1.9].
        - Can only install one of: magento/framework[101.0.2, 100.1.10].
        - Can only install one of: magento/framework[101.0.2, 100.1.11].
        - Installation request for magento/framework (locked at 101.0.2) -> satisfiable by magento/framework[101.0.2].
    
    
    
    opened by sinclairfr 2
  • Incompatilble with your PHP Version

    Incompatilble with your PHP Version

    [InvalidArgumentException] Package eadesignro/module-mobiledetect at version has a PHP requirement in compatible with your PHP version (7.2.18)

    I've checked composer.json "php": "~5.6.5|7.0.2|7.0.4|~7.0.6|7.0.25|~7.1.3|~7.2.0", how solve this?

    opened by derting 0
  • Unable to unserialize value, string is corrupted.

    Unable to unserialize value, string is corrupted.

    The following issue occurs when "Redirect to url" enabled:

    "Unable to unserialize value, string is corrupted"

    Please help me to resolve this issue.

    Magento ver. 2.2.5 php 7.1.29

    opened by mktas 0
Releases(1.1.7)
Owner
EAdesign
Magento development company from Iasi, Romania.
EAdesign
This is an experiment to export all RFCs from the PHP wiki into Git, including the change history for each RFC (along with the date and author of each change). This is not meant to replace the wiki.

PHP Requests for Comments (RFCs) About This repository is an experiment to export all RFCs from the PHP wiki into Git, including the change history fo

Ben Ramsey 34 Jun 20, 2022
Foundation 3 Framework for Magento 1.7. Foundation styles and libraries. Magento Responsive theme. Off-canvas Left-Right sidebar columns for mobile.

Magento Foundation 3 Framework Zurb Foundation 3 framework for Magento 1.7. Magento Foundation 3 Version 1.3.0. Demo page: http://magendation.internet

Nando Boronat 62 Apr 1, 2022
The main scope of this extension is to help phpstan to detect the type of object after the Assert\Assertion validation.

PHPStan beberlei/assert extension PHPStan beberlei/assert Description The main scope of this extension is to help phpstan to detect the type of object

PHPStan 33 Jan 2, 2023
Magento 2 Module that adds Donation Product Type. Enables the customer to add a donation (product) of a preferred amount to the cart.

Magento 2 Module Experius DonationProduct (RC1.0) Demo website: https://donationproduct.experius.nl Magento Marketplace: https://marketplace.magento.c

Experius 23 Apr 1, 2022
Nagios/Icinga plugin for checking SATEON field network device status

check_sateon Nagios/Icinga plugin for checking SATEON field network device status Max.Fischer [email protected] Tested on CentOS GNU/Linux 6.5 with Ici

null 1 May 27, 2022
Rules to detect game engines and other technologies based on Steam depot file lists

SteamDB File Detection Rule Sets This is a set of scripts that are used by SteamDB to make educated guesses about the engine(s) & technology used to b

Steam Database 103 Dec 14, 2022
React Native mobile app for Magento 2.x

Open source React Native mobile app for Magento 2 Magento React Native is a fully functional eCommerce App for your Magento 2 website. It uses Magento

Dima Portenko 290 Dec 1, 2022
Magento 2 Module Experius Page Not Found 404. This module saves all 404 url to a database table

Magento 2 Module Experius Page Not Found 404 This module saves all 404 urls to a database table. Adds an admin grid with 404s It includes a count so y

Experius 28 Dec 9, 2022
Rocket Web Prime theme based on Magento Blank that includes our most common customizations.

RW Prime - Magento 2 boilerplate theme RW Prime theme is based on Magento Blank and includes our most common customizations that we make on the majori

Rocket Web FED 37 Aug 8, 2022