Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    help question Script to display standard or mobile browser template for 1.3.9?

    I have an existing store based on a Zen Cart "PC browser" template. I just recently purchased a mobile device template. However, I cannot figure out how to have Zen Cart dynamically determine the browser type (PC vs. Mobile) and display the appropriate template.

  2. #2
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Script to display standard or mobile browser template for 1.3.9?

    put this in your httaccess folder


    RewriteEngine On # Check for mime types commonly accepted by mobile devices RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^ http://m.domain.com%{REQUEST_URI} [R,L]

    edit the last line appropriately

 

 

Similar Threads

  1. Where do I insert a Redirect Script for my mobile site?
    By Painted Hills NB in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Oct 2016, 06:17 PM
  2. v139h I bought a mobile template; how do I Mobile Device to Show Desktop version by Default
    By explorer1979 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Mar 2013, 03:42 PM
  3. Mobile CSS Template for Admin?
    By dgent in forum Addon Templates
    Replies: 0
    Last Post: 8 Nov 2011, 04:50 PM
  4. template for iphone/mobile userd
    By ballyc27 in forum Addon Templates
    Replies: 3
    Last Post: 6 Oct 2009, 01:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg