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

price does not change when options changed at configurable product with variant #9719

Open
1 task done
digicatech opened this issue Apr 24, 2024 · 4 comments
Open
1 task done
Labels
Bug Something isn't working.

Comments

@digicatech
Copy link

Terms

  • Before you openning this issue, i have checked if the issue has already been reported.

Bagisto Version(s) affected

2.1.2

Issue Description

For products with more than one options (configurable product with variant), the correct price appears when the options are first selected. However, the price does not change when the options are changed.

Preconditions

Windows 11
Laragon 6
PHP 8.1.10
Apache 2.4.54
Mysql 8.0.30
and
Linux 4.19.286-203.ELK.el7.x86_64
Apache 2.4.59
Mysql 5.7.23-23

Steps to reproduce

  1. Go to admin and add product with variants. Options should be two or more. And set prices different each other.
  2. Go to front and product page and select options. You will see price is true for selected options.
  3. Then change any option except the first option.
  4. You will see that the price is either not calculated or calculated incorrectly.

Expected Result

The warrant price selected in accordance with the options appears on the screen.

Actual Result

You will see that the price is either not calculated or calculated incorrectly.

Screenshots

image
image
image

Additional context

No response

@digicatech digicatech added the Bug Something isn't working. label Apr 24, 2024
@ashishkumar-webkul ashishkumar-webkul added the In Testing When PR in testing. label Apr 25, 2024
@digicatech
Copy link
Author

The problem is in the JavaScript code in this file
packages\Webkul\Shop\src\Resources\views\products\view\types\configurable.blade.php

image

image

@digicatech
Copy link
Author

digicatech commented Apr 27, 2024

The solution below works fine. But you should still take a look. (@ashishkumar-webkul )

image

@ashishkumar-webkul
Copy link
Collaborator

@digicatech
I have checked and found that the issue is indeed appearing. Kindly review the video and confirm whether you are concerned about this case.

Video

Price.Reload.mp4

@ashishkumar-webkul ashishkumar-webkul removed the In Testing When PR in testing. label Apr 29, 2024
@digicatech
Copy link
Author

digicatech commented Apr 29, 2024

@ashishkumar-webkul

Yes, this is exactly the problem.
I mentioned the solution suggestion above.

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

No branches or pull requests

2 participants