2.0.12f back end: custom fields manual re-ordering does not work

Started by SamF, October 26, 2012, 11:10:21 AM

Previous topic - Next topic

SamF

Hello,

J2.5.7 + VM2.0.12f
PHP 5.3.17

Fields don't re-sort (neither by ID nor by sort order) at administrator/index.php?option=com_virtuemart&view=custom. The order remain the same as the fields entry sequence.

Would be nice, by the way, to have other columns sortable as well))

Regards

verinted

I've found something of a workaround by hacking the core file: administrator/components/com_virtuemart/models/customfields.php

Around Line 739, I changed:

   $query .= 'ORDER BY field.`ordering` ASC,virtuemart_custom_id';

To:

   $query .= 'ORDER BY C.`ordering` ASC,virtuemart_custom_id';

its4yougr

Κατασκευή Ιστοσελίδων Θεσσαλονίκη - http://www.its4you.gr/
WebDesign Internet Marketing - http://www.webdesign-internetmarketing.com/

cas

Can the VM team please fix this in the base so we don't need to hack the code.  Thanks.

cas

VM team, is this fixed yet?   Reported in October 2012.

Milbo

There seems to be a misunderstanding. The list is sorted by the order of the "product custom fields". The ordering of the "customfields" is quite unimportant, imho, because we orientate for the FE at the ordering of the customfields IN the product edit.

Makes this sense? Or do I misunderstand you?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cas

Hi Milbo,

You are correct that we can rearrange the custom field order in each product admin individually, but it would be helpful if we could set the custom field order in the custom fields admin so that the custom field drop-down in the product admin would be in the order we set in the custom field admin.  Since the custom field admin already has the Order column displayed, why not just make it functional, as well as have the product custom field drop-down sort by the Order field and not the ID field.   By doing this, it would save everyone time and reduce the chance for errors. 

Milbo

For this there is the ordering, but for the groups (atm very unlucky named as parent)! If you select then a group of customfields, you directly get the order of the customfields as you provided it in the customfield prototype edit view
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cas

Milbo,

I don't understand your answer?  I am not talking about groups.  I'm talking about in the Custom Fields admin the Ordering column does not work.  Try to use the Ordering column to reorder the Custom Fields. You will see that it does not work. 

Uke

Hello!

I also think it would be very usable to have the option to order the customfields puldown-menu entries in the backend. When there is a custom field that you have to use frequently you always have to scroll down to it. Its not that much work but when you edit a lots of products you always think of sorting the pulldown-menu entries. Maybe "uninportant" but effective when editing a lots of products. At least the newly custom fields should apear on top position.

I now try to also hack the core - but please think about it. ;)

Milbo

ahhhh you mean as sorting in the list to choose,... hmmmmmm.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/