Custom Option File download from Sales/Orders page in admin, not working in magento -


the link custom option file sales/order page in admin is: index.php/admin/sales/download/downloadcustomoption/id//key/

the link same file website (not admin), accessing account : index.php/default/sales/download/downloadcustomoption/id//key/

the same file has above 2 links when accessing admin or website. link working index.php/default/sales/download/downloadcustomoption/id//key/

i.e. 1 has default in link , not admin in link.

does know how working? changes needed? using magento 1.7.

thanks, neet

the way fixed use base url of default store generate url. rewrite following function in app/code/core/mage/catalog/model/product/option/type/file.php below:

/**  * return url option file download  *  * @return string  */ protected function _getoptiondownloadurl($route, $params) {     $websites = mage::app()->getwebsites();     $code = $websites[1]->getdefaultstore()->getcode();     $params['_store'] = $code;      return mage::geturl($route, $params); } 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -