|
|
#1 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 12 ![]() |
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 |
|
|
|
|
|
#2 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45 ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 12 ![]() |
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 |
|
|
|
|
|
#4 | |
|
Coder
Join Date: Mar 2006
Posts: 4,568
Rep Power: 111 ![]() ![]() |
Quote:
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. |
|
|
|
|
|
|
#5 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45 ![]() ![]() |
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:
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. |
|
|
|
|
|
#6 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 12 ![]() |
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |