protected function _toHtml() { if (!(bool) Mage::getStoreConfig('newproducts/general/active')) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { $html = "\n<!-- MSEMANTIC 1.2.6.5 begin -->"; $html .= "\n"; $id = Mage::registry('current_product')->getId(); $product = Mage::getModel('catalog/product')->load($id); if ($product->getTypeId() == "grouped") { $html .= "<!-- Magento grouped products are not supported by MSemantic at the moment.-->"; } else { @(include_once "../../EssentiaLib/includeAll.php"); $this->initData(); if ($this->settings['basicsettings']['active']) { $html .= parent::_toHtml(); $this->rdff->useRdfNamespaces("rdf,rdfs,xsd,dc,owl,vcard,gr,product,v,foaf,media"); $html .= $this->rdff->startRdfa($this->Business->getLegalName()); $this->GR->setBusiness($this->Business)->setProduct($this->Product); $html .= $this->GR->pOffering(); $html .= $this->rdff->endRdfa(); //@webdirx_div::debug(htmlentities($html)); } } $html .= "\n"; $html .= "<!-- MSEMANTIC end. http://www.msemantic.com -->\n"; return $html; }
/** * Render product info as hidden meta data if the module is enabled for the * current store. * If it is a "bundle" product with fixed price type, then do not render. * These are not supported due to their child products not having prices * available. * * @return string */ protected function _toHtml() { if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !Mage::helper('nosto_tagging/account')->existsAndIsConnected()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (!$this->helper('featuredproducts')->getIsActive()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (sizeof($this->getWishlistItems()->getItems()) > 0) { return parent::_toHtml(); } else { return ''; } }
/** * Render product info as hidden meta data if the module is enabled for the * current store. * If it is a "bundle" product with fixed price type, then do not render. * These are not supported due to their child products not having prices * available. * * @return string */ protected function _toHtml() { $product = $this->getProduct(); if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !Mage::helper('nosto_tagging/account')->existsAndIsConnected() || $product->getTypeId() === Mage_Catalog_Model_Product_Type::TYPE_BUNDLE && (int) $product->getPriceType() === Mage_Bundle_Model_Product_Price::PRICE_TYPE_FIXED) { return ''; } return parent::_toHtml(); }
/** * Rendering block content * * @return string */ function _toHtml() { $this->assign("show_image", $this->getConfig("show_image")); $this->assign("thumbHeight", $this->getConfig("thumbHeight")); $this->assign("thumbWidth", $this->getConfig("thumbWidth")); $this->assign("show_price", $this->getConfig("show_price")); $this->setTemplate("ves/autosearch/result_item.phtml"); return parent::_toHtml(); }
protected function _toHtml() { if (!$this->_config['isenabled']) { return; } /*$template_file = "sm/slider/default.phtml"; $this->setTemplate($template_file);*/ return parent::_toHtml(); }
protected function _tohtml() { if (!Mage::getStoreConfig(self::DISPLAY_CONTROLS)) { return parent::_toHtml(); } $this->setLinksforProduct(); $this->setTemplate("productattachments/cms_attachments.phtml"); return parent::_toHtml(); }
/** * Render product info as hidden meta data if the module is enabled for the * current store. * If it is a "bundle" product with fixed price type, then do not render. * These are not supported due to their child products not having prices * available. * * @return string */ protected function _toHtml() { /** @var Nosto_Tagging_Helper_Account $helper */ $helper = Mage::helper('nosto_tagging/account'); if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !$helper->existsAndIsConnected()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (!$this->getConfig('isenabled')) { return; } $template_file = 'vt/searchboxpro/default.phtml'; $this->setTemplate($template_file); return parent::_toHtml(); }
protected function _toHtml() { if (!$this->_config['isenabled']) { return; } $template = 'default'; $template_file = "sm/twitterslider/" . $template . ".phtml"; $this->setTemplate($template_file); return parent::_toHtml(); }
protected function _tohtml() { if ($this->getFromXml() == 'yes' && !Mage::helper('prodfaqs')->isProductFaqsEnable() || Mage::getStoreConfig('prodfaqs/product_page/show_faqs_on') == 'new_page') { return parent::_toHtml(); } $this->setFormAction(Mage::getUrl('prodfaqs/index/add')); $this->setLinksforProduct(); $this->setTemplate("prodfaqs/productfaqs.phtml"); return parent::_toHtml(); }
/** * Render the view file if module is active, i.e. if enabled, service * status is something else than "off" and the product is a "Configurable" * product. The product type restriction is added due to SizeMe affects * only products that can have a "size" option that is chosen by the * customer. * * @return string */ protected function _toHtml() { /** @var SizeMe_Measurements_Helper_Data $helper */ $helper = $this->helper('sizeme_measurements'); $product = $this->getProduct(); if (!$helper->isActive() || !$product->isConfigurable() || $helper->hasSwatchAttributes($product)) { return ''; } return parent::_toHtml(); }
function _toHtml() { $themeConfig_helper = Mage::helper('thememanager/themeConfig'); $theme_namespace = $themeConfig_helper->getThemeNamespace(); $installed_thems = $themeConfig_helper->getInstalledThems(); if ($theme_namespace == $this->getMeigeeTheme() || count($installed_thems) == 1) { return parent::_toHtml(); } return ''; }
protected function _toHtml() { if (!$this->_config['isenabled']) { return; } if (!($template = $this->getTemplate())) { $this->setTemplate($this->defaultTemplate); } return parent::_toHtml(); }
protected function _toHtml() { if ($this->getData('choose_template') == 'custom_template') { if ($this->getData('custom_theme')) { $this->setTemplate($this->getData('custom_theme')); } else { $this->setTemplate('em_bestseller_products/bestseller_custom.phtml'); } } else { $this->setTemplate($this->getData('choose_template')); } return parent::_toHtml(); }
function _toHtml() { if (!$this->_show || !$this->getConfig('show')) { return; } $this->listAssign(); $my_template = $this->getTemplate(); if (empty($my_template)) { $template = 'ves/deals/block/carousel.phtml'; $this->setTemplate($template); } return parent::_toHtml(); }
protected function _toHtml() { $this->initData(); if ($this->settings['basicsettings']['active']) { $html = parent::_toHtml(); // $html .= "<h1>RDFa Data Dump of all Products</h1>"; $this->rdff->useRdfNamespaces("rdf,rdfs,xsd,dc,owl,vcard,gr,product,foaf,media"); $html .= $this->rdff->startRdfa($this->Business->getLegalName()); $this->GR->setBusiness($this->Business); $html .= $this->GR->businessEntityWithProducts($this->ProductCollection); $html .= $this->rdff->endRdfa(); //@webdirx_div::debug(htmlentities($html)); return $html; } }
/** * To html * Assign variables */ protected function _toHtml() { $this->assign('WidgetProductProductCollection', $this->_getProductCollection()); $_columnCount = $this->getData('column_count'); if (!$_columnCount || $_columnCount == 0 || empty($_columnCount)) { $_columnCount = 3; } $size_width = 100 / $_columnCount; $this->assign('item_width', $size_width); $this->assign('_columnCount', (int) $_columnCount); /* assign variables in the parameters */ foreach ($this->getData() as $_para => $value) { $this->assign($_para, $value); } return parent::_toHtml(); }
public function _toHtml() { if (!$this->_config['show']) { return; } $this->_config['title'] = $this->gettitle(); $listall = $this->getListProducts(); $this->assign('listall', $listall); $this->assign('config', $this->_config); if (!$this->getTemplate()) { $this->setTemplate('joomlart/jmproducts/filter.phtml'); } if ($listall && $listall->count() > 0) { Mage::getModel('review/review')->appendSummary($listall); } return parent::_toHtml(); }
function _toHtml() { if (!$this->_config['show']) { return; } $listall = $this->getListProducts(); $this->assign('listall', $listall); $this->assign('config', $this->_config); if (!isset($this->_config['template']) || $this->_config['template'] == '') { $this->_config['template'] = 'joomlart/jmproductsdeal/list.phtml'; } $this->setTemplate($this->_config['template']); if ($listall && $listall->count() > 0) { Mage::getModel('review/review')->appendSummary($listall); } return parent::_toHtml(); }
function _toHtml() { if (!$this->_config['show']) { return; } if ($this->gettitle()) { $this->_config['title'] = $this->gettitle(); } if ($this->getbackground()) { $this->_config['background'] = $this->getbackground(); } if ($this->getdescription()) { $this->_config['description'] = $this->getdescription(); } $this->assign('config', $this->_config); if (!isset($this->_config['template']) || $this->_config['template'] == '') { $this->_config['template'] = 'joomlart/jmmasshead/core.phtml'; } $this->setTemplate($this->_config['template']); return parent::_toHtml(); }
protected function _toHtml() { if (!$this->getConfig('isenabled')) { return; } $is_ajax = Mage::app()->getRequest()->getParam('is_ajax'); if ($is_ajax) { $cat_id = Mage::app()->getRequest()->getParam('tab_cat_id'); $order_id = Mage::app()->getRequest()->getParam('order_id'); $type = Mage::app()->getRequest()->getParam('data_type'); if ($type == 'order') { $child_items = $this->getProductsOrder($order_id); } else { $child_items = $this->getProducts($cat_id); } $template_file = 'sm/tablisting/default_items.phtml'; } else { $template_file = 'sm/tablisting/default.phtml'; } $this->setTemplate($template_file); return parent::_toHtml(); }
/** * Prevent displaying if the price is not available * * @return string */ protected function _toHtml() { if (!$this->getProduct() || $this->getProduct()->getCanShowPrice() === false) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (!$this->_getConfig('active', 1)) { return; } $template_file = "sm/categories/default.phtml"; $this->setTemplate($template_file); return parent::_toHtml(); }
public function _toHtml() { if (!$this->_config['show']) { return; } //set template if not set if (!$this->getTemplate()) { $tmpl = 'joomlart/jmproducts/list.phtml'; if ($this->_config['ajaxloadmore']) { if ($this->_config['page'] == 1) { //for first entry $tmpl = 'joomlart/jmproducts/list_ajax.phtml'; } } else { if ($this->_config['accordionslider']) { $tmpl = 'joomlart/jmproducts/list_accordion.phtml'; } } $this->setTemplate($tmpl); } //echo $this->getTemplate();die(); //append product review summary if ($this->getCollection()) { Mage::getModel('review/review')->appendSummary($this->getCollection()); } //assign data to template $this->assign('listall', $this->getCollection()); $this->assign('listall2', $this->getCollection()); // This only for old theme (jm_gamestore theme...) $this->assign('config', $this->_config); return parent::_toHtml(); }
public function _toHtml() { $config = $this->_config; $this->assign('config', $config); return parent::_toHtml(); }
protected function _toHtml() { if (!$this->_getConfig('active', 1)) { return; } if ($this->_isAjax()) { $template_file = 'sm/listingtabs/default_items.php'; $this->setTemplate($template_file); } //else { //$template_file = "sm/listingtabs/default.phtml"; //} //$this->setTemplate($template_file); return parent::_toHtml(); }
protected function _toHtml() { if (!$this->_getConfig('active', 1)) { return; } if ($this->_isAjax()) { $template_file = 'sm/listingdeals/default_items.php'; $this->setTemplate($template_file); } return parent::_toHtml(); }