-
Notifications
You must be signed in to change notification settings - Fork 197
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
Errors in order summary without log in #212
Comments
@diegomassaroo There was a similar issue: |
@diegomassaroo |
Let us know if this resolved your problem and if resolved close this issue :) |
What payment do you use to checkout? If you go to the order list does it show? |
I use stripe card and yes they appear to the order list |
What status do they have? |
There is a pending PR which Improves checkout with stripe. And this might happen in orders when the payment has failed or some error. so the status is not defined. @scottyzen |
They have processing status, so they are correct because products aren't virtual or downloadable. |
@diegomassaroo |
In chrome it works but it display an empty receipt. Instead in incognito and on safari it display: not authorized to access this order |
And this is only happening on guest checkout right? |
Yes exactly |
@diegomassaroo |
I just checked and it still remains in a 'Logging you in...' status |
I just made a guest order and it worked. Are you sure you are testing towards latest code versions? (woonuxt, wp-graphQL, woocommerce) ? |
What option do you have in WP-GRAPHQL-CORS? do you have set the |
also how is it in safari and how is it in Chrome? |
Are you using the latest main code? can you share your website ? |
Sure, here’s the screenshot from WP-GraphQL-CORS: Yes, I’ve tested it on both Safari and Chrome. This is the link to my website on Vercel: As I mentioned last time, I also noticed that when I try to log in, it remains stuck on the 'Logging you in...' status. |
I just checked your website and I just found out you are using outdated code from main branch. |
I’ve downloaded a copy of the latest code and updated it with my GraphQL endpoint, but it still doesn’t seem to be working properly. |
Try to reduce the authorized domains in wp-graphql cors plugin. keep only one localhost:3000 and one the Vercel one. |
Also I am not sure if that vercel domain should work. Try connecting it with another subdomain same as the Wordpress. Maybe that's the issue. |
Also can you successfully login in localhost? |
Yes, I’ve tried reducing the authorized domain, but I still can’t log in, even on localhost. |
I encountered the same issue on my Woonuxt website when testing in Safari from localhost:3000—getting stuck on the "Logging you in..." message. This problem occurs only in Safari; Chrome works fine from localhost:3000 when trying to login to my remote wordpress website: https://shop.comewithreverse.com/ It appears that Safari has stricter security measures, especially when connecting to an HTTPS website from localhost without SSL, which might cause cookies to be ignored or a domain mismatch to occur, even if the cookie setting is set to None. However, Woonuxt works correctly in Safari when accessed via HTTPS and the same domain, such as https://comewithreverse.com/. My WordPress site is located at https://shop.comewithreverse.com/. Please try setting up a subdomain at https://staging-frontend.bikeinnovation.it/ which has same domain as your wordpress connect it with Vercel, and test again in Safari. This should resolve the issue. |
I tried with another site that’s already published, which shares the same domain as my WordPress site, and I’m getting the same error. |
Can you share that domain you tested? |
Sure, but I’ll need to enable test mode for Stripe if you want to test it. Just let me know, and I’ll activate it. |
I tested in the website login with safari and it worked I didnt get any "Logging you in...". like from the other website (vercel with different domains) It's because the wordpress is in url: https://staging.anienepublishing.it/graphql same domain. So it should work.
I remember when I worked on this PR even if there is a checkout payment error the order was created. How did you test exactly the checkout in the aniene website? |
Yes, Aniene is using the repository from August 27, 2024, but I haven’t used layers because I didn’t succeed last time. The locale translations didn’t work as expected, so next time I’ll use layers from the beginning. I select one or more products, fill in the billing details, and proceed to payment. The order completes, but I’m still seeing that error screen. |
Can you Add me in Discord, maybe we can sync so that I can test it in test mode? (#alexookah) |
When I complete an order it logs me this error:
TypeError: Cannot read properties of undefined (reading 'replace')
If I check the props.status in orderStatusLabel it shows me empty receipt:
Then when I try to change page and navigate the website it logs me this error:
Cannot destructure property 'type' of 'vnode' as it is null.
Do you have any suggestions?
The text was updated successfully, but these errors were encountered: