Order Confirmation CSV Template


This template is rendered to create a CSV spreadsheet for a single order which is attached to the confirmation email. It is only attached when the order is being emailed to either the manufacturer or the company, but not when the order is being sent directly to the customer.

If your office has an ERP or accounting system which is able to import CSV files, this can be a great and simple way of reducing the amount of data-entry work they have to do.

Template parameters

order (reference to SalesOrder)

A reference to the sales order that you're trying to render.

lines (collection of SalesOrderLine)

The set of line items that should be included in this spreadsheet. Note that this might be a subset of the actual lines on this order, e.g. if you're emailing just a manufacturer-specific portion of this order. For that reason, you should always use this top-level lines variable instead of accessing the order.lines collection (which always includes all lines on the order).

Recent Discussions

09 Jan, 2013 10:25 PM
09 Jan, 2013 05:22 PM
09 Jan, 2013 05:18 PM
08 Jan, 2013 12:56 AM
07 Jan, 2013 09:57 PM