question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Guest checkout not working with vue-storefront

See original GitHub issue

Describe the bug I’ve installed vendure and added vue-storefont. From the first glance everything works as expected, but i can’t navigate to shipping step with unauthorized user. When i filled in name/email in /checkout/customer route, and clicked “Continue Shipping” button, I’am redirected to Home page.

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘/checkout/customer’
  2. Fill in user name and email
  3. Click ‘Continue Shipping’
  4. In api request setCustomerForOrder there is error: { "errorCode": "NO_ACTIVE_ORDER_ERROR", "message": "There is no active Order associated with the current session", "__typename": "NoActiveOrderError" }

Expected behavior Unauthorized user should be able to proceed with checkout

Environment (please complete the following information):

  • @vendure/core version: 1.4.5
  • Nodejs version: v14.16.1
  • Database : postgres

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelbromleycommented, Feb 4, 2022

In the demo storefront, the setCustomerForOrder does get called, but only once you submit your payment details.

Guest checkout do seem to be working with Vendure (I just tested the guest checkout flow in the demo storefront), so I think the error is either with the VSF integration project, or some other config setting perhaps.

0reactions
tylik1commented, Feb 4, 2022

OK. Double-check you set the correct vendure config as covered here, and if that is not working still, please open an issue in this repo instead: https://github.com/vuestorefront-community/vendure/

ok thanks. checked, everything is correct. The problem is within api which comes from Vendure app, that’s why i thought it might be related with Vendure, not with storefront. BTW on the store example from the link below, i can see that no api request is sent, when i’ve filled in user/email information. https://demo.vendure.io/storefront/checkout/shipping

Anyways thanks for help, will try to dig further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[CT] Improve checkout · Issue #4402 · vuestorefront ... - GitHub
cover all scenarios of checkout flow: (guest, logged user, a guest who creates an account, pre-load address from the account) · add loading...
Read more >
Payment Methods and placeOrder - Get Help - Vue Storefront
This method emits the checkout-before-placeOrder event (if not creating an account). If Backend Payment Methods is enabled and a backend ...
Read more >
Not working whith guest checkout - WordPress.org
Hi, I´m new to cartflows and already configured a checkout and a thank you page (free version). Unfortunately the funnel only works for...
Read more >
VUE Storefront: Category page shows the item counts as string
Without a full working example, I can't really see the entire problem, but the string that you're passing to $t is just a...
Read more >
Uniform & Vue Storefront - Interview with Tim Benniks - YouTube
Jacob & Aditya interviewed Tim Benniks, the Principal developer advocate at Uniform. They've discussed: - What is DXP?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found