1

I am using this code which is return all configurable options array excluding "Out of Stock" product option.

$data = $_product->getTypeInstance()->getConfigurableOptions($_product); 

So, It works fine when all simple products are In the stock of a configurable product but if any simple products are "Out of stock" then this product configurable option not returning this function.

How can I get all configurable options array of a configurable product?

Please advice.

1 Answer 1

0

Please try below may be it will help

$this->getProduct()->getTypeInstance()->getUsedProducts($_product, null);

Your Answer

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

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