【问题标题】:Magento: Information about product pictures (small, thumb and so on), where in the DB?Magento:关于产品图片(小、拇指等)的信息,在数据库中的什么位置?
【发布时间】:2012-03-12 16:13:01
【问题描述】:

我试图在 Magento DB 中找到保存有关拇指和小版本图片等信息的位置。我检查了 catalog_product_entity_media_gallery、catalog_product_entity、catalog_product_entity_varchar 和 catalog_product_entity_media_gallery_value,它不在这些表中。有任何想法吗?我有一个 Magento 1.4 DB。

谢谢!

【问题讨论】:

    标签: database magento magento-1.4


    【解决方案1】:

    Magento 将 thumb、small_image 和 large image 名称保存在 catalog_product_entity_varchar 表中。

    由于 Magento 使用 eav 架构,缩略图、small_image 和 large image 存储在 catalog_product_entity_varchar 中,参考 id 来自 eav_attribute 表。

    catalog_product_entity_varchar 表中,entity_id 表示产品ID,attribute_id 表示属性表中的参考ID。

    通常属性 id 为 74 - image、75- small_image 和 76- thumbnail。可以在eav_attribute表中查看对应的id。

    例如,如果 entity_id 为 1 的产品,

    如果我们检查catalog_product_entity_varchar 表的值,则属性 id 的值 74 代表它的图像,75 代表它的小图像,76 代表它的缩略图..

    希望对你有帮助..

    【讨论】:

      【解决方案2】:

      这些值属于catalog_product 属性,因此将存储在catalog_product_entity_varchar 中。

      【讨论】:

        【解决方案3】:

        这只是 products_temp 表,您可以在其中检查所有产品图像路径

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-08-01
          相关资源
          最近更新 更多