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

Bug: Discounts and Gifts Not Updating in Checkout Details Until Checkout Session Expires #15789

Open
LeenaSomanS opened this issue Apr 15, 2024 · 4 comments

Comments

@LeenaSomanS
Copy link

LeenaSomanS commented Apr 15, 2024

What are you trying to achieve?

During checkout creation, discounts and gifts are automatically applied. If an admin makes changes to discounts, the checkout details continue to display the previous information, including old gifts and discounts until the checkout session expires or the user modifies the cart by adding or removing items, changing delivery methods, or applying vouchers.
Related Issue: A similar issue has been raised by another user in a discussion thread: #14617

Steps to reproduce the problem

  1. Create a checkout session with applied discounts.
  2. As an admin, make changes to discounts such as deleting certain rules or altering prices.
  3. Observe that the changes are not immediately reflected in the checkout details.

What did you expect to happen?

Expected Behavior:
Changes made by the admin to discounts, gifts, shipping methods, or vouchers should be immediately reflected in the checkout details without requiring the checkout session to end or user cart modifications.

Logs

1.Promotion details
Screenshot from 2024-04-15 12-28-00
2.Creating a checkout with eligible gifts based on promotion rules.
Screenshot from 2024-04-15 12-49-07

  1. The admin removed the gift and applied a subtotal discount instead.
    Screenshot from 2024-04-15 12-31-59
  2. Discounts remain unchanged in checkout details despite modifications.
    Screenshot from 2024-04-15 12-43-58

Environment

Saleor version: 3.19

@SarthakNikhal
Copy link

@LeenaSomanS Can I work on this issue?

@SarthakNikhal
Copy link

@IKarbowiak Is this fixed in the current release?

@IKarbowiak
Copy link
Member

Hi @SarthakNikhal,
I'm not sure but I think that it wasn't fixed.

Regarding the issue, we are probably missing the marking the checkout prices should be refreshed but needs further investigation.

@LeenaSomanS
Copy link
Author

@IKarbowiak @maarcingebala Could you both propose a solution for this? I've tried to reduce the checkout expiration time, but it's not functioning as expected.

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

No branches or pull requests

3 participants