税クラス ID で商品リストを取得したい。どうすればいいですか?
$collection = Mage::getModel('catalog/product');
$result = array();
foreach ($collection as $product) {
$result[] = array(
'product_id' => $product->getId(),
'sku' => $product->getSku(),
'name' => $product->getName(),
'set' => $product->getAttributeSetId(),
'type' => $product->getTypeId(),
'category_ids' => $product->getCategoryIds()
);
}
これは私のコードです。結果を得るためにどのように変更しますか