0
這是什麼輸出的$selectionCollection
給出的,如果沒有選擇產品在這段代碼找到了Magento的捆綁產品列表如何檢查編程是否Magento的getSelectionsCollection沒有任何產品
$bundled_product_custom = new Mage_Catalog_Model_Product();
$bundled_product_custom->load($bundleParentProductId);
$selectionCollection = $bundled_product_custom->getTypeInstance(true)->getSelectionsCollection(
$bundled_product_custom->getTypeInstance(true)->getOptionsIds($bundled_product_custom), $bundled_product_custom
);
其實我需要檢查,如果此捆綁產品是否具有選擇產品。
感謝。有用。 –