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