我正在使用magento 1.4.0.1,我正在尝试导出一个非常大的数据库,这需要很多时间。有没有什么办法可以让我得到magento数据库表中的所有产品,格式如下?
+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+
| MainCategory | SubCategory | Brand|ProductName | FullDescription | ProdID | Weight | RetailPrice | OfferPrice |
+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+*ProdID是产品ID。
敬请指教?
发布于 2014-11-12 10:34:20
不太确定1.4中的功能是否与Magento现在的1.9.x版本中的功能相同,但在更高版本中,在系统>导入/导出>导出下有一个导出部分,您可以从下拉菜单中选择产品,然后选择要导出的属性。我有过以这种方式导出和重新导入数据的混合结果,并且总是选择数据库备份/恢复来执行这样的任务。
发布于 2014-11-12 12:31:46
谢谢。不过我好像找到了合适的桌子。这是我的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
;https://stackoverflow.com/questions/26878225
复制相似问题