-
Notifications
You must be signed in to change notification settings - Fork 288
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
Checkout flow not functioning as expected when running in local production mode #742
Comments
I ran a lot of experiments on this one and this is what I could narrow it down to:
This leads me to believe that the SSR that next is generating is missing something that is needed from the reaction api call. |
Regarding the language:
This could however soon be made obsolete by just using the i18n routing nextjs now provides out of the box, which would reduce boilerplate overall. |
There seems to be no specific cart-related bug here, the underlying way the pages are built currently requires the api to be active and reachable, this is relevant for all pages that use shop data. |
Yes, I will be fixing those pretty soon.
…On Fri, Jan 29, 2021 at 1:16 AM Janus Reith ***@***.***> wrote:
There seems to be no specific cart-related bug here, the underlying way
the pages are built currently requires the api to be active and reachable,
this is relevant for all pages that use shop data.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#742 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3HFLOUC3MNT5IKIJWRF53S4JVGVANCNFSM4WJRV3NA>
.
|
Hi @Akarshit! example-storefront/pages/[lang]/product/[...slugOrId].js Lines 133 to 160 in 41f4147
(BTW nextjs should be updated soon, revalidate is stable for some time)
The cart page and some other pages currently lack a directive to revalidate and stick with the built time vars. |
@janus-reith I tried the above approach. The behavior I got was a little weird. Here is what's happening if I use
I am pretty sure we don't want this behaviour. |
@Akarshit No, we most probably don't, the initial intention was to have the api reachable during build of these pages. See my post here: #718 (comment) |
@janus-reith Yeah, your example works fine. But one slight problem is that I tried to find documentation for it and can't seem to find anything that would suggest to use |
@Akarshit No, I did not find documentation that states how |
Not closing this one, as I still want to followup with next folks and see if we can get a better solution. |
Hey, community! We had the same problem with the checkout flow, so we recorded a video (that reproduce the issue). This is E-commerce that was built with the project, example-storefront:4.0.2, using instances on compute engine and cloud dns (i.e. Google Cloud Platform). Also, when the user clicks on the checkout, the cart is empty and changes the path language (e.g. The user was on the path "/en", then the checkout path was changed to "/de". I hope to give you some help. |
Type: major
Describe the bug
When running the app locally in production mode the example-storefront checkout flow does not function as expected. When the user has placed items in their cart and clicks checkout, the items are removed from the cart preventing the user from checking out. Additionally the language switches to German (this behavior is not consistent). However, hovering over the cart prior to clicking it shows the items in the cart as expected. After exiting the cart page, the on hover behavior of the cart once again shows the correct orders. This issue is only seen in production mode run locally.
To Reproduce
Steps to reproduce the behavior:
make
).Expected behavior
The expectation is that when a user clicks the cart they will be redirected to the checkout view and will successfully see the items they have added to their cart, in addition being able to successfully check out.
Screenshots
Desktop (please complete the following information):
Additional context
This issue has been reported by a few different users with V4.0.0 for example-storefront and V3.11.0 for Reaction.
The text was updated successfully, but these errors were encountered: