Skip to content

Cannot open order in backend without a shipping method #19

@Stereck

Description

@Stereck

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

if (strpos($this->getOrder()->getShippingMethod(), 'intelipost') !== false) {

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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