I have a stock product with some custom options. I would like to fetch the custom options for this product in the view.phtml of my rwd-based theme.
Now I thought this would be possible through
$myoptions = $_product->getOptions(); print_r($myoptions);
But instead of giving me back the options, the page loads for a long time and then outputs lots of unrelated stuff. At least it looks like this.
Is this the right way to fetch the custom options of a product? Is there another (better) way to do it?