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

Adding event filtering. Only AddToCart events should be deferred. #2734

Merged
merged 1 commit into from
May 3, 2024

Conversation

message-dimke
Copy link
Contributor

Changes proposed in this Pull Request:

Closes #2731 .

Not all events must be deferred if the redirect to cart after add setting is ON. Defer only AddToCart events.

Changelog entry

Fix - Defer only AddToCart events if applicable.

…ase `cart redirect after add` option is active.
@message-dimke message-dimke added the type: bug The issue is a confirmed bug. label May 2, 2024
@message-dimke message-dimke requested a review from a team May 2, 2024 20:49
@message-dimke message-dimke self-assigned this May 2, 2024
@github-actions github-actions bot added the changelog: fix Took care of something that wasn't working. label May 2, 2024
@message-dimke message-dimke marked this pull request as ready for review May 2, 2024 21:34
Copy link
Contributor

@ibndawood ibndawood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @message-dimke, for addressing this issue. The code looks good to me!

@message-dimke message-dimke merged commit 3580926 into develop May 3, 2024
5 checks passed
@message-dimke message-dimke deleted the fix/defer-add-to-cart-only branch May 3, 2024 05:07
@andytwl
Copy link

andytwl commented May 3, 2024

Great! Thanks @message-dimke @ibndawood . Looking forward to the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Took care of something that wasn't working. type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All events added with inject_event() are delayed if woocommerce_cart_redirect_after_add == yes
3 participants