
內容簡介
此外掛可建立附帶發票內容的 Excel 檔案,並將發票檔案與訂單成功後的郵件一同寄出,亦可下載發票檔案、將多個發票檔案壓縮為一個 zip 檔案,或將所有發票匯出至 Excel 檔案內。
功能特色
將訂單匯出成 Excel 檔案,成功下單後附加至郵件內一同寄出
從訂單列表中選擇一筆訂單,建立該訂單的發票 Excel 檔案
同時建立多張發票 Excel 檔案,並壓縮為一個 zip 檔案
將訂單列表匯出至 Excel 檔案
可進行檔案命名設定
Pro 版本功能特色
可將商標放入發票 Excel 檔案內
設計出標準美麗的發票 Excel 檔案
可調整 Excel 檔案之背景顏色、邊框顏色、文字顏色,以及框格類型
提供多種可供選擇之範本
在主題 (functions.php 或任何範本中:header.php、footer.php等) 中呼叫功能
建立一個發票 Excel 檔案,使用訂單 ID
$order_id = 50;
$save_dir = ”; // 檔案備存路徑,若未指定,儲存於預設路徑中
$excel_file_path = wpshare247_aeiwooc_create_invoice_file_by_order_id( $order_id, $save_dir );
匯出所有訂單成為 Excel 檔案清單
$order_ids = array(50, 80, 90);
$save_dir = ”; // 檔案備存路徑,若未指定,儲存於預設路徑中
$excel_file_path = wpshare247_aeiwooc_export_excel_file($order_ids, $save_dir)
同時建立多個發票 Excel 檔案,並壓縮為一個 zip 檔案
$arr_order_id = array(50, 80, 90);
$zip_file_path = wpshare247_aeiwooc_create_zip_file_from_order_ids($arr_order_id);
備註:$save_dir 的預設路徑為 wp-content\uploads\wpshare247_aeiwooc_woocommerce_invoices
詳細檢視: plugins\attach-excel-invoice-wooc-wpshare247\inc\theme_functions.php
外掛標籤
開發者團隊
② 後台搜尋「Attach Excel Invoice WOOC – WPSHARE247」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Cho phép tạo file excel có nội dung hóa đơn gửi đính kèm khi gửi email đặt hàng, tải file hóa đơn, zip nhiều file hóa đơn, xuất tất cả các hóa đơn.
Tính năng nổi bật
Xuất đơn hàng thành file excel, sau đó đính kèm vào email sau khi đặt hàng thành công
Tạo file excel hóa đơn từ 1 đơn hàng bất kì trong danh sách đơn hàng
Tạo file excel hóa đơn cùng lúc nhiều hóa đơn, nén thành file zip
Xuất thông tin danh sách đơn hàng thành file excel
Có cấu hình đặt tên file
Tính năng nổi bật bản Pro (Pro Version)
Có đính kèm thêm logo vào hóa đơn excel
Nội dung file excel được thiết kế chuẩn đẹp
Có thể chỉnh màu nền, màu viền, màu chữ, kiểu viền kẽ trong file excel
Có nhiều template để chọn lựa
Gọi hàm trong theme ( functions.php hoặc bất cứ template nào: header.php, footer.php…)
Tạo 1 file excel từ đơn hàng id
$order_id = 50;
$save_dir = ”; // đường dẫn chứa file, nếu rỗng thì file sẽ được lưu vào đường dẫn mặc định
$excel_file_path = wpshare247_aeiwooc_create_invoice_file_by_order_id( $order_id, $save_dir );
Xuất tất cả đơn hàng thành danh sách trong file excel
$order_ids = array(50, 80, 90);
$save_dir = ”; // đường dẫn chứa file, nếu rỗng thì file sẽ được lưu vào đường dẫn mặc định
$excel_file_path = wpshare247_aeiwooc_export_excel_file($order_ids, $save_dir)
Tạo nhiều file excel cùng lúc từ các đơn hàng sau đó nén thành file zip
$arr_order_id = array(50, 80, 90);
$zip_file_path = wpshare247_aeiwooc_create_zip_file_from_order_ids($arr_order_id);
Ghi chú:
$save_dir mặc định là: wp-content\uploads\wpshare247_aeiwooc_woocommerce_invoices
Xem thêm tại: plugins\attach-excel-invoice-wooc-wpshare247\inc\theme_functions.php
