2011-03-07 79 views
0

怎麼知道在Magento使用哪些產品類型?特別是,我應該何時使用簡單且可配置的產品?Magento的產品類型

回答

4

wiki page描述了不同的產品類型。

+0

感謝您有用的鏈接 – Max 2011-03-22 06:58:45

8

獲得產品集合按類型:

$collectionSimple = Mage::getResourceModel('catalog/product_collection') 
                ->addAttributeToFilter('type_id', array('eq' => 'simple')); 
$collectionConfigurable = Mage::getResourceModel('catalog/product_collection') 
                ->addAttributeToFilter('type_id', array('eq' => 'configurable')); 
$collectionBundle = Mage::getResourceModel('catalog/product_collection') 
                ->addAttributeToFilter('type_id', array('eq' => 'bundle')); 
$collectionGrouped = Mage::getResourceModel('catalog/product_collection') 
                ->addAttributeToFilter('type_id', array('eq' => 'grouped')); 
$collectionVirtual = Mage::getResourceModel('catalog/product_collection') 
                ->addAttributeToFilter('type_id', array('eq' => 'virtual')); 
1

如果你有選擇添加產品到購物車之前,選擇,然後使用配置產品。例如,鞋子。在鞋,你必須選擇大小的選項。

如果您在將產品添加到購物車之前沒有任何選項,請使用簡單產品

+0

非常感謝你 – Max 2011-03-10 05:47:19