Developer forum

Forum » Ecommerce - Standard features » Download order as CSV/Excel

Download order as CSV/Excel

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

Is there any way to download an order from Customer center as CSV or Excel?

Thanks,
Adrian


Replies

 
Nicolai Pedersen
Reply

Nope.

You can make a page with a "nolayout" template and create a customer center template that renders data in CSV format.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Got it. In this case, is it possible to suggest a name for the file that is gonna be downloaded?

Like Order1234.csv? I know that by default the file will be generated with the name of the page which in this case will be the same for all orders.

Thanks,

Adrian

 
Nicolai Pedersen
Reply

Nope, that is not possible, not standard anyways.

You might be able to add these lines in your razor templat though:

HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=ORDER1234.csv");

 

You must be logged in to post in the forum