How do I access the price in one of the simple products? The following is the beginning of the array I want to access from my var_dump($_product->debug()); (stackoverflow wouldn't let me post the whole thing). I am working on the issue related to this post: https://stackoverflow.com/questions/16703427/magento-retrieve-simple-product-price-for-configurable-product

  array(9) {
    ["0 (Mage_Catalog_Model_Product)"]=>
    array(33) {
      string(2) "69"
      string(1) "4"
      string(2) "10"
      string(6) "simple"
      string(13) "1001-blu-ven1"
      string(1) "0"
      string(1) "0"
      string(19) "2013-04-02 22:12:27"
      string(19) "2013-04-02 23:54:41"
      string(2) "78"
      string(1) "6"
      string(1) "5"
      string(14) "test_1 blue v1"
      string(14) "test-1-blue-v1"
      string(1) "2"
      string(1) "4"
      string(12) "no_selection"
      string(12) "no_selection"
      string(12) "no_selection"
      string(10) "container2"
      string(19) "test-1-blue-v1.html"
      string(6) "0.0000"
      string(6) "1.0000"
      string(1) "1"
      string(1) "1"
      string(1) "1"
      string(1) "0"
      string(1) "0"
      string(19) "test_1 blue v1 desc"
      string(19) "test_1 blue v1 desc"
  • 1
    So $_product->getPrice() and $_product->getFinalPrice() are not doing what you need?
    – benmarks
    Commented May 23, 2013 at 15:02
  • Nope, thats config product price. I need simple product. Commented May 23, 2013 at 15:06

1 Answer 1


In your getData output above, it's there, with a $1.00 price:

      string(6) "1.0000"

To access, use $_product->getPrice()


While I don't quite follow, hopefully this helps - to get all simples of a configurable parent product, use the following:

$childProducts = Mage::getModel('catalog/product_type_configurable')
foreach($childProducts as $child) {

In your case it looks as though $_product may contain this simple collection, in which case it may be poorly named. If that is that case, I suggest iterating with a foreach:

foreach($_product as $_child){
  • No that gets the configurable product price. I need the associated simple product price. :) Commented May 23, 2013 at 15:06
  • Are you sure? Your getData shows ["type_id"]=> string(6) "simple"
    – philwinkle
    Commented May 23, 2013 at 15:09
  • I only posted a fraction of the data that was dumped. Stackexchange won't let me post the whole thing LOL. Commented May 23, 2013 at 15:10
  • That top part "["_cache_instance_products"]=>" is where it starts to dump the simple products that are associated with the config Commented May 23, 2013 at 15:10
  • See my edit - I don't know if we're on the right track. If this doesn't help, perhaps you can paste your debug into a pastie.
    – philwinkle
    Commented May 23, 2013 at 15:15

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.