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