I'm trying to get product export working, I have created an Export Template in Settings which is then available to select when exporting products. However the resulting csv file is blank.
I think I might need a Template View for my Export Template, but I don't know what that is and I can't find anything in the documentation that indicates what that Template View should look like.
Here are my settings for the Export Template:
What should I put in the Template View (and is this where I am going wrong)?
Sorry, you are right, we haven't written any docs for this yet, this month has been a bit of a rush.
Vendr does ship with a default CSV export example (we just can't set it up on existing stores that upgrade). If you want to use the default implementation you can set the view path to ~/Views/Vendr/Exporting/OrderCsvExport.cshtml. If you want to tweak the output, then you can duplicate that file and modify it how you need and then also update the export settings.
Matt
PS the correct mimetype for csv is actually text/csv
Exporting Products - blank csv file
I'm trying to get product export working, I have created an Export Template in Settings which is then available to select when exporting products. However the resulting csv file is blank.
I think I might need a Template View for my Export Template, but I don't know what that is and I can't find anything in the documentation that indicates what that Template View should look like.
Here are my settings for the Export Template:
What should I put in the Template View (and is this where I am going wrong)?
Thanks!
Hey Jack,
Sorry, you are right, we haven't written any docs for this yet, this month has been a bit of a rush.
Vendr does ship with a default CSV export example (we just can't set it up on existing stores that upgrade). If you want to use the default implementation you can set the view path to
~/Views/Vendr/Exporting/OrderCsvExport.cshtml
. If you want to tweak the output, then you can duplicate that file and modify it how you need and then also update the export settings.Matt
PS the correct mimetype for csv is actually
text/csv
Hey Matt,
That's perfect, really appreciate the speedy reply thanks for that.
No worries. Apologies for not having any docs in place. Will have to get on top of that 👍🏻
is working on a reply...