Jump to content

.London Domains - £4
Photo

Store / Branch Locator for Website


  • Please log in to reply
2 replies to this topic

#1 Consh

Consh
  • Member
  • Newbie
  • 23 posts

Posted 08 April 2019 - 08:49

Hi all,

 

I'm quoting on a website and the client has asked for a store locator and as i haven't done one of these before, i was hoping for a little advice please.

 

The idea is to have the user visit the page and they will have the option to enter a postcode / location and they will be given a list of the stores with the top being nearest, second being second nearest, and so on. Pretty standard stuff. They would also like to use geolocation so users can just click the button and it will detect their current location and list the stores as above.

 

The website is being built on Wordpress and although i've seen plugins that can help with the functionality above, if it's not too complicated, i'd like to have a go and creating this feature myself. What would be the best way to go about this please? I'm currently learning Javascript and wondered if an object was the way to go with holding the data. Or would it be better using PHP and MySql?

 

If anyone can offer any advice on this it would be greatly appreciated. Or if there's anything i need to be aware of for a project like this.

 

Lastly, i was toying with having a sub-domain for each of the different stores but it might just be easier to have a page for each site. Is there any benefit/disadvantahe in having a sub-domain for each store?

 

Thanks for reading


  • 0

#2 Lewwy

Lewwy
  • Global Mod
  • Mr. T
  • 1,056 posts

Posted 08 April 2019 - 09:10

This is probably a good place to start.

 

I think a subdomain for each store is probably overkill - you could achieve the same thing within WordPress with some smart page names.

 

https://domain.com/locations

https://domain.com/l...ns/location-one

https://domain.com/l...ns/location-two

https://domain.com/l.../location-three

 

The parent (locations) page, could hold the Map function you're looking to build.

 

Good luck. :)


  • 0

#3 Consh

Consh
  • Member
  • Newbie
  • 23 posts

Posted 08 April 2019 - 10:11

This is perfect, thank you. I'd actually seen this when researching but spent that long looking at different options i don't think i appreciated how good a guide this was.

 

Thank you for the advice on the sub-domains and location pages also :-)


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users