Hi - I'm building a site for a company that's got multiple physical locations, and I want registered users to be able to choose their closest location at their registration time (currently I've got a field in the registration block using CCK). For the sake of example, let's say I have 2 different locations with two different hours of operation. Based on the location chosen by the "authorized user" how do I make it so they see the hours of operation page for only the location they've chosen?

I've searched the forums, but can't really find what I'm after. Any help is appreciated... but just so we're clear up front, I don't speak php.

Comments

Mudbug’s picture

sorry to bump, but... well... bump... :)

trobey’s picture

There are probably many ways to do this especially if you can program. One way would be to use the location module. Somehow you need to get a location of the user. The location module allows you to get an approximate location using the zip code or you can get it using the city and state. If you enter your stores as nodes with their own locations then you have the data you need entered. Then you can use views to order the stores by their distance (using the location module) and limit it to display just one node. If the node has your store hours then they would see that. Note that it isn't quite as easy as this description makes it seem but you probably can do the whole thing without writing any code.

- Tom Robey

Gaia Environmental Sciences
gaiaes.com