本文整理汇总了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();
}
示例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;
}
示例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();
}
示例4: _toHtml
protected function _toHtml()
{
if (!$this->helper('featuredproducts')->getIsActive()) {
return '';
}
return parent::_toHtml();
}
示例5: _toHtml
protected function _toHtml()
{
if (sizeof($this->getWishlistItems()->getItems()) > 0) {
return parent::_toHtml();
} else {
return '';
}
}
示例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();
}
示例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();
}
示例8: _toHtml
protected function _toHtml()
{
if (!$this->_config['isenabled']) {
return;
}
/*$template_file = "sm/slider/default.phtml";
$this->setTemplate($template_file);*/
return parent::_toHtml();
}
示例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();
}
示例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();
}
示例11: _toHtml
protected function _toHtml()
{
if (!$this->getConfig('isenabled')) {
return;
}
$template_file = 'vt/searchboxpro/default.phtml';
$this->setTemplate($template_file);
return parent::_toHtml();
}
示例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();
}
示例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();
}
示例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();
}
示例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 '';
}