I've built an event registration form which incorporates about a dozen custom fields. In testing the form, I find that the custom field labels and responses are displayed properly (e.g., in the same order that they appear on the form) on the following web page confirming the registrant's selections. BUT, the confirmation email received by the registrant and the admin notification email both list the custom labels and responses in reverse order to the order of the fields on the form.
I've ordered the fields in a logical way -- having the results returned in reverse order is an annoyance at best on the admin email, and really quite confusing for the registrant, who will expect to see the custom fields returned in the correct order.
Where is the order of the custom fields in these 2 emails determined -- how can I fix this?
I had the same annoyance, and it still exists in the most recent version (2.5.2). It's definitely a bug that it shows the custom fields in reverse order. Here's how to fix in the code:
On lines 282 and 392 (they're the same) of components/com_dtregister/common.php, look for:
foreach ($arrCustomFields as $key => $value){
and change it to:
foreach (array_reverse($arrCustomFields) as $key => $value){
Nathan and DTRegister crew, can you include this as a bugfix in the next release so we don't have to make the change again? Thanks!