Hello everyone, we have another new tutorial for you to fix a possible problem in your store.
Have you ever come across the problem of when exporting your report in XML or CSV the file comes with an extension like this:
invoiced.csv-, attachment
invoiced.xml-, attachment
Well, this is quite common for you to use some versions of Magento and also some versions of some browsers. The solution is quite simple.
Open file: app/code/core/Mage/Core/Controller/Varien/Action.php
Locate:
->setHeader('Content-Disposition', 'attachment; filename="'.$fileName.'"', true)
Replace with:
->setHeader('Content-Disposition', 'attachment; filename="'.$fileName.'";', true)
Done, refresh cache and test again. See you on another tutorial here on MageBR.