-
Notifications
You must be signed in to change notification settings - Fork 286
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] BuyNowButton always redirects to checkout when cart is not empty #825
Comments
The reason for this is hydrogen/packages/hydrogen-react/src/BuyNowButton.tsx Lines 43 to 47 in a783b42
A simple solution would be to use if(loading && checkoutUrl) .
|
tiwac100
added a commit
to tiwac100/hydrogen
that referenced
this issue
Apr 27, 2023
5 tasks
Yes, Just instantly goes to checkout without having to click the button. |
benjaminsehl
changed the title
BuyNowButton always redirects to checkout when cart is not empty
[Bug] BuyNowButton always redirects to checkout when cart is not empty
May 8, 2023
frehner
added a commit
that referenced
this issue
May 17, 2023
* Fix 2023 01 (#807) * Revert "Support optional segments in `check routes` CLI command (#774)" This reverts commit 2039a4a. * update package.lock * Fix demo store search action url (#802) * Fixing #825 * Add loading dependency to redirect effect * Revert "Fix 2023 01 (#807)" This reverts commit 53e6dbf. * Revert "Fix demo store search action url (#802)" This reverts commit a783b42. * add a changeset --------- Co-authored-by: Daniel Rios <[email protected]> Co-authored-by: Ós <[email protected]> Co-authored-by: Anthony Frehner <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the location of your example repository?
No response
Which package or tool is having this issue?
hydrogen-react
What version of that package or tool are you using?
2023-04
What version of Remix are you using?
No response
Steps to Reproduce
AddToCartButton
andBuyNowButton
on a product page.AddToCartButton
Expected Behavior
The user only gets redirected to checkout when the
BuyNowButton
is actually clicked.Actual Behavior
The user gets redirect as soon as an item is in the cart and a
BuyNowButton
is present on the current page.The text was updated successfully, but these errors were encountered: