Ecshop with mobile phone access, will automatically jump to the/mobile directory, Ecshop comes with the WAP template is made with WML, if this situation, but also need to make a set of templates, too troublesome, is now the era of smartphones, WML template has not satisfied the demand, Therefore, the following proposals are proposed.
How to make phone terminal access to display the same interface as the computer terminal? Looking for a long time, is the following code in effect, delete can, find the root directory under index.php:
$ua = Strtolower ($_server[' http_user_agent '); $uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/I"; if (($ UA = = ' | | Preg_match ($uachar, $ua)) &&!strpos (Strtolower ($_server[' Request_uri ')), ' wap ') { $Loaction = ' mobile/' ; if (!emptyempty ($Loaction)) { Ecs_header ("Location: $Loaction \ n"); Exit; } }
then go to the background settings to open WAP:
ECSHOP Management Center--System settings--Store settings--wap settings--whether to turn on WAP function (on)
Transferred from: http://www.bcty365.com/content-104-1328-1.html
(reproduced) Ecshop the method of making mobile website