Author Topic: 2.0.12f back end: custom fields manual re-ordering does not work  (Read 5974 times)

SamF

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 101
    • virtuext.com
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

  • Beginner
  • *
  • Posts: 5
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #1 on: February 12, 2013, 13:24:28 pm »
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

  • Beginner
  • *
  • Posts: 36
    • Κατασκευή ιστοσελίδων Θεσσαλονίκη - Web Design
  • VirtueMart Version: VM3
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #2 on: April 27, 2013, 06:52:43 am »
It worked for me too!!!!

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

cas

  • Jr. Member
  • **
  • Posts: 487
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #3 on: April 27, 2013, 08:09:27 am »
Can the VM team please fix this in the base so we don't need to hack the code.  Thanks.

cas

  • Jr. Member
  • **
  • Posts: 487
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #4 on: June 13, 2013, 21:42:27 pm »
VM team, is this fixed yet?   Reported in October 2012.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10036
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #5 on: June 14, 2013, 11:48:33 am »
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?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cas

  • Jr. Member
  • **
  • Posts: 487
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #6 on: August 10, 2013, 09:09:12 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10036
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #7 on: August 12, 2013, 12:06:30 pm »
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cas

  • Jr. Member
  • **
  • Posts: 487
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #8 on: August 15, 2013, 01:10:01 am »
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

  • Beginner
  • *
  • Posts: 27
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #9 on: October 16, 2013, 12:49:45 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10036
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.12f back end: custom fields manual re-ordering does not work
« Reply #10 on: October 23, 2013, 21:14:56 pm »
ahhhh you mean as sorting in the list to choose,... hmmmmmm.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/