/** * Get whether product is configurable or grouped * * @return bool */ protected function _isProductComposite() { if (null === $this->_isProductComposite) { $this->_isProductComposite = $this->_qty->getForm()->getDataObject()->isComposite(); } return $this->_isProductComposite; }