Shippable/non-shippable items
Closed this issue · 2 comments
iamgergo commented
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.
iamgergo commented
public function shouldBeShipped(): bool
{
return ! $this->inventory->virtual() && ...;
}
iamgergo commented
It should be tackled in the shipping driver's calculate method.