Skip to content

[5.x]: Can't adjust order of variants when more than 50 variants #16026

@WHITE-developer

Description

@WHITE-developer

What happened?

Description

We’re experiencing an issue with reordering product variants when a product has more than 50 variants.

Initially, the order can be adjusted successfully, but after the save the variant is back at the initial place.

This is before a save:
After successfully reordering once, attempting to reorder a second time fails. During the second attempt, the variant item cannot be dragged as expected; instead, only the icons are selectable, and dragging is unresponsive.
Image

Steps to Reproduce

  1. Create a product.
  2. Add more than 50 variants to the product (e.g., 55 variants).
  3. Reorder the variants.
  4. Attempt to reorder the variants a second time, without refreshing the page.
  5. Save the page

Expected Behavior

  • The variant should be at the position it’s dragged to after the save.
  • Reordering should work consistently, allowing users to adjust the order multiple times without needing to refresh the page.

Actual Behavior

  • After the save the variant reverts to its original position.
  • Subsequent reordering fails unless the page is refreshed.

Craft CMS version

5.3.4

Craft Commerce version

5.0.16.1

PHP version

8.3.8

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions