Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
getProductUrl はカテゴリ パスを含む製品の URL を返しますか。どうすればそのように動作させることができますか。他の人はヘルパーの使用を提案しているようですが、それが唯一の方法ではないと思います。
提案された回答は、私の Magento バージョン (1.9) では機能しませんでした。
これが私のために働いたものです:
$category = Mage::getModel('catalog/category')->load($categorieId); Mage::unregister('current_category'); Mage::register('current_category', $category); $product->getProductUrl();