Page 1 of 1
Store locator / cggooglemaps2
Posted: Sun Aug 04, 2019 6:41 pm
by musicscore
Hey there cmsmadesimple lovers
I have a customer that wants/need a store locator on his website.
I searched for cmsms modules and found that it must be possible to use company director and cggooglemaps2. But than I noticed that cggooglemaps2 was markt as an old module. I tested the module (cmsms 2.2.10 / php 7.3) and noticed that I could not add a map.
So I started seaching the internet for a shop locator scripts but all I found where very complex scripts and Wordpress plugins. ( but as you know, I do not use Wordpress).
Does anyone of you can give me a hint or tip ?
What is the best way to get a store locator on the website ?
I still have to start building the website so any tip is welcome.
TIA
Re: Store locator / cggooglemaps2
Posted: Sun Aug 04, 2019 9:49 pm
by calguy1000
CompanyDirectory works fine with CMSMS. Haven't tested CGGoogleMaps2 in a while, but depending on what you want, and what data you have it is not exactly necessary.
i.e: If you have latitude and longitude data for all of your addresses, then you can enter that data into CompanyDirectory and use leaflet to draw the map.
On the other hand, It would not take more than a few hours to update CGGoogleMaps2 .. but now to use Google's maps or geocoding API (to parse addresses into latitude/longitude) an API key and a billing account is necessary. I have not had an inclination to set those up.
BTW: I am currently in the middle of giving CompanyDirectory an overhaul to bring it up to CMSMS 2.x standards. The templates will change a bit, but data will not.
Re: Store locator / cggooglemaps2
Posted: Mon Aug 05, 2019 6:24 am
by musicscore
Thank you calguy1000 for you answer and update.
So, as a read your message correctly, I only neet CompanyDirector and Leaflet (which I do not know yet).
PS I wanna thank you for all the work you are doing for cmsmadesimple. You get all my respect.
Re: Store locator / cggooglemaps2
Posted: Mon Aug 05, 2019 3:20 pm
by DIGI3
Leaflet is a great option for this, it's what we used for the site featured in a recent CMSMS newsletter:
https://newsletter.cmsmadesimple.org/w/ ... qHA763lXhA
We used LISE to store the location information but CompanyDirectory would be fine too. As long as you have the lat/long information you can easily pass it to Leaflet (or another similar JS map library) in your templates.
Re: Store locator / cggooglemaps2
Posted: Mon Aug 05, 2019 3:28 pm
by Rolf
I use Leaflet at my supplier listings, i.e.
https://pneumatic.tube/suppliers/the-ne ... buizenpost.
It is indeed not that difficult to use, might do a tutorial about it some day. For now PM me for details.
grtz. Rolf
Re: Store locator / cggooglemaps2
Posted: Mon Aug 05, 2019 5:52 pm
by musicscore
Rolf, looks realy nice.
What I need is an input field where you can put your address and then the shop locator should show the nearest shops and a map where to find them.
I visit the Leaflet site and I think, with a little puzzeling I might come close.
Thanks for you help so far.