Magento get simple product from configurable :-
To begin with configurable products are collection of simple products only. It is necessary to have simple products to make a configurable products. You can get all child products of a configurable products using the configurable product’s id with below syntax and getting the desired result from there.
/* First We Have To Load product by product_id */$product = Mage::getModel('catalog/product')->load($product_id); /* Then Get All child products id */$childIds = Mage::getModel('catalog/product_type_configurable') ->getChildrenIds($product->getId()); /* Get children products all associated children products data */$childProducts = Mage::getModel('catalog/product_type_configurable') ->getUsedProducts(null,$product);
You can Write the product id of the configurable product and then get all child items data for further product details. In result you will find product details SKU, image, id, name, price and short descriptions.
When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…
In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…
In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…
In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…
When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…