I was able to get everything working on Drupal 5.7. Now I was wondering what is the best way to integrate it into the site?
I was thinking of having a simple search box, that only requires the zip code on the front page with a link on the bottom for more advanced searches.
How would I go about doing that? I'm very new that this and drupal.
Thanks
You are not locked into
You are not locked into having to use the built in form in order to construct your search page. You can copy the default search page code and then place it in your own website in whatever manor you want. The only stipulation is that the action of the form must point at the phpGoogleStoreLocator.php file.
I only wanted to use the zip
I only wanted to use the zip code and radius boxes for the search however the country code and categories must be present so I just put those in div tags and hid them with css. Seems to work fine even if its a total hack but it gets you the minimalist locator search form if thats what you're after.
hehe you dont have to use
hehe you dont have to use css to hide form stuff. Heres an example of a hidden form field:
<input type=hidden name=something value=somethingelse>So for
So for ".show_country_codes()." how would that fit into a hidden input type? It needs to be present or else the search won't work.
<input type=hidden name=country_codes value=show_country_codes>No that function doesnt need
No that function doesnt need to be there. Its only if you want a dropdown list (which you dont). Just replace the value= with value=us or whatever country you want. The field name is also country not country_codes.
<input type=hidden name=country value=us>what if I need the value to
what if I need the value to be us, canada, puerto rico and mexico? but I still don't want the drop down I just want all four to be searched by default.
The country code is not for
The country code is not for the results. It's for the user's address only. So when they put in the address of where they live, it asks them to select their country. That is what its used for and thats why it can only be 1 country not multiples. Even if they put US and the radius was big enough it would show results in all the other countries.