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

Variant adds zeros at each price update #1988

Open
ferdiunal opened this issue Oct 14, 2024 · 1 comment
Open

Variant adds zeros at each price update #1988

ferdiunal opened this issue Oct 14, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@ferdiunal
Copy link
Contributor

ferdiunal commented Oct 14, 2024

  • Lunar version: ^1.0.0-beta.3
  • Laravel Version: 11.27.2
  • PHP Version: 8.3
  • Database Driver & Version: PostgreSql 16.2

Expected Behaviour:

When I update the price of a product variant, it adds a zero to the end of each variant price. ProductOptionsWidget.php#L405

Screen.Recording.2024-10-14.at.11.28.21.mov

Actual Behaviour:

Steps To Reproduce:

@ferdiunal ferdiunal added bug Something isn't working unconfirmed labels Oct 14, 2024
@ferdiunal
Copy link
Contributor Author

Solution:

I think that the price should be stored in a raw_price or equivalent column, and every time the price is updated it should reference the raw data in this column. ProductOptionsWidget.php#L405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant