How to Disable the WAP Feature in ECSHOP

When you open an ECSHOP store on a mobile phone, it redirects to the mobile folder. If the WAP feature is enabled, you see the WAP version of the site. But nowadays smartphones are everywhere — iPhones and Android devices can browse and shop just like on a desktop, making this WAP feature rather useless. Here’s how to disable it.

Edit index.php and comment out or delete the following code:

$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 (!empty($Loaction))    {        ecs_header("Location: $Loaction/n");        exit;    }}

Leave a Comment

Your email address will not be published.