src/ShopBundle/objects/TCMSTableEditor/TCMSShopTableEditor_ShopArticle.class.php
public function ProcessFieldsBeforeDisplay(&$oFields)
    {
        /** @var TdbShopArticle $product */
        $product = $this->oTable;
        if ($product->IsVariant()) {
            $oParent = &$product->GetFieldVariantParent();
            if (null != $oParent) {
                $oVariantSet = &$oParent->GetFieldShopVariantSet();
                if (!is_null($oVariantSet)) {
                    $aPermittedFields = $oVariantSet->GetMLTIdList('cms_field_conf', 'cms_field_conf_mlt');
                    $oPermittedFields = new TIterator();
                    $oFields->GoToStart();
                    while ($oField = $oFields->Next()) {
                        /** @var $oField TCMSField */
                        if (in_array($oField->oDefinition->id, $aPermittedFields)) {
                            $oPermittedFields->AddItem($oField);
                        }
                    }
                    $oFields = $oPermittedFields;
                }
            }
        }
    }
public function ProcessFieldsBeforeDisplay(&$oFields)
    {
        /** @var TdbShopArticle $product */
        $product = $this->oTable;
        if ($product->IsVariant()) {
            $oParent = &$product->GetFieldVariantParent();
            if (null != $oParent) {
                $oVariantSet = &$oParent->GetFieldShopVariantSet();
                if (!is_null($oVariantSet)) {
                    $aPermittedFields = $oVariantSet->GetMLTIdList('cms_field_conf', 'cms_field_conf_mlt');
                    $oPermittedFields = new TIterator();
                    $oFields->GoToStart();
                    while ($oField = $oFields->Next()) {
                        /** @var $oField TCMSField */
                        if (in_array($oField->oDefinition->id, $aPermittedFields)) {
                            $oPermittedFields->AddItem($oField);
                        }
                    }
                    $oFields = $oPermittedFields;
                }
            }
        }
    }
public function ProcessFieldsBeforeDisplay ( & $ oFields ) { /** @var TdbShopArticle $product */ $ product = $ this -> oTable ; if ( $ product -> IsVariant ( ) ) { $ oParent = & $ product -> GetFieldVariantParent ( ) ; if ( null != $ oParent ) { $ oVariantSet = & $ oParent -> GetFieldShopVariantSet ( ) ; if ( ! is_null ( $ oVariantSet ) ) { $ aPermittedFields = $ oVariantSet -> GetMLTIdList ( 'cms_field_conf' , 'cms_field_conf_mlt' ) ; $ oPermittedFields = new TIterator ( ) ; $ oFields -> GoToStart ( ) ; while ( $ oField = $ oFields -> Next ( ) ) { /** @var $oField TCMSField */ if ( in_array ( $ oField -> oDefinition -> id , $ aPermittedFields ) ) { $ oPermittedFields -> AddItem ( $ oField ) ; } } $ oFields = $ oPermittedFields ; } } } }
if the current article is a variant AND a variant set has been defined,
then mark all fields as hidden that are NOT activated through the set.

@param TIterator $oFields
if the current article is a variant AND a variant set has been defined then mark all fields as hidden that are NOT activated through the set .