Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 04-25-2009, 07:23 AM   #1
Member
 
Join Date: Mar 2009
Posts: 37
Rep Power: 6
wabugi is just really nicewabugi is just really nice
Default Extra field value order

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
wabugi is offline   Reply With Quote
Old 04-27-2009, 09:31 AM   #2
Moderator
 
 
Join Date: Mar 2008
Posts: 865
Rep Power: 23
seymourjames has a spectacular aura about
Default

As far as I am aware (I will stand corrected), the values in extra-fields like categories will be ordered alphabetically.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 04-27-2009, 12:53 PM   #3
Member
 
Join Date: Mar 2009
Posts: 37
Rep Power: 6
wabugi is just really nicewabugi is just really nice
Default

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
wabugi is offline   Reply With Quote
Old 04-27-2009, 12:56 PM   #4
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,871
Rep Power: 112
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote
Old 04-27-2009, 02:03 PM   #5
Member
 
Join Date: Mar 2009
Posts: 37
Rep Power: 6
wabugi is just really nicewabugi is just really nice
Default

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.
wabugi is offline   Reply With Quote
Old 05-22-2009, 10:36 AM   #6
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 76
Rep Power: 4
DGiscombe is on a distinguished road
Default

This does not work for me, strangely.

Is there anything else i can look out for?

developer 4.1
DGiscombe 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
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


All times are GMT -4. The time now is 03:05 PM.


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