Is there a way of specifying the display order of product variations on the add to cart form. I've tried changing the order using the field (it uses draggable tables), the order is not reflected when viewing the product display node. I'm using the Inline entity form - Multiple values widget for this field.

Comments

rszrama’s picture

Status: Active » Closed (won't fix)

Per the issue submission guidelines, we handle support requests at http://www.drupalcommerce.org/questions to improve discoverability (answers quickly get lost in the issue queue). If you can repost your question there, I'd be happy to assist. Just put a link in a follow-up comment here and I'll follow it.

richard.french’s picture

Status: Closed (won't fix) » Active
rszrama’s picture

Status: Active » Closed (fixed)

Thanks, Richard! I'll go try an answer. : )

millionleaves’s picture

Issue summary: View changes

I keep finding this issue page when trying to solve a problem where product variations are not sorting correctly. The answer for me isn't here or at the Drupal Commerce website. I'm adding my solution here in case it helps anyone else in the future.

In my case, the variations all have a size assigned to them. The size options are defined in a vocabulary called Size. The variations in the Add to Cart form are sorted according to the order (weight) of the terms in that vocabulary. If the terms aren't in alphabetical order, then they will appear to be out of order in the Add to Cart form. Sorting the terms alphabetically fixes the problem.