Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default goMobile Support Thread

    Hi everyone, this is my first module contributed to zen so please be gentle.

    goMobile is a very simple alteration to the init templates file.

    It checks to see if the user is visiting the site using a mobile browser, if they are the site displays using a second (mobile specific) template.

    The module also includes details on offering a link to the full site if a user doesn't want to goMobile.

    This is a bit of a brute force method, you have to create a second template and all the extra files this incurs, but for me, I couldn't achieve the look I wanted for my site by just using media queries.

    Its live on my site now (motorcycleheaven.co.uk) and your welcome to have a look.

    This is the first version of the module and I have plans for future version including a bundled mobile template, improved template override and I'd like to clean up the extra images page my site uses, but if anyone has any other suggests please shout.


    goMobile in the downloads


    Enjoy
    Steve
    Last edited by Kim; 19 Aug 2011 at 09:00 PM.

  2. #2
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    Hi,

    Download link didn't work for me and I don't know what to make of your mobile sheet, looking at site in Firefox view css by handheld device.

    However, I am very impressed with your sites - templates and drop down menus.

    Where did you get them?

    SPH
    (Steve)
    www.prommart.com - main site
    www.-prom-mart.com - test site

    PS: Just wondering, are mobile sheets/sites necessary any more? I don't have a mobile device, but yesterday sister said sites look good, normal in hers. She has something larger than her old phone, though.

  3. #3
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: goMobile Support Thread

    sorry SPH

    heres the corrected link
    http://www.zen-cart.com/index.php?ma...oducts_id=1965

    its in the templates section if this doesn't work.



    The style sheet is a mess but I had a bit of confusion with them, this is the second site I have used this goMobile switch on, the first one looked for the mobile style sheet in the mobile template package but my site uses the normal style sheet in the mobile template.

    I would recommend anyone who wants to use this module, don't use my css as its very specific for my site (and a bit messy), I am working on adding a default template to the module.

    Heres a couple of screen grabs to show what it should look like


    Mobile site



    Full site







    If anyone's building or testing a mobile site I suggest you use firefox with the user agent switcher plugin

    http://chrispederick.com/work/user-agent-switcher/

    it lets you switch your browser to emulate a mobile device.




    SPH, Thanks for the kind comments about my site, its all done by me!
    If I get some time I 'll try and bundle up the dropdown menu, took ages but I'm pleased with the effect.
    It really just code I found around the web adapted to suit my needs.

  4. #4
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    Your mobile site jpg looks like our Apple Zen templates in Firefox's view css by handheld device tool: all aligned down the left side. I think this Apple Zen template is already handheld optimized somewhat (and supposedly is specially SEO optimized, we'll see). Clyde's zencartzen template is also handheld optimized, coming with a handheld stylesheet which moves everything in a long column down the left, viewed in Firefox css handheld tool.

    Yes, your sites are very impressive! Probably the most "tricked-out" zencarts I've seen, and done very professionally. Very nice work.

    Everything seems to make the sites a little slow compared with my site, but then mine is (or should be) lightening fast because there really isn't much on it yet.

    One of the reasons why testing Apple Zen is that we are hightly interested in a drop-down menu for some, if not all, of our sites. Your menus are very impressive and (assuming no issues) I would think a hit if offered as a mod...or even a commercial mod.

    You also have serious template design talent.

    sph
    www.prommart.com

  5. #5
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    PS: I do think that my custom tpl product info display may disrupt any Apple Zen handheld optimization on the products, using a table to place everything to right of main pic:

    prommart.com/index.php?main_page=product_info&cPath=115_14&products_id=3501

    If I could do it with divs it would be better.

    sph

  6. #6
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    Steve,

    I am just starting to dig into this... Can you post up a copy of your CSS and mobile layout for me to screw around with? I am confused on how many files I need to edit to get this to work. My site displays in English, Spanish, Italian, and German so I was thinking of using symbols for a majority of things and a really basic product description.


    I am still a newbie at web work.. normal coding for me is very old school plc and assembly stuff! Thanks again for getting us all started, I will do what I can to help contribute!

  7. #7
    Join Date
    Jun 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    I like this !

    currently adjusting for a mobile template myself.
    interesting in fact how different one has to look at the functional/pratical differences making it practical for the mobile user as a quick ordering tool. a just to the point order and buy site ; no extra stuff like on the regular site.

    a basic mobile template would be handy ;-)


    Guy

  8. #8
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    I am very interested in having my site mobile compatible. I noticed that there were no css stylesheets in the download area with gomobile.

    What files do I add to the new mobile template file? Just the one file? And where to start with a css stylesheet?

    Thanks, Kim

  9. #9

    Default Re: goMobile Support Thread

    Thanks for the goMobile mod! It's very useful when creating a mobile site.
    I may have found a slight problem, although I haven't tested it yet as I'm still busy building my mobile website.....

    It's to do with the 'switch to full site' button. I see it uses cookies, but if the user's browser doesn't support cookies or the user has them disabled, the site will keep bouncing back to the mobile one.

    Off the top of my head, maybe you could swap the button for a mesage if cookies are disabled.....although this isn't easy because on first load you don't know (without javascript) if cookies are enabled or disabled.
    Either that, or when they click the button, write their choice to the database?
    Only other thing I can think of would be to amend the zen_href_link function in includes/functions/html_output.php to always pass the 'fullsiteoverride' in the URL in the section where it tacks the zenid to the URL?
    Something like
    Code:
    if (isset($sid)) {
      $link .= $separator . zen_output_string($sid);
      if (isset($_GET['fullsiteoverride'])) $link .= '&fullsiteoverride=' . $_GET['fullsiteoverride'];
    }
    Not a big issue really but could be slightly annoying to users when they can't access the full website!

  10. #10
    Join Date
    Aug 2012
    Posts
    40
    Plugin Contributions
    0

    Default Re: goMobile Support Thread

    Is this confirmed to work in v1.5?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3629
    Last Post: 10 Jul 2024, 12:59 AM
  2. ZX Slideshow support thread
    By balihr in forum All Other Contributions/Addons
    Replies: 743
    Last Post: 30 Mar 2024, 02:26 AM
  3. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  4. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  5. PurpleShades Support Thread
    By kobra in forum Addon Templates
    Replies: 122
    Last Post: 18 May 2011, 07:18 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR