/** * Returns the inherited DefaultGroupHolderView * * @param SilvercartProductGroupPage $context Context * * @return string */ public function getDefaultGroupHolderViewInherited($context = null) { if (is_null($context)) { $context = $this; } $defaultGroupHolderView = $context->DefaultGroupHolderView; if (empty($defaultGroupHolderView) || SilvercartGroupViewHandler::getGroupHolderView($defaultGroupHolderView) === false) { if ($context->Parent() instanceof SilvercartProductGroupPage || $context->Parent() instanceof SilvercartProductGroupHolder) { $defaultGroupHolderView = $this->getDefaultGroupHolderViewInherited($context->Parent()); } else { $defaultGroupHolderView = SilvercartGroupViewHandler::getDefaultGroupHolderView(); } } return $defaultGroupHolderView; }