Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The product variation listing is not paginated.
When we have a lot of variations - query $product->getVariations() can fail on the variation listing page, so it needs to paginate this listing.
Comments
Comment #2
r_cheh CreditAttribution: r_cheh commentedComment #3
idebr CreditAttribution: idebr at iO commentedComment #4
jsacksick CreditAttribution: jsacksick at Centarro for Matsmart commentedOut of curiosty, any reason not to use a view? Rather than the default variation list builder?
Comment #5
r_cheh CreditAttribution: r_cheh commentedAdd getEntityIds() functions for product variation list builder
Comment #6
r_cheh CreditAttribution: r_cheh commentedComment #7
r_cheh CreditAttribution: r_cheh commentedComment #8
r_cheh CreditAttribution: r_cheh commentedYes, because this listing used as default listing of product variation on admin page
Comment #9
r_cheh CreditAttribution: r_cheh commentedSo, this patch doesn't work correctly because we can't load variation weight and sort by it (weight value isn't a field from the database, just a class property), and table drags don't work correctly