2011-08-19 5 views
1

사용되는 속성 옵션을 기반으로 구성 가능한 하위 제품을로드 할 수있는 magento 기능이 있습니까? 나는 t 셔츠의 색상과 크기에 대한 옵션 값이 예를 들어속성 옵션을 기반으로 Magento 구성 가능 제품로드

는, 10, 45 (옵션 아이디의)를 말하고 나는 빨리 구성 제품 $product를 들어 아이 간단한 제품

+0

간단한 구성 확장 여기 : http://www.magentocommerce.com/magento-connect/Matt+Dean/extension/596/simple-configurable-products –

답변

6

의 ID를 얻으려면 $attributeInfo$attributeId => $attributeValue 정의 배열 인

$product->getTypeInstance(true)->getProductByAttributes($attributesInfo, $product); 

이 기능을 사용한다.

관련 문제