Tell me more ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

I have created custom gallery extension but I need to implement an import and export or gallery data in the CSV Format.

I did too much research but couldn't find any useful link to find solution so please let me know if anybody had idea for this.

share|improve this question
more details are helpful. Do you use the catalog_product_gallery functionality or your own database? Do you just want the data? – Fabian Blechschmidt Mar 14 at 15:27
Alex's solution below is the answer - please mark as accepted. – philwinkle May 16 at 4:29

1 Answer

For a CSV exports you can generate a grid with your data and use the getCsv() function. Sounds overhead, but that's exactly what the export of the Tablerates shipping cost table in the backend does.

See: Mage_Adminhtml_System_ConfigController::exportTableratesAction and Mage_Adminhtml_Block_Shipping_Carrier_Tablerate_Grid.

For the import you could also have a look at this module (Mage_Shipping_Model_Resource_Carrier_Tablerate::uploadAndImport) or on the import module for product data (Mage_ImportExport), but this is much more complicated.

share|improve this answer
Can you please mark this answer as your solution, or do you have unaswered problems? – Fabian Blechschmidt Mar 25 at 9:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.