Warning: Undefined property: MultistepDefault::$order in order_information step as anonymous user

Created on 16 October 2024, about 1 month ago

Problem/Motivation

Going through the checkout as anonymous user (Guest checkout), I get the following Warning, when submitting the "order_information" step form:

Warning: Undefined property: Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\MultistepDefault::$order in Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowBase->getOrder() (line 167 of modules/contrib/commerce/modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php).

Steps to reproduce

  1. Use the shop as anonymous user
  2. Add an item to cart
  3. Go to cart
  4. Go to checkout
  5. Select guest checkout (no registration or login): "Continue as guest"
  6. Enter your contact and payment details
  7. Click "Continue to review"
  8. See the error

We're using commerce_shipping, so I'm unsure if this is a commerce_shipping issue and related to the AJAX calls in the background or a Commerce issue. Any ideas how that could happen?

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Describe your bug or feature request.

If a bug, provide steps to reproduce it from a clean install.

🐛 Bug report
Status

Active

Version

3.0

Component

Checkout

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024