get associated productIds(获取configurable product关联的simple product id):
$childIds = Mage::getModel('catalog/product_type_configurable')->getChildrenIds($_product->getId());
get associated products(获取configurable product 关联的simple product):
$childProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null,$_product);
本文详细介绍了如何使用Magento模型获取配置产品的关联简单产品ID和具体产品,包括了核心代码片段getassociatedproductIds和getassociatedproducts的实现原理与应用。
3052

被折叠的 条评论
为什么被折叠?



