protected function _prepareLayout() { if ($head = $this->getLayout()->getBlock('head')) { $head->setCanLoadCalendarJs(true); } return parent::_prepareLayout(); }
protected function _beforeToHtml() { if (($option = $this->getOption()) != null && ($product = $this->getProduct()) != null) { $option->setProduct($product); } return parent::_beforeToHtml(); }