function getItemUrl($product) { $rewrite = new Elite_Vafsitemap_Model_Url_Rewrite(); $rewrite->setData('product_id', $product->getId()); $rewrite->setData('url_path', $product->getData('url_path')); return $rewrite->getRequestPathForDefinition($product->currentlySelectedFit()); }