protected function _toHtml() { if (!$this->getData('enable')) { return; } $layout = $this->getLayout(); $this->setTemplate($this->getDefaultTemplate()); $templateItemRenderer = $this->getTemplateItemRenderer(); $this->addItemRender('default', 'checkout/cart_item_renderer', $templateItemRenderer)->addItemRender('simple', 'checkout/cart_item_renderer', $templateItemRenderer)->addItemRender('grouped', 'checkout/cart_item_renderer_grouped', $templateItemRenderer)->addItemRender('configurable', 'checkout/cart_item_renderer_configurable', $templateItemRenderer)->addItemRender('bundle', 'bundle/checkout_cart_item_renderer', $templateItemRenderer); if (version_compare(Mage::getVersion(), '1.4.0.1', '>=')) { $paypal = $layout->createBlock('paypal/express_shortcut', 'paypal_cart_sidebar.shortcut')->setTemplate('paypal/express/shortcut.phtml'); $paypaluk = $layout->createBlock('paypaluk/express_shortcut', 'paypaluk_cart_sidebar.shortcut')->setTemplate('paypal/express/shortcut.phtml'); $extra_actions = $layout->createBlock('core/text_list', 'extra_actions')->append($paypal)->append($paypaluk); $this->append($extra_actions); } return parent::_toHtml(); }
protected function _toHtml() { $html = parent::_toHtml(); $html = Mage::helper('aitcg')->removeSocialWidgetsFromHtml($html); return $html; }
protected function _toHtml() { if (!$this->getData('enable')) { return; } $layout = $this->getLayout(); $this->setTemplate($this->getDefaultTemplate()); $templateItemRenderer = $this->getTemplateItemRenderer(); $this->addItemRender('default', 'checkout/cart_item_renderer', $templateItemRenderer)->addItemRender('simple', 'checkout/cart_item_renderer', $templateItemRenderer)->addItemRender('grouped', 'checkout/cart_item_renderer_grouped', $templateItemRenderer)->addItemRender('configurable', 'checkout/cart_item_renderer_configurable', $templateItemRenderer)->addItemRender('bundle', 'bundle/checkout_cart_item_renderer', $templateItemRenderer); // $itemrenderer = array( "default" =>NULL, "simple"=>NULL, "grouped"=>NULL, "configurable"=>NULL, "bundle"=>NULL); // foreach($itemrenderer as $productType => $value ){ // $itemrenderer[$productType] = $this->getItemRendererInfo($productType); // $itemrenderer[$productType]["template"] = "sm/cartpro/checkout/cart/mini-cartpro/default.phtml"; // $this->addItemRender($productType, $itemrenderer[$productType]["block"], $itemrenderer[$productType]["template"] ); // } if (version_compare(Mage::getVersion(), '1.4.0.1', '>=')) { $paypal = $layout->createBlock('paypal/express_shortcut', 'paypal_cart_sidebar.shortcut')->setTemplate('paypal/express/shortcut.phtml'); $paypaluk = $layout->createBlock('paypaluk/express_shortcut', 'paypaluk_cart_sidebar.shortcut')->setTemplate('paypal/express/shortcut.phtml'); $extra_actions = $layout->createBlock('core/text_list', 'extra_actions')->append($paypal)->append($paypaluk); $this->append($extra_actions); } //Mage::getSingleton('checkout/session')->setCartpro($this->getData()); return parent::_toHtml(); }