首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Magento 1.4x产品表

Magento 1.4x产品表
EN

Stack Overflow用户
提问于 2014-11-12 10:27:25
回答 2查看 66关注 0票数 0

我正在使用magento 1.4.0.1,我正在尝试导出一个非常大的数据库,这需要很多时间。有没有什么办法可以让我得到magento数据库表中的所有产品,格式如下?

代码语言:javascript
复制
+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+
| MainCategory | SubCategory | Brand|ProductName | FullDescription | ProdID | Weight | RetailPrice | OfferPrice |
+--------------+-------------+-------------------+-----------------+--------+--------+-------------+------------+

*ProdID是产品ID。

敬请指教?

EN

回答 2

Stack Overflow用户

发布于 2014-11-12 10:34:20

不太确定1.4中的功能是否与Magento现在的1.9.x版本中的功能相同,但在更高版本中,在系统>导入/导出>导出下有一个导出部分,您可以从下拉菜单中选择产品,然后选择要导出的属性。我有过以这种方式导出和重新导入数据的混合结果,并且总是选择数据库备份/恢复来执行这样的任务。

票数 0
EN

Stack Overflow用户

发布于 2014-11-12 12:31:46

谢谢。不过我好像找到了合适的桌子。这是我的SQL:

代码语言:javascript
复制
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
;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26878225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档