src/ShopBundle/objects/db/TShopArticle.class.php
public function RenderVariantSelection($sViewName = 'vStandard', $sViewType = 'Customer')
    {
        $sHTML = '';
        $oVariantSet = null;
        if ($this->IsVariant()) {
            $oParent = &$this->GetFieldVariantParent();

            $oVariantSet = &$oParent->GetFieldShopVariantSet();
        } else {
            $oVariantSet = &$this->GetFieldShopVariantSet();
        }
        if (!is_null($oVariantSet)) {
            $oHandler = $oVariantSet->GetFieldShopVariantDisplayHandler();
            $sHTML = $oHandler->Render($this, $sViewName, $sViewType);
        }

        return $sHTML;
    }
public function RenderVariantSelection($sViewName = 'vStandard', $sViewType = 'Customer')
    {
        $sHTML = '';
        $oVariantSet = null;
        if ($this->IsVariant()) {
            $oParent = &$this->GetFieldVariantParent();

            $oVariantSet = &$oParent->GetFieldShopVariantSet();
        } else {
            $oVariantSet = &$this->GetFieldShopVariantSet();
        }
        if (!is_null($oVariantSet)) {
            $oHandler = $oVariantSet->GetFieldShopVariantDisplayHandler();
            $sHTML = $oHandler->Render($this, $sViewName, $sViewType);
        }

        return $sHTML;
    }
public function RenderVariantSelection ( $ sViewName = 'vStandard' , $ sViewType = 'Customer' ) { $ sHTML = '' ; $ oVariantSet = null ; if ( $ this -> IsVariant ( ) ) { $ oParent = & $ this -> GetFieldVariantParent ( ) ; $ oVariantSet = & $ oParent -> GetFieldShopVariantSet ( ) ; } else { $ oVariantSet = & $ this -> GetFieldShopVariantSet ( ) ; } if ( ! is_null ( $ oVariantSet ) ) { $ oHandler = $ oVariantSet -> GetFieldShopVariantDisplayHandler ( ) ; $ sHTML = $ oHandler -> Render ( $ this , $ sViewName , $ sViewType ) ; } return $ sHTML ; }
render the variant selection html using the display handler defined through the variant set.

@param string $sViewName
@param string $sViewType

@return string
render the variant selection html using the display handler defined through the variant set .