VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: smird on March 15, 2013, 19:07:43 PM

Title: Sort of custom fileds in drop down
Post by: smird on March 15, 2013, 19:07:43 PM
Dear All, help is needed!

Use J2.5.9 and VM2.0.20

Is there a way to sort values in custom fields drop down by the number of items in stock for each separate child product?
For example, I have product A and 2 child products A1 and A2. At first I have 1 item of A1 and 3 items of A2, then order shall be A2, A1.
If I have 4 items of A1 and 3 items of A2, then order shall be A1, A2.

Maybe somebody may at least advise a function, which is used to construct and order values in drop down?

Any help is highly appreciated!
Title: Re: Sort of custom fileds in drop down
Post by: smird on March 25, 2013, 20:07:10 PM
Any suggestions?