Results 1 to 10 of 111

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Quote Originally Posted by snorkpants
    I used the same address data as it seemed logical to do that rather than make people type it twice.

    To remove the address from the contact page go to "Contact Us - Show Store Name and Address" in the email settings config and turn it off.

    btw. Any suggestions for this contrib would be greatly appreciated as I've been wondering where to go next with it. One thing I'm looking at at the moment is a way interface with a reliable geocoordinate lookup site. One other way is to have an admin map that allows you to adjust the position of your entered coordinates as I've noticed that sometimes they're not as accurate as I would like.

    I looked at the google api, it seems like you can get a geocode using javascript that will convert an address to it's coordinates on the fly. http://www.google.com/apis/maps/docu...geocoder2.html

    It would be nice to keep this separate from the contact page and the information on the contact page, or have the option to do this. Sometimes this data does not match, i.e. if I have a corporate address on the contact page (for correspondance) and a separate location (say a store as a physical location). The plugin will be mostly used to help people find a place. It would be great to include fields across the top for get driving directions. Control over initial zoom level would be helpful.

    On the admin side, I would put "Google Maps API" before each of your editable items. You did not do this for Store Phone and used other terminology for others "GoogleMap".

    thanks again for your work on this, and let me know if I can help in any way.

  2. #2
    Join Date
    Jul 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Quote Originally Posted by rambo
    It would be great to include fields across the top for get driving directions.
    To put a get driving directions field above the map:

    in includes/templates/template_default/templates/tpl_contact_us_default.php

    move line: 17
    Code:
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
    down below
    Code:
    <?php } ?>
    on line 44. This will start the contact <form> below our map form. You probably would want to do a overwrite version in YOURTEMPLATE folder.

    then in:
    includes/language/english/html_includes/YOURTEMPLATE/define_contact_us.php

    Code:
    <form action="http://maps.google.com/maps" method="get" target="blank">
    <p><label for="mapsUsSaddr">Where are you coming from?&nbsp;<br>
     Please enter&nbsp;street address, city, and ZIP Code:<br></label><input class="text" id="maps" size="40" name="saddr"> <input class="submit" value="Get directions" type="submit">&nbsp; <input value="11111 Yourstreet Boulevard Beverly Hills, CA. 90210" name="whateva" type="hidden"> <input value="en" name="hl" type="hidden"></p>
    </form>
    place this above the map code:
    Code:
    <div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>
    Please try it out and let me know if you run into any problems posting to either form on the page. Thanks.

  3. #3
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Google Mapinator

    This is a really good mod - thanks for making it available

    Just a few points to add to what other people have already posted above:

    1. There's a small typo in the SQL - the second 'longitude' description should be ' Google Maps API - Zoom'.

    2. For the UK, you can get the latitude and longitude info for a store's post code from streetmap.co.uk - it seems to be more accurate.

    3. For the UK, to get the 'directions from/to your store' modification to work that rambo described in the post above, you need to add the destination post code (ie. the post code of your store) and change the 'name=' part to ' name="daddr"' like this:

    <
    PHP Code:
    form action="http://maps.google.co.uk/maps" method="get" target="blank">
    <
    p><label for="mapsUsSaddr">Where are you coming from?&nbsp;<br>
     
    Please enter&nbsp;your post code:<br></label><input class="text" id="maps" size="40" name="saddr"> <input class="submit" value="Get directions" type="submit">&nbsp; <input value="put your store post code in here" name="daddr" type="hidden"> <input value="en" name="hl" type="hidden"></p>
    </
    form
    You can also change the URL to 'http://maps.google.co.uk'.

    I think the earlier suggestions that this mod should use a different page than define_contact_us are valid - store owners may wish to use that page for other information; plus the map tends to push the 'contact us' form out of view on some smaller monitors.

    Otherwise, working fine and an excellent mod - thanks

  4. #4
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Quote Originally Posted by rambo View Post
    To put a get driving directions field above the map:

    in includes/templates/template_default/templates/tpl_contact_us_default.php

    move line: 17
    Code:
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
    down below
    Code:
    <?php } ?>
    on line 44. This will start the contact <form> below our map form. You probably would want to do a overwrite version in YOURTEMPLATE folder.

    then in:
    includes/language/english/html_includes/YOURTEMPLATE/define_contact_us.php

    Code:
    <form action="http://maps.google.com/maps" method="get" target="blank">
    <p><label for="mapsUsSaddr">Where are you coming from?&nbsp;<br>
     Please enter&nbsp;street address, city, and ZIP Code:<br></label><input class="text" id="maps" size="40" name="saddr"> <input class="submit" value="Get directions" type="submit">&nbsp; <input value="11111 Yourstreet Boulevard Beverly Hills, CA. 90210" name="whateva" type="hidden"> <input value="en" name="hl" type="hidden"></p>
    </form>
    place this above the map code:
    Code:
    <div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>
    Please try it out and let me know if you run into any problems posting to either form on the page. Thanks.
    I got all these errors with the form
    Code:
      Sorry, is your name correct? Our system requires a minimum of 2 characters. Please try again.      Sorry, my system does not understand your email address. Please try again.
          Did you forget your message? We would like to hear from you. You can type your comments in the text area below.

  5. #5
    Join Date
    May 2005
    Location
    Brussels belgium
    Posts
    203
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Hi,

    i've installed this contrib successfully but I have a little bug I can see the adress + tel data in the map see the print sreen

    best regards

    chris
    Attached Images Attached Images  
    Zen cart or nothing !!

  6. #6
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Are they entered in the admin panel: Configuration > My store ...?

  7. #7
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Quote Originally Posted by Pablosan View Post
    I got all these errors with the form [code] Sorry, is your name correct? Our system requires a minimum of 2 characters. Please try again.

    Sorry, my system does not understand your email address. Please try again.

    Did you forget your message? We would like to hear from you. You can type your comments in the text area below.
    I am also getting these errors. I wasn't at first, and it would take me to Google Maps although it didn't not give me driving directions (then I noticed in the code it had a spot to enter the store's address)...now when I hit "get directions" it is giving me errors like I tried to send a message via the contact us form.

    I'll play around a bit and see if I can't figure it out...but I'm not sure if I messed up the code or if it's because of all the customizing I did on the Contact Us page...

  8. #8
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Google Mapinator

    ok so I had to make sure the code that calls for the html_define was below the </form> at the bottom of the page. Now the driving directions button seems to work...but is it supposed to actually give you driving directions? I'm having to input the ending address (store's address) again at the Google Maps website...

 

 

Similar Threads

  1. Contact form Issue after installing Google Mapinator
    By dix30simulation in forum General Questions
    Replies: 5
    Last Post: 24 Mar 2015, 04:57 PM
  2. Google Mapinator not showing MAP
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2011, 08:34 PM
  3. Zen lightbox 1.4 and google mapinator
    By dml311071 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Dec 2007, 08:20 PM

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