Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jack 10 posts 91 karma points notactivated
    May 24, 2021 @ 10:18
    Jack
    0

    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:

    Screenshot of Vendr Export Template settings

    What should I put in the Template View (and is this where I am going wrong)?

    Thanks!

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    May 24, 2021 @ 10:32
    Matt Brailsford
    100

    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

  • Jack 10 posts 91 karma points notactivated
    May 24, 2021 @ 10:53
    Jack
    0

    Hey Matt,

    That's perfect, really appreciate the speedy reply thanks for that.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    May 24, 2021 @ 10:58
    Matt Brailsford
    0

    No worries. Apologies for not having any docs in place. Will have to get on top of that 👍🏻

Please Sign in or register to post replies

Write your reply to:

Draft