Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    22
    Plugin Contributions
    0

    help question Where do I insert a Redirect Script for my mobile site?

    I inherited this project after it was up and running so I am not certian of all the answers from the Posting Tips: here goes.
    1. We are presently using: v1.3.9h.
    2. I don't believe it has been upgraded.
    3. Addons??? How would I determine this?
    4. We use FTP.
    5. Since I was not part of this project from the set up, I do not know what has been customized other than text and images added to pages.



    I've searched the Forum and the FAQs, althought there are other redirect posts, they mainly focus on web maintainence or discontinued product. I have created a mobile site using GoMo - a Google inititave, powered by duda mobile. After creating the mobile site I received the following email:

    We noticed that your mobile site http://mobile.dudamobile.com/site/natural-beef is live but your website visitors browsing on their phones still see your regular website. To get the most out of your mobile website, make sure your mobile visitors are directed to your mobile site by adding what we call a redirect script to your desktop website.
    The following instructions were given for the redirect code.

    1. Open your website index.html file and paste the redirect code into the <head> tag

    Redirect Code:
    <script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script> <script type="text/javascript"> DM_redirect("http://mobile.dudamobile.com/site/natural-beef"); </script>

    2. Save the index.html file and browse your site on your phone
    The only index.html file I could find is in the includes folder. Unfortunately, inserting the code into the head tag did nothing at all.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  2. #2
    Join Date
    Jan 2004
    Posts
    58,459
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Where do I insert a Redirect Script for my mobile site?

    Oy ...
    I question the suitability of that sort of alternative mobile site.
    But I'm sure you didn't start this thread to debate your choice. You only want to know which file to use instead of the index.html they suggested.

    Put ALL of that code into a new file located at: /includes/templates/NAME_OF_YOUR_LIVE_DESKTOP_TEMPLATE_FOLDER/jscript/jscript_duda.php
    Create the jscript folder there if necessary.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    22
    Plugin Contributions
    0

    Default Re: Where do I insert a Redirect Script for my mobile site?

    Thank you for the reply. Your time is indeed appreciated. However, we decided that the redirect was an inferior option as this would force mobile users away from our main site. The mobile site is for promotional use with QR codes and is not meant to be a substitute for the information on our main "desktop" site.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

 

 

Similar Threads

  1. Replies: 5
    Last Post: 18 Oct 2009, 01:48 AM
  2. Where to insert js code for 'draggable layer'?
    By rlfreshwater in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2008, 08:42 PM
  3. where insert 4 sponsor images for products?
    By giuly in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Nov 2008, 01:14 PM
  4. insert php script into item descritption for domain name registration ???
    By modchipfitters.co.uk in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 24 Aug 2008, 06:28 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
  •