Support Forums

Old 12-19-2007, 01:42 PM   #1
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 12
objelland is on a distinguished road
Default Show extrafield in searchpage

Hi

I am trying to show an extrafield in the search template without having to select the category. I would like the extrafield to be constant in the search template. Does anyone know if this is possible!

Any help is greatly appreciated!

Thanks

Regards

Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote
Old 12-19-2007, 02:51 PM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

I would add it to your product table and then make sure you have the code to insert it in your usercheckout system, usermodify, viewlistings, admin (all listings pages).

I dont know the format of your extra field so i cant really add to this.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 12-19-2007, 02:59 PM   #3
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 12
objelland is on a distinguished road
Default

I am not quite following....
You would add the field to the product table so it's searchable form the normal search field?
The field is a normal single line text field. Is there anywhere I can get the code for doing what you are suggesting?

Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote
Old 12-19-2007, 03:13 PM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,568
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by objelland View Post
I am not quite following....
You would add the field to the product table so it's searchable form the normal search field?
The field is a normal single line text field. Is there anywhere I can get the code for doing what you are suggesting?

Oyvind
Similar to your other question, Maffo assumes you have looked at the code and have a basic understanding of the search process.

What makes this question complex is that the extra fields are stored in a different table than the ads themselves. To further complicate things the actual extra field names are stored in yet another database table.

This was done to allow flexibility in adding unlimited extra fields and have them only apply to certain categories.

Now, with the above in mind when you look at the search page you get a drop down list of the categories and once you select a category then a new query is run to get the extra fields that are bound to that category and displayed.

Now, assuming all your categories have all the same extra fields what you need to do is look at the scipts to see how the extra fields are collected once a category is selected. This will show you the query used, you can then use this and ad it to the section whenre the inital query is done to preemptively grab the fields and display them and comment out the section that triggers the lookup and display once a ategory is selected.

This is of course just a brief rundown on logic, as you can tell this is likely going to be a pretty time consuming mod.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 12-19-2007, 03:49 PM   #5
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

Yes, its not a very easy question to answer.

Do you have other extra fields that you dont want displaying like this? If so you are going to be messing around with ajax part of this system which is extremely delicate.

I myself would hardcode it but only if I had the confidence that I was proficient in html forms, some basic php and sql skills. Else I would get a developer like my good self or Larry to carry the work out for you.

But to get you started you will need to add the extra field (whatever its name is) to your products table so in can be inserted into with each record, and obviously be searched for.

You will have have a
PHP Code:
<input type="text" name="your_extra_field_name" value="default value if you want one"
You will need to add that to step3.tpl of your usercheckout templates. You will have to then modify insertion part in usercheckout.php so your input gets inserted into the product table.

If you are competent at doing this you will then have to edit usermodifylistings.php, viewlistings.php, the search page and searchresults page if you are wanting this searchable. The kernel/listings.php If you are using memberships you will need to edit them in the same fashion.

In your admin you will need to edit all the files that deal with the listings.

If it seems like a minefield then maybe your best getting some help.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 12-19-2007, 04:06 PM   #6
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 12
objelland is on a distinguished road
Default

I actually would appreciate if you could take the job doing this for me.
I am ofcourse willing to pay a fair price for this.
Is this something you have the time to do?

There are two extra fields, both single line text fields, that I would like to be handled like this.

Regards
Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does google show no links to my site? bgordon Site Marketing 4 11-07-2006 02:09 PM
Show customers URL on showlistings.tpl.php marketingsolutions v3.1 Questions & Support 0 11-01-2006 08:38 PM
Show the visitors which category has new ads pat01 v3.1 Modules & Modifications 7 07-28-2006 01:25 AM
Can you show ads on someone else's site? cherubini v3.1 Modules & Modifications 14 06-09-2006 01:47 PM
Not show price garysmith v3.1 Modules & Modifications 10 05-30-2006 05:44 AM


All times are GMT -4. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0