Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 03:16:48 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Dealer Search  (Read 958 times)
SnapDaddy

Offline Offline

Posts: 34



« on: July 15, 2009, 11:27:01 PM »

Hi Bakers,

I'm need to recreate a Dealer Search function from our old website where a visitor can enter their zip and a list of local Dealers would display.

Has anyone written a module or snippet to do something like this? I would need to have an admin back end to add and manage the dealers database.

May be something close I could start with...I share when I'm done!  grin

Thanks
Logged

Remember, experience is what you get when you don’t get what you want…
Olli

Offline Offline

Posts: 288


« Reply #1 on: March 03, 2010, 08:07:40 PM »

hey,
quite old topic, but have you tried to use the members module?

it has all you need and can hold a lot of data fields. you only need to adjust the output masks (which is very easy).

all the best
Logged
SnapDaddy

Offline Offline

Posts: 34



« Reply #2 on: March 03, 2010, 08:52:59 PM »

Thanks for the reply...funny thing, I'm just now starting to work on that project. Is the member module an add-on or core? huh
Logged

Remember, experience is what you get when you don’t get what you want…
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #3 on: March 04, 2010, 12:38:59 AM »

members is an addon module. I  belive it would be very easy to create something like this, even as a new module.

what would be the input and output, maybe I can help if I have some time.
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
SnapDaddy

Offline Offline

Posts: 34



« Reply #4 on: March 04, 2010, 01:58:26 AM »

Thanks crnogorac081,

The current search has 2 fields for input. Zip (postal) code or Keywords. There is also a sort by option, either by zip or dealer name.

The db has the basic dealer name, address & phone # fields.

Would also like to include a separate form / function for dealers to request to be included in the search db. Once the dealer submits request, admin would approve, then would be added to the search db.

Any help would be greatly appreciated!  grin
Logged

Remember, experience is what you get when you don’t get what you want…
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #5 on: March 05, 2010, 02:49:03 AM »

Hi,

Here is a fresh baked dealers module [GO 2 POSTS BELOW] Smiley

address,phone and other info are in one field called info, so put all text info there, like:
Code:
address: This street n.123
phone: 123-456
more: accepts credit cards

I belive it will suit your needs Smiley

all best,
Ivan
« Last Edit: March 05, 2010, 11:32:05 AM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
snark
Guest
« Reply #6 on: March 05, 2010, 07:37:37 AM »

it brings me a blanc page in both 2.7 as 2.8


Notice: Undefined index: action in /home/users/ .....    /modules/dealers/modify.php on line 20
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #7 on: March 05, 2010, 11:31:18 AM »

Here is a new file.
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
SnapDaddy

Offline Offline

Posts: 34



« Reply #8 on: March 05, 2010, 05:55:27 PM »

Excellent crnogorac081,

Very much appreciated!

Got it installed, created page and can view the search button and field. However, I didn't notice any way to add dealers from BE. Looks like you wrote some code, but not showing up under Modify Page? Is this where I should take over?

BTW, where would I find info on the Members Modul? I search, but just found enhancements to the original...

Thanks again!
« Last Edit: March 05, 2010, 06:29:00 PM by SnapDaddy » Logged

Remember, experience is what you get when you don’t get what you want…
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #9 on: March 05, 2010, 06:52:44 PM »

you said you want to create dealers from FE, so when you create it in fe,it becomes visible in be,where you must approve it to become visible in fe search form.. then, you can also modify or delete it in be, but I dint make it that you can create new dealer from be.

Also, there is a language file for english only, i dont know if you noticed, so set .your lang to english while you test the module, I assume that may be reason why you didnt see Add dealer link.

You can find members module in AMASP, stabile version 0.7, and beta 0.8 on forum

I
« Last Edit: March 05, 2010, 06:58:20 PM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
SnapDaddy

Offline Offline

Posts: 34



« Reply #10 on: March 05, 2010, 06:56:54 PM »

You are correct...sorry.  wink I took another look and noticed the "Add New" link! Perfect, now I can run some l tests!
Logged

Remember, experience is what you get when you don’t get what you want…
pcwacht
AddOn Development
*
Offline Offline

Posts: 2814



WWW
« Reply #11 on: March 05, 2010, 07:00:47 PM »

btw: BTW, where would I find info on the Members Modul?

AMASP or -> http://www.websitebakers.com/pages/index.php

have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
SnapDaddy

Offline Offline

Posts: 34



« Reply #12 on: March 05, 2010, 07:17:28 PM »

Thanks, I keep looking for add-ons here (this site) and forget about AMASP over @  www.websitebakers.c om.
Logged

Remember, experience is what you get when you don’t get what you want…
snark
Guest
« Reply #13 on: March 06, 2010, 12:49:43 AM »

it is working...

is there a particulair reason why the add button is in the frontend and not in the backend ( I think it should at least be also in the backend.

if one fills in the zipcode partially the search will come up with 'no results... that's a bit nasty

Logged
SnapDaddy

Offline Offline

Posts: 34



« Reply #14 on: March 06, 2010, 01:33:37 AM »

The add new link on FE is for dealers requesting to be added to search db. Having an add new link on BE would be helpful for when a dealer calls in to be added.

I did notice that the newly added dealer can be searched before they have been approved! This is incorrect and will have to fix.

Might want to add CAPTCHA to prevent flooding...also don't know if code will check for duplicates before submitting.

Just ran out of time today to test and adjust...don't want to put all of the work on to crnogorac081 since he has been so generous with his time and code!  grin
Logged

Remember, experience is what you get when you don’t get what you want…
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #15 on: March 06, 2010, 04:26:17 AM »

hi,

i asked to tell me the features when I offered to help. nobody mentioned adding dealers via backend. I commented all the code, so feel free to adjust it to your needs.

newly added dealer can not be included in search before admin approves it, are you sure that it can?, It works fine to me

the code does not chech for duplicates.

since admin has to approve every record, i think there is no need for capcha, but as I said, feel free to modify the code Smiley

all best,
iva
« Last Edit: March 06, 2010, 04:28:45 AM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
snark
Guest
« Reply #16 on: March 06, 2010, 11:01:27 AM »

any thoughts on what I said about the zipcode?

you now have to fill in the exact zipcode to get a result

would it be possible to have two separate searchboxes, one for the zipcode and one for the other data...

or maybe even better, a selectionboc that lists all given zipcodes

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!