当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Catalog_Block_Product_Abstract::_toHtml方法代码示例

本文整理汇总了PHP中Mage_Catalog_Block_Product_Abstract::_toHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Catalog_Block_Product_Abstract::_toHtml方法的具体用法?PHP Mage_Catalog_Block_Product_Abstract::_toHtml怎么用?PHP Mage_Catalog_Block_Product_Abstract::_toHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Catalog_Block_Product_Abstract的用法示例。


在下文中一共展示了Mage_Catalog_Block_Product_Abstract::_toHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _toHtml

 protected function _toHtml()
 {
     if (!(bool) Mage::getStoreConfig('newproducts/general/active')) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:sivaanil,项目名称:paytech,代码行数:7,代码来源:Newproductslist.php

示例2: _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;
 }
开发者ID:FranchuCorraliza,项目名称:magento,代码行数:25,代码来源:Product.php

示例3: _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()
 {
     if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !Mage::helper('nosto_tagging/account')->existsAndIsConnected()) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:nosto,项目名称:nosto-magento-nodeps,代码行数:16,代码来源:Product.php

示例4: _toHtml

 protected function _toHtml()
 {
     if (!$this->helper('featuredproducts')->getIsActive()) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:enjoy2000,项目名称:gemz,代码行数:7,代码来源:Block.php

示例5: _toHtml

 protected function _toHtml()
 {
     if (sizeof($this->getWishlistItems()->getItems()) > 0) {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:8,代码来源:Sidebar.php

示例6: _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()
 {
     $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();
 }
开发者ID:ngagestudios,项目名称:nosto-magento-extension,代码行数:17,代码来源:Product.php

示例7:

 /**
  * 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();
 }
开发者ID:booklein,项目名称:bookle,代码行数:14,代码来源:Item.php

示例8: _toHtml

 protected function _toHtml()
 {
     if (!$this->_config['isenabled']) {
         return;
     }
     /*$template_file = "sm/slider/default.phtml";
     		$this->setTemplate($template_file);*/
     return parent::_toHtml();
 }
开发者ID:Aerotexextintores,项目名称:novosite,代码行数:9,代码来源:List.php

示例9: _tohtml

 protected function _tohtml()
 {
     if (!Mage::getStoreConfig(self::DISPLAY_CONTROLS)) {
         return parent::_toHtml();
     }
     $this->setLinksforProduct();
     $this->setTemplate("productattachments/cms_attachments.phtml");
     return parent::_toHtml();
 }
开发者ID:guohuadeng,项目名称:aototechweb,代码行数:9,代码来源:Cmspagesattachments.php

示例10: _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();
 }
开发者ID:nosto,项目名称:nosto-magento-extension,代码行数:18,代码来源:Product.php

示例11: _toHtml

 protected function _toHtml()
 {
     if (!$this->getConfig('isenabled')) {
         return;
     }
     $template_file = 'vt/searchboxpro/default.phtml';
     $this->setTemplate($template_file);
     return parent::_toHtml();
 }
开发者ID:chaudhary4k4,项目名称:supershopmagento,代码行数:9,代码来源:Vt_Searchboxpro_Block_List.php

示例12: _toHtml

 protected function _toHtml()
 {
     if (!$this->_config['isenabled']) {
         return;
     }
     $template = 'default';
     $template_file = "sm/twitterslider/" . $template . ".phtml";
     $this->setTemplate($template_file);
     return parent::_toHtml();
 }
开发者ID:Aerotexextintores,项目名称:novosite,代码行数:10,代码来源:List.php

示例13: _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();
 }
开发者ID:ashfaqphplhr,项目名称:artificiallawnsforturf,代码行数:10,代码来源:ProductFaqs.php

示例14: _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();
 }
开发者ID:SizeMeCom,项目名称:sizeme-magento-extension,代码行数:19,代码来源:Content.php

示例15:

 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 '';
 }
开发者ID:kiutisuperking,项目名称:eatsmartboxdev,代码行数:10,代码来源:Products.php


注:本文中的Mage_Catalog_Block_Product_Abstract::_toHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。