Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordering variants shuffles prices #719

Closed
remiduval opened this issue Sep 13, 2022 · 1 comment · Fixed by #720
Closed

Reordering variants shuffles prices #719

remiduval opened this issue Sep 13, 2022 · 1 comment · Fixed by #720
Labels

Comments

@remiduval
Copy link

Bug Description

Initial order:
Variant 1 - £10
Variant 2 - £20
Variant 3 - £30

If I reorder the variants, the prices won't reorder properly:
Variant 1 - £10
Variant 3 - £20
Variant 2 - £30

That's only on display - when saving, prices are saved properly. But someone using the CP would have probably corrected the prices after reordering, causing confusion when saving and refreshing.

Steps to reproduce

  1. Create a product with variants
  2. Create a few variants, remember their prices
  3. Reorder them - price are shuffled
  4. Save the product and refresh the page - prices are in the right order again

Environment

Statamic 3.3.35 Pro
Laravel 8.83.23
PHP 8.1.9
4rn0/statamic-v3-image-optimizer 1.0.16
aryehraber/statamic-logbook 2.1.0
doublethreedigital/duplicator 2.3.2
doublethreedigital/guest-entries 1.2.1
doublethreedigital/simple-commerce 3.2.20
optimoapps/statamic-bard-text-align 1.0.2
rias/statamic-redirect 2.4.0
xndbogdan/statamic-bard-text-color 2.4.1

@github-actions
Copy link

Released as part of v4.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant