Jump to content

PrestaShop™ 1.4.7.3 Mobile Template stop working


Recommended Posts

Do at ur Your risk

 

create a subdomain m

 

upload all mobile file on m folder

add this to header.tpl

<script type='mobile detect.js'></script>

<script type="text/javascript">DM_redirect("http://http://m.thrillofasia.com.au/");</script>

 

mobiledetectcode.js file

function DM_redirect(MobileURL, Home){

try {

// avoid loops within mobile site

if(document.getElementById("dmRoot") != null)

{

return;

}

var CurrentUrl = location.href

var noredirect = document.location.search;

if (noredirect.indexOf("no_redirect=true") < 0){

if ((navigator.userAgent.match(/(iPhone|iPod|BlackBerry|Android.*Mobile|BB10.*Mobile|webOS|Windows CE|IEMobile|Opera Mini|Opera Mobi|HTC|LG-|LGE|SAMSUNG|Samsung|SEC-SGH|Symbian|Nokia|PlayStation|PLAYSTATION|Nintendo DSi)/i)) ) {

 

if(Home){

location.replace(MobileURL);

}

else

{

location.replace(MobileURL + "?url=" + encodeURIComponent(CurrentUrl));

}

}

}

}

catch(err){}

}

Edited by Jiten rash (see edit history)
Link to comment
Share on other sites

Dear,

 

We got the same problem that we get a blank page. After deleting some js source it working now.

But we can't see our buttons we choose from the left side.

See attachment picture.

And when we clicking on "home page", then we really going to the home page of the full website.

 

What is wrong with that plug-in??

Why they don't upgrade that module to a good working one??

 

Thank you,

Dave.

post-527182-0-66310700-1376481808_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...