I need to export products generated by Commerce module. What can I do to accomplish this?
2 Answers
I would use views module with a plugin that fits your export format expectations such as views datasource or views_data_export for CSV, XML, etc
-
Hi i tried views_data_export but i dint find the solution . Is there any other module or drupal way of exporting content of products in drupal commerce site.. Commented Aug 6, 2012 at 11:10
I've used the solution suggested by pcambra.
I used the views_data_export module and it worked perfectly.
I read the documentation to find out how to use it.
Create a new view page and change the selection in the "Show" select box from "Content" to "Commerce Product". A whole set of different options become available.
Click "Continue & Edit".
Add the fields you want to have exported and a path (since it is a page view after all).
Add a display to your view and select "Data Export".
Give it a path and attach it to your first page view.
Then go to your page view url and you should see a CSV logo at the bottom of the screen that allows you to download a csv of what is displayed in the view.