conedevelopment/bazar

Shippable/non-shippable items

Closed this issue · 2 comments

Determine if an item should be shipped.

For example a virtual item should be excluded from the shipping calculation.

If a cart holds only non-shippable items, calculation should be skipped, shipping model should not be attached to the cart/order during checkout.

public function shouldBeShipped(): bool
{
    return ! $this->inventory->virtual() && ...;
}

It should be tackled in the shipping driver's calculate method.