Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、サイズと色の属性を持つ構成可能な製品の場合、上記の属性の属性コードを取得する必要があります。
もっと具体的に言うと、構成可能製品を構成するために属性が使用されているかどうかを知る必要があります。商品一覧ページで確認したい
このコードを使用してみてください
$config_product = Mage::getModel('catalog/product')->load($config_product_id); $productAttributeOptions = $config_product->getTypeInstance(true)->getConfigurableAttributesAsArray($config_product);