gplcart-module device
Allows to detect user's device type (mobile, tablet) and switch to the corresponding theme
gplcart/device
Allows to detect user's device type (mobile, tablet) and switch to the corresponding theme
- Saturday, March 10, 2018
- by gplcart
- Repository
- 0 Watchers
- 0 Stars
- 2 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
, (*1)
Device Detector is a GPL Cart module that allows to detect user's device type (mobile, tablet) and switch to the corresponding theme. Based on Mobile Detect library, (*2)
Features, (*3)
- Defines user's device type and stores it in the user session
- Optionally switches to a specific theme
- Provides Mobile Detect library for other modules
Installation, (*4)
This module requires 3-d party library which should be downloaded separately. You have to use Composer to download all the dependencies., (*5)
- From your web root directory:
composer require gplcart/device
. If the module was downloaded and placed into system/modules
manually, run composer update
to make sure that all 3-d party files are presented in the vendor
directory.
- Go to
admin/module/list
end enable the module
- Adjust settings on
admin/module/settings/device
To get stored device type in your custom module: $_SESSION['device']. Available values are: desktop, mobile, tablet, (*6)
dev-master
9999999-dev
Allows to detect user's device type (mobile, tablet) and switch to the corresponding theme
Sources
Download
GPL-3.0+
GPL-3.0-or-later
The Requires
php
ecommerce
shopping cart
gplcart
gplcart module
dev-dev
dev-dev
Allows to detect user's device type (mobile, tablet) and switch to the corresponding theme
Sources
Download
GPL-3.0-or-later
The Requires
php
ecommerce
shopping cart
gplcart
gplcart module