VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Dask on November 16, 2018, 23:00:22 PM

Title: custom field list order and filter
Post by: Dask on November 16, 2018, 23:00:22 PM
Hello together,

I created a custom field with type "string" so that I can have a list for the attr "size" like "50; 56; 62; 68; 74; 80; 86; ... 140+; >140".
Issue:
In the frontend the order /sorting of the drop down list is total mixed up in the search dropdown list (searchable = 1) like
86
80
74
92
98
116
>140
128
134
122
+140
62
68
104
110
140


In the backend, when I am creating a new product and choose the size for the product from the dropdown list by the custom fields, everything is fine. there is the right sorting list.
So, how can I fix this issue?

Thanks for helping me.
Marcus

Title: Re: custom field list order and filter
Post by: Dask on December 03, 2018, 23:00:12 PM
so, no answer yet :)
But I also have another strange thing. The values of the list are not they should be.
See the screenshot I made.
Is this a bug or a feature?
(https://i.ibb.co/0j7t5z7/2018-12-03-22-52-47-Window.jpg)
Title: Re: custom field list order and filter
Post by: jjk on December 24, 2018, 11:41:35 AM
I think you should use the 'Multi Variant' custom field type for your purpose. Example screenshot below.