コード例 #1
0
 public function _construct()
 {
     $this->addRenderer('select', 'bundle/catalog_product_view_type_bundle_option_select');
     $this->addRenderer('multi', 'bundle/catalog_product_view_type_bundle_option_multi');
     $this->addRenderer('radio', 'bundle/catalog_product_view_type_bundle_option_radio');
     $this->addRenderer('checkbox', 'bundle/catalog_product_view_type_bundle_option_checkbox');
     return parent::_construct();
 }
コード例 #2
0
ファイル: Bundle.php プロジェクト: booklein/bookle
 protected function _construct()
 {
     parent::_construct();
     if (isset($attributes['template']) && $attributes['template']) {
         $this->setTemplate($attributes['template']);
     } elseif ($this->hasData("template")) {
         $this->setTemplate($this->getData('template'));
     } else {
         $template = 'venustheme/tempcp/cartedit/checkout/cart/item/edit/bundle.phtml';
         $this->setTemplate($template);
     }
     $this->addRenderer('select', 'bundle/catalog_product_view_type_bundle_option_select');
     $this->addRenderer('multi', 'bundle/catalog_product_view_type_bundle_option_multi');
     $this->addRenderer('radio', 'bundle/catalog_product_view_type_bundle_option_radio');
     $this->addRenderer('checkbox', 'bundle/catalog_product_view_type_bundle_option_checkbox');
 }