Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2011
    Posts
    18
    Plugin Contributions
    0

    Default Need Help with Go Mo

    I am using GoMO from Google to build a mobile version of my website.

    http://www.coppercreekammo.com

    As you can see my zen cart loads as my homepage when users access my site. For the mobile redirect to work properly you are to place the code in the <head> of your index.html file. However, zen cart doesn't use the index.html as we know.

    The question is, Where do I place this code so my site will redirect when people go from their mobile phones?

    Thank you for any help!
    Josh

  2. #2

    Default Re: Need Help with Mobile Website

    <head> stuff is located in includes/templates/YOUR_TEMPLATE/common/html_header.php

    you can find this out by using something like notepad++ which allows you to search through files looking for text, in this case <head> :) Also in the admin there is a developers toolkit which does the same

    Good luck!

  3. #3
    Join Date
    Sep 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Need Help with Mobile Website

    Quote Originally Posted by barricades View Post
    <head> stuff is located in includes/templates/YOUR_TEMPLATE/common/html_header.php

    you can find this out by using something like notepad++ which allows you to search through files looking for text, in this case <head> :) Also in the admin there is a developers toolkit which does the same

    Good luck!
    <head> is at the top of every page as it is the start of the header section for the page. I understand how to use the developer tool kit and even search the files on my host file manager. However, what i was curious about is if anyone knew which file was the root directory since zen cart doesn't utilize the index.html file.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need Help with Mobile Website

    I suppose you could say that index.php is the "root" since that is the file that URLs are based on, but the question is really irrelevant. Barricades gave you the right answer. You would either add the relevant code to html_header.php or put it in a jscript_something.js or jscript_something.php file to be autoloaded in the <head> section. How you handle it depends on exactly what you need to happen.

    html_header.php builds the <head> section for every page of Zen Cart (with possibly a few exceptions).

  5. #5
    Join Date
    Sep 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Need Help with Mobile Website

    My apologies, I didnt read correctly. However, you both were right the html_header file in my template theme was exactly what i needed. Thank you both for your help.

  6. #6
    Join Date
    Nov 2012
    Posts
    3
    Plugin Contributions
    3

    Default Re: Need Help with Mobile Website

    Just found an article in blogger may help you solve this issue. Recommended for any mobile users.

    http://kancart.blogspot.jp/2012/11/m...t-kancart.html



    MODERATOR COMMENT: ALERT: This self-promoting post was made by kancart. Beware of the risks of using something they won't give proper disclosure about.

  7. #7
    Join Date
    Nov 2012
    Posts
    3
    Plugin Contributions
    3

    Default Re: Need Help with Mobile Website

    Sorry... I apologize for my improper behavior...

 

 

Similar Threads

  1. Need detailed help with comparing and merging override files with winmerg
    By AirsoftOutfitter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 31 Aug 2010, 07:52 AM
  2. Need help with stylesheet - Need to delete the categories
    By annav in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jun 2009, 12:41 PM
  3. Need help with Processing CC with Sage Payments
    By Essential Graphics in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Apr 2009, 04:40 PM
  4. Need Help with a couple of issues with the shop
    By chrisb in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Oct 2006, 12:36 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