ecshop如何將訂單批量導出
ecshop 2.73 + 訂單導出為excel功能
========================================================
一、功能介紹
1、本插件能導出ecshop訂單到excel文件中,導出時可以按訂單編號,收貨人,訂單狀態進行搜索
2、本插件僅修改原程序中的:admin/templates/order_list.htm文件 (您也可以自行修改此文件)
二、文件說明
1、導出Excel處理程序:plugins/order_to_excel/index.php
2、后臺訂單列表模板:admin/templates/order_list.htm
三、安裝方法
1、備份:admin/templates/order_list.htm 文件
2、將下面下載的插件文件傳至網站更目錄即可
四、自行安裝
1、打開admin/templates/order_list.htm 文件
2、找到:<a href="order.php?act=list&composite_status={$cs_await_ship}">{$lang.cs.$cs_await_ship}</a>
在后面加一行:<a href="javascript:;" onclick="order_to_excel()">導出excel</a>
3、在該頁面尾部,</script>之前添加JS處理函數:
function order_to_excel() { var order_sn = document.getElementById('order_sn').value; var consignee = document.getElementById('consignee').value; var status = document.getElementById('status').value; window.location.href='../plugins/order_to_excel/index.php?order_sn='+order_sn+'&consignee='+consignee+'&status='+status; }