1

I tried to get value of attributes of configurable products.

enter image description here

my question is: how to get the price and selected value of associated product?

Thanks.

5

Try below code

$_product = $this->getProduct();// Or you can load your product here
$_attributes = $_product->getTypeInstance(true)->getConfigurableAttributesAsArray($_product);
print_r($_attributes);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.