【问题标题】:Magento 1.4x tables for productsMagento 1.4x 产品表
【发布时间】:2014-11-12 02:27:25
【问题描述】:

我正在使用 magento 1.4.0.1,我正在尝试导出一个非常大的数据库,这需要很长时间。无论如何,我可以按以下格式获取magento数据库表中的所有产品吗?

+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+
| MainCategory | SubCategory | Brand|ProductName | FullDescription | ProdID | Weight | RetailPrice | OfferPrice |
+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+

*ProdID 是产品 ID。

请多多指教?

【问题讨论】:

    标签: mysql magento-1.4 entity-attribute-value


    【解决方案1】:

    不太确定 1.4 中的功能是否与 Magento 现在在 1.9.x 版本上的功能相同,但是在以后的版本中,您在 System > Import/Export > Export 下有一个导出部分 在接下来的窗口中,您可以从下拉列表中选择产品,然后选择要导出的属性。 我以这种方式导出和重新导入数据的结果好坏参半,我总是选择数据库备份/恢复来执行这样的任务。

    【讨论】:

      【解决方案2】:

      谢谢,但我似乎找到了合适的桌子。这是我的 SQL:-

      select psku.sku,pname.value as name,pdesc.value as description,price.value as price,
      dprice.value as wholesale_price,w.value as weight,
      m.value as image_name 
      from catalog_product_entity_varchar pname
      left join catalog_product_entity psku on pname.entity_id = psku.entity_id
      right join catalog_product_entity_text pdesc on psku.entity_id = pdesc.entity_id
      right join catalog_product_entity_decimal price on pdesc.entity_id = price.entity_id
      right join catalog_product_entity_decimal dprice on dprice.entity_id = price.entity_id
      right join catalog_product_entity_varchar w on w.entity_id = dprice.entity_id
      right join catalog_product_entity_media_gallery m on m.entity_id = dprice.entity_id
      where 
      pname.attribute_id = 96 and
      psku.entity_type_id = 10 and
      pdesc.attribute_id = 97 and
      price.attribute_id = 99 and
      dprice.attribute_id = 567 and
      w.attribute_id = 964
      ;
      

      【讨论】:

        猜你喜欢
        • 2015-05-27
        • 2014-01-07
        • 1970-01-01
        • 1970-01-01
        • 2011-04-15
        • 2011-07-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多