|
|
#1 |
|
Member
Join Date: Mar 2009
Posts: 37
Rep Power: 6 ![]() ![]() |
I'm a bit confused about the order of extra field values.
When I create a new extra field I enter the values from left to right and then continue in the next row. When I later take a look at the final drop down list in the search or checkout-function, the values are sometimes ordered alphabetically. Sometimes they are completely mixed. Some minutes ago I created a new drop down extra field with some values and saved it. After saving I took another look at it by using the edit function. The values were still there but they had another order than before. How can I influence the order? The best thing would be if the values were displayed in the same order as I enter them.
__________________
68 Classifieds - Developer Edition v4.13 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2008
Posts: 865
Rep Power: 23 ![]() |
As far as I am aware (I will stand corrected), the values in extra-fields like categories will be ordered alphabetically.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2009
Posts: 37
Rep Power: 6 ![]() ![]() |
That seems to be right for the extra field editor. But the search function often displays them in a random order
![]() Alphabetically would be ok. But would be better if the order would be the same as I entered the values in the editor.
__________________
68 Classifieds - Developer Edition v4.13 |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,871
Rep Power: 112 ![]() |
They are supposed to be ordered alphabetically. The ajax.php is where these are pulled from and it is missing the order by which is probably the reason for the random.
You can fix this with the developer edition by editing ajax.php line 230. Find: WHERE fieldID='".$row['fID']."'"; Replace with: WHERE fieldID='".$row['fID']."' ORDER BY optValue";
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2009
Posts: 37
Rep Power: 6 ![]() ![]() |
Now it's ordered alphabetically. Thanks
![]() EDIT: I took another look at the ajax.php. When I set it like this: WHERE fieldID='".$row['fID']."' ORDER BY optID"; The values are ordered by the value id. The result is that the values are ordered exactly like I have entered them in the extra field editor. And that's exactly what I needed for some fields
__________________
68 Classifieds - Developer Edition v4.13 Last edited by wabugi; 04-27-2009 at 04:24 PM. |
|
|
|
|
|
#6 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 76
Rep Power: 4 ![]() |
This does not work for me, strangely.
Is there anything else i can look out for? developer 4.1 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parent and Child Field Display Order Issue | mikesouthbeach | v4.1 Questions & Support | 1 | 04-03-2009 10:43 AM |
| New Order & Receipt Email - emai field blank | Tim_A | v4 Questions & Support | 1 | 08-06-2008 04:47 PM |
| Sort order by extra field | HotAir | v3.1 Modules & Modifications | 3 | 02-11-2008 11:03 AM |
| Select field problem (extra field --> drop down list) | pat01 | v3.1 Questions & Support | 1 | 08-10-2006 02:05 AM |
| Field Order | ropingtony | Pre Sales Questions | 1 | 07-19-2006 11:01 AM |