Skip to content

Cannot create order without a shipping method #20

Description

@Stereck

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions