Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Elcodi
Component
Product
Entity
Product
hasVariants
Elcodi\Component\Product\Entity\Product::hasVariants PHP Method
Product Class Documentation
Show file
Open project: elcodi/elcodi
hasVariants()
public
method
Tells if this product has variants.
public
hasVariants
( ) :
boolean
return
boolean
Product has variants
public function hasVariants() { return !$this->variants->isEmpty(); }
Product
addAttribute
addCategory
addVariant
getAttributes
getPrincipalVariant
getPurchasableType
getType
getVariants
hasVariants
removeAttribute
removeCategory
setAttributes
setCategories
setManufacturer
setPrincipalCategory
setPrincipalVariant
setType
setVariants