Totally Zenned
- Join Date:
- Dec 2005
- Location:
- Cincinnati Ohio
- Posts:
- 1,034
- Plugin Contributions:
- 3
Google Mapinator
that worked thanks
Views: 28,723
Totally Zenned
that worked thanks
Zen Follower
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
Zen Follower
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:
Zen Follower
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)
New Zenner
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
Zen Follower
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
New Zenner
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.
Zen Follower
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.
New Zenner
knuckle-101:
Where exactly is this at?
<div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>
includes/languages/english/YOURTEMPLATE/define_contact_us.php
It is actually in: includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.php
note: developer, please correct this filepath in your readme. Thanks.
New Zenner
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
New Zenner
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.
New Zenner
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.phpwhen it should read:
includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.phpRequest 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.
New Zenner
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.
New Zenner
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.
Totally Zenned
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:
There's a small typo in the SQL - the second 'longitude' description should be ' Google Maps API - Zoom'.
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.
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">
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:
Zen Follower
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
Zen Follower
I'd like to have multiple locations too.
How can I do that ??
Thanks
New Zenner
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 !
Totally Zenned
Still working fine in the UK - where is your store based?
New Zenner
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!
Fields marked required must be completed.
Tell staff why this post should be reviewed.