您的位置:首页 > 其它

magento How to get all associated children product of a configurable product

2013-08-26 15:14 393 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: