public function getInVariantAttributes()
{
$arrAttributes = $this->getAttributes();
if (!$this->hasVariants()) {
return $arrAttributes;
}
// Remove all attributes that are selected for overriding.
foreach ($arrAttributes as $strAttributeId => $objAttribute) {
if ($objAttribute->get('isvariant')) {
unset($arrAttributes[$strAttributeId]);
}
}
return $arrAttributes;
}