I want the functions getPriceHTML and getAddToCartUrl on my homepage. The homepage is a block of type catalog/navigation. The reason I did this, is because I havbe to scan the entire catalog to find specific products.
I got these lines of code:
$_product = new Mage_Catalog_Model_Product();
How can I transform this in some way that I can use these two functions: getPriceHTML and getAddToCartUrl
I know the functions are part of the class “Mage_Catalog_Block_Product_Abstract” ( http://docs.magentocommerce.com/Mage_Catalog/Mage_Catalog_Block_Product_Abstract.html )
I’ve tried everything, including stuff like: $this->getLayout()->createBlock(’Mage_Catalog_Block_Product_list’)
But I couldn’t get it to work.
I guess I should be able to get the price and AddToCartUrl when I got the product ID don’t I… seems logical enough