Zen Cart Logo
Forums / All Other Contributions/Addons / Google Mapinator

Google Mapinator

Views: 28,723

Results 21 to 40 of 108
11 Jul 2006, 2:15 AM
#21
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Google Mapinator

that worked thanks

2 Aug 2006, 4:42 AM
#22
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

Re: Google Mapinator

Good evening everyone,

I love you mod - it is so sweet. My only problem is that I can't seem to get long. & lat. from Google. I put my info in, as suggested, but no #s come up for the long & lat.

The #s that are already populated in "My Store" somehow put me in the middle of Great Britain.

nI'm really anxious to use this as it is just so neat. Any suggestions?

THanks,
Laura

2 Aug 2006, 5:03 AM
#23
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

Re: Google Mapinator

Sorry for the bother. I went to http://terraserver.microsoft.com/ and that seemed to work a little better. We're not in a major city and its kinda hard to pin down. I'll keep tweaking it, but at least we're now in the proper geographic area!:smile:

5 Aug 2006, 4:27 AM
#24
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Re: Google Mapinator

I'm stuck with no map - I installed software, uploaded patch, can get my API code from Google and installed it on my site but I get - An error while loading the page https://www.stakemill.com/store/index.php?main_page=contact_us - I get a pop up error the google code was registered for a different web site - I have no forwarding or masking on, site is pointing to correct domain - what is the correct domain to enter on googles site?

Also do I just past this code with nothing else in my EZPages for contact_us?
Add the following code to your define_contact_us.php
this is usually located in includes/languages/english/YOURTEMPLATE/define_contact_us.php
<div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>

Where are the body tags located (line number or between what other text) that I add these lines too?
Google recommend that in order to cut down possible memory leakage you put an onunload=GUnload() in the
body tag (found in includes/templates/YOURTEMPLATE/common/tpl_main_page.php)

5 Aug 2006, 2:48 PM
#25
snorkpants avatar

snorkpants

New Zenner

Join Date:
Jul 2004
Posts:
26
Plugin Contributions:
1

Re: Google Mapinator

Hi seanscully,
You need to register your url with google. They will provide you with an API Key which you can paste into the api key section in the admin. That should do it.

Regards,

Graham

5 Aug 2006, 9:18 PM
#26
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Re: Google Mapinator

First off - great mod, look forward to using it. I dod get a google API code and have tried it with just my domain and also with domain.com/store and keep getting errors on the page that the google key code was registered for a different site, but it is my google info I setup for this domain. Any guidance would be appreciated.

Also where do I put the code in the body??

Thanks

6 Aug 2006, 8:11 AM
#27
snorkpants avatar

snorkpants

New Zenner

Join Date:
Jul 2004
Posts:
26
Plugin Contributions:
1

Re: Google Mapinator

seanscully:

... keep getting errors on the page that the google key code was registered for a different site, but it is my google info I setup for this domain. Any guidance would be appreciated.

Also where do I put the code in the body??

Thanks

I'm not sure why the api key isn't working.. Try gettting a new one off them. Did you add the subdirectory "store" to it? I just generated one with it in: ```
ABQIAAAAe-VSG41rq7cNaUWO8vrxPBSmd-aiOxGGf418wRr2Iwk7DOg7vhTOeJ_fnDVol_mDsb8mb2VE8JkIFQ



The GUnload() should be place in the body tag like this; 
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'" onunload="GUnload()"'; ?>> ```

Hope that helps.

Graham.

6 Aug 2006, 9:37 PM
#28
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Re: Google Mapinator

My mistake-
It auto populated the My Store settings, so I just changed the API key, did not enter new Long and Lat settings which I got from link in the above post - http://terraserver.microsoft.com/
I do like this mod, can it be used for a site that has more than one store location?
I tried to copy to code from Google's site when I got my API code and changed the long and lat numbers into an EZPage but the map shows with no location popup or even any map control settings.
Thanks in advance.

16 Aug 2006, 7:08 PM
#29
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

Re: Google Mapinator

knuckle-101:

Where exactly is this at?
includes/languages/english/YOURTEMPLATE/define_contact_us.php

<div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>

It is actually in: includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.php

note: developer, please correct this filepath in your readme. Thanks.

16 Aug 2006, 7:11 PM
#30
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

Re: Google Mapinator

sospcshop:

It is wonderfull !!

I have installed it in my cart and working fine...

The only problem is how i can get the coordinates of my shop..

Can someone help me ? (from address to lat & log)

thanks !

Try here to get the degrees of your shop: http://world.maporama.com/idl/maporama/default.aspx

Then try here to convert degrees to decimal:
http://www.fcc.gov/fcc-bin/convertDMS

16 Aug 2006, 7:28 PM
#31
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

Re: Google Mapinator

Very nice work developer. Just a few notes to anyone using this plugin:

If you have added a prefix to your zen cart sql tables, you will need to rewrite the configuration.sql lines to account for this prefix before doing the sql insert. i.e. lines like "INSERT INTO configuration" would change to: "INSERT INTO yourtableprefix_configuration"

If you need to get the coordinates to your shop:
http://world.maporama.com/ will give you the degrees, and...

http://www.fcc.gov/fcc-bin/convertDMS will convert the degrees to decimal.

The readme file incorrectly lists a filepath as:
includes/languages/english/YOURTEMPLATE/define_contact_us.php

when it should read:
includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.php

Request for revisions in future versions:

It would be nice if this was not on the contact page and was stand alone so it could be a locate us page. I tried the plugin: "store location with google maps" and this plugin did not work. It would also be great if the maps address data had it's own tables, and did not duplicate the address info on the contact page.

Excellent work developer and thank you for putting your time and effort into this.

17 Aug 2006, 1:54 PM
#32
snorkpants avatar

snorkpants

New Zenner

Join Date:
Jul 2004
Posts:
26
Plugin Contributions:
1

Re: Google Mapinator

rambo:

Very nice work developer. Just a few notes to anyone using this plugin:

The readme file incorrectly lists a filepath as:
includes/languages/english/YOURTEMPLATE/define_contact_us.php

when it should read:
includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.php

Request for revisions in future versions:

It would be nice if this was not on the contact page and was stand alone so it could be a locate us page. I tried the plugin: "store location with google maps" and this plugin did not work. It would also be great if the maps address data had it's own tables, and did not duplicate the address info on the contact page.

Thanks for your comments. I have updated my instructions already but haven't had time to do a new release but thank you anyway.

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.

Regards,

Graham.
Best wishes,

Graham.

17 Aug 2006, 7:25 PM
#33
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

Re: Google Mapinator

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/documentation/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.

18 Aug 2006, 4:21 AM
#34
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

Re: Google Mapinator

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

<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

down below ```

<?php } ?>

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

<form action="http://maps.google.com/maps" method="get" target="blank"> <p><label for="mapsUsSaddr">Where are you coming from? <br> Please enter 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">  <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:

<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.

30 Aug 2006, 6:43 PM
#35
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Google Mapinator

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

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
form action="http://maps.google.co.uk/maps" method="get" target="blank">

<p><label for="mapsUsSaddr">Where are you coming from? <br> Please enter your post code:<br></label><input class="text" id="maps" size="40" name="saddr"> <input class="submit" value="Get directions" type="submit">  <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 :smile:

8 Sep 2006, 7:42 PM
#36
redmonds avatar

redmonds

Zen Follower

Join Date:
Jan 2006
Posts:
108
Plugin Contributions:
1

Re: Google Mapinator

Gret Mod!

How do I have multiple locations. I can see that the site at http://www.tonypeakecaravansales.co.uk/index.php?main_page=contact_us has 2.

I want to use this mod to list reseller locations around the country. I Preferable want a seperate page with perhaps upto about 50 different locations. I would also like to be able to provide another tab of info. ie. Address, Ph, Description.

Again thanks for the great mod.

Raoul

9 Sep 2006, 5:39 AM
#37
ericpeng avatar

ericpeng

Zen Follower

Join Date:
Jan 2006
Posts:
115
Plugin Contributions:
0

Re: Google Mapinator

I'd like to have multiple locations too.
How can I do that ??

Thanks

26 Sep 2006, 10:31 AM
#38
sospcshop avatar

sospcshop

New Zenner

Join Date:
Mar 2005
Posts:
30
Plugin Contributions:
0

Re: Google Mapinator

Hi,
I have installed this contrib some months ago and it works very well, but now it does not work !

I see only a empty window

Does somebody knows if google have problems or have changed something ?

thanks !

26 Sep 2006, 1:46 PM
#39
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Google Mapinator

Still working fine in the UK - where is your store based?

27 Sep 2006, 9:49 PM
#40
sospcshop avatar

sospcshop

New Zenner

Join Date:
Mar 2005
Posts:
30
Plugin Contributions:
0

Re: Google Mapinator

Pixxi:

Still working fine in the UK - where is your store based?

In Italy.. i do not understand becouse it does not work more..

http://www.sospcshop.com/store/contact_us.html

can someone help me to understand ?

My rel. is 1.3.5..

Thanks

Bye!