Magentoサイトの製品をXML形式でエクスポートするSQLクエリを作成する必要があります。
属性値と商品画像がどこに保存されているのかわかりません。
今では私の質問はこれです:
SELECT cpe.entity_id, cpe.sku, csi.qty, eav_color.value, eav_talla.value
FROM catalog_product_entity AS cpe
JOIN cataloginventory_stock_item AS csi ON csi.product_id = cpe.entity_id
JOIN catalog_product_entity_int AS eav_color ON eav_color.entity_id = cpe.entity_id
AND eav_color.attribute_id =85
JOIN catalog_product_entity_int AS eav_talla ON eav_talla.entity_id = cpe.entity_id
AND eav_talla.attribute_id =127
WHERE csi.qty >0
AND csi.is_in_stock
AND cpe.type_id = 'simple'
LIMIT 0 , 30
しかし、私は属性IDを取得しています(私は思います)。私のクエリはこれを返します:
entity_id sku qty value value
6000 0121011000-RED-L 2.0000 66 5
列属性の値として66、「talla」属性の値として5を取得しています。ただし、これらの値は「RED」と「L」である必要があります。これらの値がどのテーブルに保存されているのかわかりません。
一方、商品の画像を取得する必要がありますが、テーブルがどこに保存されているかわかりません。