Sunnysideup\EcommerceProductVariation\Model\Buyables\ProductWithVariationDecorator::HasVariations
tells you whether the product has any variations.
Signature
public function HasVariations([boolean
$mustBeForSale = false] )
Parameters
$mustBeForSale
— boolean- - only count variations that are for sale
Returns
- bool