So I am trying to get a reference to the current product in my Block with
$product = Mage::registry("current_product");
Which seems to work fine, but the $product->getShortDescription
is returning null.
I tried debugging this myself by stepping through the product helper initProduct
method and upon inspecting the Product Model, the data is as expected. i.e:
_data["short_description"] = "SOME SHORT DESCRIPTION"
After registering the product
# app/code/core/Mage/Catalog/Helper/Product.php
344| // Register current data and dispatch final events
345| Mage::register('current_product', $product);
346| Mage::register('product', $product);
the short description seem to be lost.
_data["short_description"] = null
Has anyone else had this issue? It would be cool to know how to solve it.
NOTE: It could have something to do with the Model rewriting that happens with the registry...
Thanks guys.