如果你看看这个线程; http://www.magentocommerce.com/boards/viewthread/10807/Magento获取产品重写URL
它增加了一个产品重写的URL到集合使用;
$ collection-> addUrlRewrite($ categoryId);
,我没有得到的产品就这样,我用这种方法获得一个单独的产品:
$产品 - >负载($的productId);
经过相当多的搜索后,我似乎无法找到使用这种方法获得产品重写url的方式,谁能告诉我怎么去做这件事吗?
感谢
可能重复](http://stackoverflow.com/questions/4466608/magento-consistent-product-urls) – clockworkgeek
这很难理解你在找什么。 '$ product-> getProductUrl()' - 它是否以您需要的格式返回产品网址? – Zyava
产品网址对某一点而言是正确的,很不幸,该产品显示在多个类别中。该网址由mydomain.com/category/sub-category/theproduct.html组成。所以我需要获得产品的各种链接。 – user505988