magento去掉多網店的URL中___store 和___from_store

修改app/code/core/Mage/Core/Model/Store.php下的getCurrentUrl函數,把
return $storeParsedUrl['scheme'] . '://' . $storeParsedUrl['host']  
            . (isset($storeParsedUrl['port']) ? ':' . $storeParsedUrl['port'] : '')  
            . $storeParsedUrl['path'] . $requestString  
            . ($storeParsedQuery ? '?'.http_build_query($storeParsedQuery, '', '&') : ''); 

改成

return $storeParsedUrl['scheme'] . '://' . $storeParsedUrl['host']  
            . (isset($storeParsedUrl['port']) ? ':' . $storeParsedUrl['port'] : '')  
            . $storeParsedUrl['path'] . $requestString;  
            //. ($storeParsedQuery ? '?'.http_build_query($storeParsedQuery, '', '&') : ''); 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章