So I am working with some Magento code that was done by another developer (or the pre-installed Magento code, i'm not sure which) and my method for getting the price variable differs from theirs.
We are both trying to access the price of a product. My method is...
$_configurable_model = Mage::getModel('catalog/product_type_configurable');
$_child_products = $_configurable_model->getUsedProducts(null, $_product);
echo round($_child_product[0]->getPrice(), 2);
The alternative is:
echo $_coreHelper->currency($_price,true,true);
Now obviously their method is shorter, but I do not know how to use the coreHelper-> currency call in order to look at the children product prices so I implemented it my way.
So I am essentially wondering what are the advantages/disadvantages of both of our methods, if any?
Many thanks in advance!