2

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.

1 Answer 1

6

Try below code

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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