VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: rayge on June 26, 2013, 20:59:42 PM

Title: Custom Field Ordering [Solved]
Post by: rayge on June 26, 2013, 20:59:42 PM
In the admin after adding Custom Fields I cant order them by the ordering field as you would expect.

Has this been solved yet?
Title: Re: Custom Field Ordering Bug
Post by: PRO on June 26, 2013, 21:28:49 PM
what version are you using?

the ordering of custom fields is "drag & drop" inside the product now
Title: Re: Custom Field Ordering Bug
Post by: rayge on June 26, 2013, 22:13:54 PM
I am using 2.0.20b and im talking about the full list of custom fields under
products > Custom Fields

not within a product.
so really your saying that ordering has no relation to the display for a particular product?
Title: Re: Custom Field Ordering Bug
Post by: Milbo on June 26, 2013, 22:48:12 PM
The ordering there has only an effect if you create a group.
The ordering else is created when you use a custom prototype within a product. Use the customfields within the product, use dragn drop and explain how the ordering can be transferred? It makes only sense for groups.
Title: Re: Custom Field Ordering Bug
Post by: rayge on June 26, 2013, 23:07:17 PM
Well i assumed maybe the ordering may be used during an IMPORT as a default for the custom fields.
If the ordering on that page doesnt really matter then mayge the sort option for it shoudl be removed?

ok so can you point me to the documentation about the groups and prototypes? just curious now LOL
Title: Re: Custom Field Ordering Bug
Post by: Milbo on June 27, 2013, 11:28:07 AM
I am sorry, but did you tried what I read? When you go to the product customfields, you add every customfield ONE by ONE. So the ordering is done by you directly. How should the system know that it should it reorder for you?
and of course it makes sense, if you create a GROUP of customfields. Because then you choose the group in the product edit and then there a lot customfields added at once. There is an order in it then. So there is no reason to remove it.
Title: Re: Custom Field Ordering Bug
Post by: rayge on June 29, 2013, 00:14:59 AM
OH OK i get it now. thanks!
Title: Re: Custom Field Ordering [Solved]
Post by: illPhever on August 15, 2013, 07:23:28 AM
I don't get it  ???
How do you create a Group of customfields?
...and then, how do you choose that group in the product edit?
Title: Re: Custom Field Ordering [Solved]
Post by: Maxim Pishnyak on August 15, 2013, 10:00:44 AM
Quote from: illPhever on August 15, 2013, 07:23:28 AM
How do you create a Group of customfields?
Click customfields VM menu link.
Create customfield with group type.
Title: Re: Custom Field Ordering [Solved]
Post by: denvarel on October 07, 2013, 22:40:38 PM
Hello Maxim.

I have troubles ordering the custom fields and i can tell you that the subject is not closed. Joomla 2.5.14, Virtuemart 2.0.24
I have created a Group of custom fields, all are VMplugins if  this is important. I cannot order in backend in the Custom Field regardless if I'm filtering after the parent or not. Even the displaying is not working if i press to be ordered upwards or downwards... The list remains unchanged.
I have tried to order manually by inserting the desired order position in every box and save. no success! The main trouble is that the order, after defining all custom fields, is not satisfactory and is much too much trouble if i have to reorder the fields into product defining page every time i add a product with that parent custom field.

Strange is that the display ordering in the custom fields page is not working after ID column neither. The column header display that is active but is not... Again, in both "all" custom fields page and in a "group filtered" custom fields page.

Thank you!
Title: Re: Custom Field Ordering [Solved]
Post by: Maxim Pishnyak on October 12, 2013, 11:21:08 AM
What 3rd party extensions do you have?
Title: Re: Custom Field Ordering [Solved]
Post by: verinted on January 08, 2014, 12:28:27 PM
I'm using VM 2.0.24 on Joomla 2.5.14.
When I try to use the drag and drop ordering in the admin for product_customfields, I do see the ordering being switched up on the page, but then the Action buttons no longer work. I can't Save, or Save & Close or even Cancel after I've used the drag and drop ordering. Very strange. These buttons are otherwise working fine for me.
Help?
Title: Re: Custom Field Ordering [Solved]
Post by: vitaly-zdanevich on February 06, 2014, 11:18:17 AM
I have this problem too.
Title: Re: Custom Field Ordering [Solved]
Post by: Milbo on February 07, 2014, 19:12:41 PM
Which problem?
The the ordering for groups is not stored?
Title: Re: Custom Field Ordering [Solved]
Post by: Darkheart on February 10, 2014, 23:00:00 PM
The same problem here. The ordering is stored, but fields are not ordered by these numbers. Both in Custom fields page and by adding group to product the order stays the same as you see here:
(http://ankh.lv/images/custom-field-order.png)

This is the same order as I see in virtuemart_customs table. Of course I can change the order when I add the field group to product, but that's not user friendly, because I need to change the order every time I add the group to product, and I have about 500 products that need the custom fields group to be added.

I am using the latest VM and Joomla 2.5.17
Title: Re: Custom Field Ordering [Solved]
Post by: Milbo on February 11, 2014, 10:25:11 AM
Committed for the 2.0.27. I really wonder how we lost it. that stuff was already written. Svn committ error assumingly.
Title: Re:
Post by: Darkheart on February 11, 2014, 18:03:49 PM
Thanks!

Could you please post here code changes that must be applied to solve this? I must add a lot of products and can't wait for 2.0.27.
Title: Re: Custom Field Ordering [Solved]
Post by: sandstorm on March 19, 2014, 14:36:47 PM
I am using J2.5.19, VM2.0.26d and am having the same problem.

I have a group of CF's that I cant order in the back end. I can see that I can reorder these when adding them to a product, but I am adding a lot of products and dont want to reorder these ever time.

What code needs to be changed in 2.0.26d, to fix this please?
Title: Re: Custom Field Ordering [Solved]
Post by: jenkinhill on March 19, 2014, 15:15:38 PM
Custom field ordering is fixed for the next version. See test/pre-release version http://forum.virtuemart.net/index.php?topic=122785.0