Magento 1.9.1.0类别菜单中没有缩略图

Magento 1.9.1.0类别菜单中没有缩略图,magento,magento-1.9.1,Magento,Magento 1.9.1,有没有办法在导航菜单中添加缩略图?Magento 1.9.1.0删除Magento管理面板中的此功能。你对此有什么建议吗 谢谢,我通过在phpMyAdmin中运行以下查询来解决此问题 (一) (二) (三) 这里我使用属性_id作为140,在这些查询中使用一个id作为唯一值 要在前端显示此图像,我们可以使用 <?php $thumbnail = $_category->getThumbnail(); ?> <?php if($thumbnail): ?>

有没有办法在导航菜单中添加缩略图?Magento 1.9.1.0删除Magento管理面板中的此功能。你对此有什么建议吗


谢谢,

我通过在phpMyAdmin中运行以下查询来解决此问题

(一)

(二)

(三)

这里我使用属性_id作为140,在这些查询中使用一个id作为唯一值

要在前端显示此图像,我们可以使用

  <?php $thumbnail = $_category->getThumbnail(); ?> 
  <?php if($thumbnail): ?>

   <img src ="<?php echo Mage::getBaseUrl('media').'catalog' . DS . 'category' . DS.$thumbnail; ?>" alt="<?php echo $this->escapeHtml($_category->getName()) ?>"  class="img-responsive"  />    

  <?php endif; ?>   

“alt=”“class=“img响应”/>

只需使用样本数据进行安装,然后截断产品、类别、订单和属性表。通过删除这些数据,缩略图字段保持可见。这是一种方法,如果您使用另一种方法,请告知我们。我也有同样的错误Hi Shijin,您认为使用样本数据进行安装是什么意思?我需要用pro填充我的网站吗管道?然后类别中的缩略图图像将显示?让我知道。谢谢,我发布了一个我将尝试的答案,请检查。但请仔细了解属性\u iden即使在运行SQL之后,我们似乎无法再使用
getThumbnail()调用类别缩略图
?所有这些查询只需创建属性,将其添加到数据库中,然后确保所有属性都已链接。您如何在前端显示类别缩略图?@zigojacko我用前端代码更新了答案,请检查。我只是magento的初学者,不知道其他方法。:)您运行的是哪个版本的magentoning,你确定它是1.9.X吗?
getThumbnail()
没有为我加载任何东西(该函数在类别模型中甚至不存在,我必须手动创建它)…@zigojacko我使用的是Magento 1.9.1.0版,你使用的是哪个版本?
 INSERT INTO `catalog_eav_attribute` (`attribute_id`, `frontend_input_renderer`, 
`is_global`, `is_visible`, `is_searchable`, `is_filterable`, `is_comparable`, 
`is_visible_on_front`, `is_html_allowed_on_front`, `is_used_for_price_rules`, 
`is_filterable_in_search`, `used_in_product_listing`, `used_for_sort_by`, 
`is_configurable`, `apply_to`, `is_visible_in_advanced_search`, `position`, 
`is_wysiwyg_enabled`, `is_used_for_promo_rules`) VALUES 
 (140, NULL, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, NULL, 0, 0, 0, 0);
INSERT INTO `eav_entity_attribute` (`entity_attribute_id`, `entity_type_id`,  
`attribute_set_id`, `attribute_group_id`, `attribute_id`, `sort_order`) 
VALUES (337, 3, 3, 4, 140, 3);
  <?php $thumbnail = $_category->getThumbnail(); ?> 
  <?php if($thumbnail): ?>

   <img src ="<?php echo Mage::getBaseUrl('media').'catalog' . DS . 'category' . DS.$thumbnail; ?>" alt="<?php echo $this->escapeHtml($_category->getName()) ?>"  class="img-responsive"  />    

  <?php endif; ?>