Skip to content

Instantly share code, notes, and snippets.

@3Easy
Last active August 29, 2015 14:04
Show Gist options
  • Save 3Easy/4e2ca319bbdfd99d4400 to your computer and use it in GitHub Desktop.
Save 3Easy/4e2ca319bbdfd99d4400 to your computer and use it in GitHub Desktop.
Store Orders CSV Export
{exp:http_header content_type="text/csv" content_disposition="attachment" filename="squiddies-orders-{current_time format="%Y%m%d-%H%i"}.csv"}Order ID, Email, Shipping Name, Shipping Address 1, Shipping Address 2, Shipping City, Shipping State, Shipping Postcode, Shipping Country, Order Items
{exp:store:orders order_status="new"}
{order_id}, {order_email}, {shipping_name}, {shipping_address1}, {shipping_address2}, {shipping_city}, {shipping_state_name}, {shipping_postcode}, {shipping_country_name}, {items}{sku} x {item_qty} {/items}{/exp:store:orders}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment