amitmodak89 / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Distribution map #473

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Look at this tool.

http://www.birdtheme.org/useful/googletool.html

They allow making polylines and polygons on google maps. Just what we need for 
making a distribution map for direct marketing or junk mail.

Scenario:

A small business wants to distribute certain marketing material to an area 
around them. It can be a few blocks or a half the town.
One of the product options would be the distribution area. It would be 
displayed as a google map embedded in the product page as one of the options.
The user clicks on the map and draws a polygon similar to the sample.
There should be 2 additional controls: 
1. initial location search
2. close the shape

The KML should be saved with the order.
Both the admin and the user should see the map with the polygon.
Both should be able to see the KML on request (expandable and easy to copy)

Questions:
1. Can we show g-maps as an option?
2. Is it better to save KML as an external file?
3. Can we show g-maps in order details?
4. Should it be a separate extension or part of file uploader? They seem to be 
affecting the same pages.
5. Is it going to clash with anything we already have?

This is a feasibility study task for now.

Original issue reported on code.google.com by zetapri...@gmail.com on 1 Mar 2011 at 7:37

GoogleCodeExporter commented 8 years ago
WE know we can do it. Get your head around the code from that other site and 
post subtasks. 
We'll need to acknowledged that other site and check what license they have on 
that page and if we can re-use it.

Original comment by zetapri...@gmail.com on 15 Mar 2011 at 10:51

GoogleCodeExporter commented 8 years ago

Original comment by jamb...@gmail.com on 16 Mar 2011 at 7:18

GoogleCodeExporter commented 8 years ago
I think that we can leave actual g-map related work as part of this task. 
Creating the map functionality and kml generation is not Magento related but 
should be accounted for time taken.

1. About location search  - how do you picture this to look like? G-map 
location search is context aware, meaning that looking for city of Toledo in 
default (US) context returns city of Toledo in state of Ohio and in EU context 
it returns Toledo Spain. Probably an admin page with default settings should be 
made. To allow admin to set default store region. Another option is to pick up 
set store locale and use it.

2. Close the shape - like delete polygon, or hide the map?

Original comment by jamb...@gmail.com on 16 Mar 2011 at 8:07

GoogleCodeExporter commented 8 years ago
Location search - they can always enter Toledo Spain or Toledo Ohio. Wouldn't 
worry about it much.

Close shape and to connect the end of the current node to the beginning of the 
first node closing off the polyline into a polygon. Does it make sense? Or are 
they always closed off if we build a polygon?

I'd still post subtasks to keep it clean. It's no joy to wade thru 10 pages of 
comments.

Original comment by zetapri...@gmail.com on 16 Mar 2011 at 10:20

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 16 Mar 2011 at 10:22

GoogleCodeExporter commented 8 years ago
There are different things - polygons and polylines. Polygons are always closed.
So far I have been working only with polygons. Do you want to use polylines 
instead?

Original comment by jamb...@gmail.com on 17 Mar 2011 at 9:49

GoogleCodeExporter commented 8 years ago
Stick with polygons.

Original comment by zetapri...@gmail.com on 17 Mar 2011 at 10:39

GoogleCodeExporter commented 8 years ago
Initial version deployed to mageimage.
A product with couple of such options: 
http://ec2-174-129-95-130.compute-1.amazonaws.com/mageimage/non-w2p-04.html

1. To have google map as an option, you have to add a custom option of type 
field (plain text input) and make sure its title ends with ***kml***

2. Clicking the map on product page adds the option to current order process 
and updates product price as for any other custom option.

3. The last point clicked has the default Google map marker attached. Clicking 
on the marker will undo last click.

4. Clicking on polygon itself pop ups a dialog asking if you want to start over.
Choosing yes will delete entire polygon, no will do nothing.

5. In top center of each map there is small search input, you can type in an 
address and Google will try to center the map on first matching location it 
finds.

6. Upon first loading of maps, they try to find out user location (using 
browser capabilities) this worked for me in IE8, IE9, FF, Chrome and Opera. In 
all those browsers there is a browser dialog of some sort asking for permission 
to share location. If permission is granted, map should be centered near user's 
current location at a few hundred meters altitude.

7. If a polygon is made and product is added to cart, polygon data is saved to 
custom table and text option receives some custom html markup for content.
The markup is an img tag that points to static version of the map with polygon 
in it.
The image is set to be 300 x 200 pixels. This static version of the map is 
shown on every page where the option would be displayed - cart, checkout 
review, frontend order details, admin order details.

8. On order details pages there is also a link bellow the static map pointing 
to generated KML file which can be downloaded and opened in Google Earth (or 
any other software that knows KML)

Original comment by jamb...@gmail.com on 23 Mar 2011 at 7:30

GoogleCodeExporter commented 8 years ago
There was no map on the page, only a blank map placeholder.
FF 3.6.16

Original comment by zetapri...@gmail.com on 23 Mar 2011 at 9:11

GoogleCodeExporter commented 8 years ago
/mageimage/ is about to be reinstalled.
Map feature is in currently in there. 
Petar, please backup anything you need to or whatever, as soon as possible.

Original comment by agur...@gmail.com on 25 Mar 2011 at 9:57

GoogleCodeExporter commented 8 years ago
No problem, reinstall.
Can you remind me the reinstall procedure that you follow?

Original comment by jamb...@gmail.com on 25 Mar 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Petar, you can use magedev (M. 1.4.2.0) if M. version is suited for you. Just 
re-install it.

Use to reinstall magedev: 
http://ec2-174-129-95-130.compute-1.amazonaws.com:81/cgi-bin/magedev-reinstall

Use to reinstall mageimage: 
http://ec2-174-129-95-130.compute-1.amazonaws.com:81/cgi-bin/mageimage-reinstall

Original comment by Anatoly....@gmail.com on 25 Mar 2011 at 10:12

GoogleCodeExporter commented 8 years ago
Thanks, I probably will reinstall it. It seems kind of broken to me atm.

Original comment by jamb...@gmail.com on 25 Mar 2011 at 10:37

GoogleCodeExporter commented 8 years ago
If all Stream-Map issues pass tests, we should close this one.

Original comment by jamb...@gmail.com on 5 Apr 2011 at 11:41

GoogleCodeExporter commented 8 years ago
They are all Test OK except this one:
http://code.google.com/p/magento-w2p/issues/detail?id=505

Original comment by agur...@gmail.com on 6 Apr 2011 at 3:43

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 20 Apr 2011 at 7:35