Here is a sample url from my company's Magento site (and we're obviously using stores in the URL hence the smi000.. code)
http://shop.mystore.com/smi130495/catalog/product/view/id/35830/s/men-s-traditional-ring/category/312834/
I understand that the category id is 312834, and the product id is 35830. I understand how to use Mage::helper->getURL()
to get the URL, but how do I get the product ID using magento code (i.e. the "Magento Way"?)