Skip to content
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

Cannot create order without a shipping method #20

Open
Stereck opened this issue Nov 23, 2022 · 1 comment
Open

Cannot create order without a shipping method #20

Stereck opened this issue Nov 23, 2022 · 1 comment

Comments

@Stereck
Copy link

Stereck commented Nov 23, 2022

Cannot place an order without a shipping method.
This happens e.g when only virtual products are purchased (downloads, gift cards, ...)

if (strpos($order->getShippingMethod(), '_') !== false) {

Changing that line to this one would fix it:
if (strpos($order->getShippingMethod() ?? '', '_') !== false) {

@contardi
Copy link
Contributor

Hi Stephan
There's a commit that solves it, it'll be updated later today
Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants