Sunnysideup\Ecommerce\Model\Order::TotalItems
returns the total number of OrderItems (not modifiers).
This is meant to run as fast as possible to quickly check if there is anything in the cart.
Signature
public function TotalItems([boolean
$recalculate = false] )
Parameters
$recalculate
— boolean- - do we need to recalculate (value is retained during lifetime of Object)