Tags/topics: 
3
Answers
Vote up!
0
Vote down!

Ordering Product Variations (line weight)

Happy New Year Everyone!

Anyone know how to increase the order (line weight) number for product variations from 50 to 75?
I have 75 product variations numbered from P801 to P875.
The products were in perfect order from P801 to P851 and then they started defaulting to -50 line weight pushing higher numbers to the top of the list.

Here's a link to the product page where you can see in the drop down for variations numbers are in order up to P851 then the remaining 25 are out of order above P801. http://linkserver55.com/~aalamps/?q=singleelement/p800-series

Seems like if I could change the maximum number to 75 instead of 50 it would be perfect but I don't know where to do that.

Thanks so much in advance to anyone who could point me in the right direction.

Annette

Asked by: NextPageNetty
on January 1, 2013

Comments

weight start with negative numbers.
So you have weights from -50 to 50.
Your first line needs to be -50, second -49 etc.

Then you got enough weight to handle your needs.

Another solution could be, giving it ordered names.
If you set the lineweight to 0, the lines will be ordered by the name.

- ronald on January 2, 2013

3 Answers

Vote up!
0
Vote down!

Hey Thanks so very much Ronald.
That would work perfectly if I could order them by name.
I'll give it a try by setting all the variation weights to 0.
Thanks again!
Annette

Answer by: NextPageNetty
Posted: Jan 2, 2013
Vote up!
0
Vote down!

Hi,
So I set the row weight to 0 on all 75 product variations then saved the settings but when I preview the page the weights have reverted back to 0-50 then all the rest at -50.

If I drag and drop them into the correct order it works only until I make a change on any of the variations and then it reverts to the jumbled list.

How do I get them to stay put or to default to 0 and stay there.

Thanks again,
Annette

Answer by: NextPageNetty
Posted: Jan 2, 2013

Comments

Agree, this is super annoying. When you have 200+ product variations, you spend 15 minutes putting them in a particular order, then randomly they go back to a jumbled mess. Why does this happen?

Suggestion: make an option to sort by productID (the order they were entered into the system), OR by weight. Obviously the Weight option is not working because every so often, random product variations are assigned -50... there's no rhyme or reason to what number they are assigned, and/or when this happens. Can someone shed some light on this?

- nelslynn on April 22, 2013
Vote up!
0
Vote down!

I had the same problem and I think I found a solution:

Go to:
profiles/commerce_kickstart/modules/contrib/inline_entity_form/inline_entity_form.module

And find

'#delta' => 50

change it to e.g.

'#delta' => 100

Then it should count from -100 to +100.

Answer by: finnhappy
Posted: Jul 9, 2013