[WordPress] 外掛分享: Woocommerce Line Notify

WordPress 外掛 Woocommerce Line Notify 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Woocommerce Line Notify」是 2019-02-27 上架。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2020-04-20,距離現在已有 1838 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

iamapinan |

外掛標籤

notification | woo line notify | line notification | woocommerce line notify |

內容簡介

這個 WordPress 外掛可以將 WooCommerce 訂單通知發送至 Line notify API,您可以自訂訊息樣式及通知至您的 Line 聊天室或聊天群組。

Line notify 可以幫您達到以下目的:

新增 Line token。
支援使用訂單簡碼的訊息樣式。
通知群組或使用者。
在有訂單活動時發送通知。
支援多語言。
提供 API,供開發者以基本認證安全傳送訊息。
提供靜態方法,供開發者使用。
支援除錯模式。
提供動態欄位,以符合您的需求。
提供儀表板小工具。
可以在未使用 Woocommerce 時使用。

可用的簡碼
[order_status]
[order_id]
[order_time]
[order_total]
[order_payment]
[order_address]
[order_customer]
[order_phone]
[order_company]
[order_note]
[order_province]
[order_url]
[order_postcode]
[products] // 訂單中產品的清單。

動態欄位
[shipping *]
[billing *]
[customer *]
[order *]
[meta *]

客戶欄位
first_name [custoemr first_name]
last_name [custoemr last_name]
email [custoemr email]
phone [custoemr phone]

運送欄位
company [shipping company]
address_1 [shipping address_1]
address_2 [shipping address_2]
city [shipping city]
state [shipping state]
postcode [shipping postcode]
country [shipping country]
address_index [shipping address_index]

帳單欄位
company [billing company]
address_1 [billing address_1]
address_2 [billing address_2]
city [billing city]
state [billing state]
postcode [billing postcode]
country [billing country]
email [billing email]
phone [billing phone]
address_index [billing address_index]

訂單欄位
order_key [order order_key]
customer_user [order customer_user]
payment_method [order payment_method]
payment_method_title [order payment_method_title]
transaction_id [order transaction_id]
customer_ip_address [order customer_ip_address]
customer_user_agent [order customer_user_agent]
created_via [order created_via]
date_completed [order date_completed]
completed_date [order completed_date]
date_paid [order date_paid]
paid_date [order paid_date]
cart_hash [order cart_hash]
order_currency [order order_currency]
cart_discount [order cart_discount]
cart_discount_tax [order cart_discount_tax]
order_shipping [order order_shipping]
ordertax [order ordertax]
order_tax [order order_tax]
order_total [order order_total]
order_version [order order_version]
prices_include_tax [order prices_include_tax]
download_permissions_granted [order download_permissions_granted]
recorded_sales [order recorded_sales]
recorded_coupon_usage_counts [order recorded_coupon_usage_counts]
order_stock_reduced [order order_stock_reduced]
edit_lock [order edit_lock]
edit_last [order edit_last]

Meta

只需使用 [meta 您的自訂meta 名稱] 來使用 get_post_meta() 函數抓取自訂訂單meta。

開發者用 API

使用靜態方法發送消息,只需將所要發送的訊息放入以下方法中。
WooLineNotify::Send_Line_Notify( ‘要發送的部分訊息’ );

REST API

原文外掛簡介

Send woocommerce order notification to Line notify API. You can customize message pattern and notify to your chat room or your chat group in your pattern.
What’s benefit of line notify can do.

Add line token.
Message pattern with order short code supported.
Send notify to line group or user.
Send notify when have order activity.
Multi language support.
API to send message with basic authen security for developer.
Static method to send message for developer.
Debug mode option.
Dynamic fields to unlock your need.
Dashboard widget.
Can use without Woocommerce.

Available shortcode
[order_status]
[order_id]
[order_time]
[order_total]
[order_payment]
[order_address]
[order_customer]
[order_phone]
[order_company]
[order_note]
[order_province]
[order_url]
[order_postcode]
[products] //List of product in order.

Dynamic shortcode
[shipping *]
[billing *]
[customer *]
[order *]
[meta *]

Customer Fields
first_name [custoemr first_name]
last_name [custoemr last_name]
email [custoemr email]
phone [custoemr phone]

Shipping fields
company [shipping company]
address_1 [shipping address_1]
address_2 [shipping address_2]
city [shipping city]
state [shipping state]
postcode [shipping postcode]
country [shipping country]
address_index [shipping address_index]

Billing fields
company [billing company]
address_1 [billing address_1]
address_2 [billing address_2]
city [billing city]
state [billing state]
postcode [billing postcode]
country [billing country]
email [billing email]
phone [billing phone]
address_index [billing address_index]

Order fields
order_key [order order_key]
customer_user [order customer_user]
payment_method [order payment_method]
payment_method_title [order payment_method_title]
transaction_id [order transaction_id]
customer_ip_address [order customer_ip_address]
customer_user_agent [order customer_user_agent]
created_via [order created_via]
date_completed [order date_completed]
completed_date [order completed_date]
date_paid [order date_paid]
paid_date [order paid_date]
cart_hash [order cart_hash]
order_currency [order order_currency]
cart_discount [order cart_discount]
cart_discount_tax [order cart_discount_tax]
order_shipping [order order_shipping]
ordertax [order ordertax]
order_tax [order order_tax]
order_total [order order_total]
order_version [order order_version]
prices_include_tax [order prices_include_tax]
download_permissions_granted [order download_permissions_granted]
recorded_sales [order recorded_sales]
recorded_coupon_usage_counts [order recorded_coupon_usage_counts]
order_stock_reduced [order order_stock_reduced]
edit_lock [order edit_lock]
edit_last [order edit_last]

Meta
Just use [meta your_meta_name] to take custom order meta by get_post_meta() function.
API for Developer
To send message via static method just put your message to the method like below.
WooLineNotify::Send_Line_Notify( ‘Some message to send’ );
REST API
URL: domain/wp-json/woo-line-notify/v1/notify
METHOD: POST
PARAMETERS: message Your message to send
Authentication: Basic Authen
USERNAME/PASSWORD: API Key:API_Key
For example.
Send post request to http://localhost/wp-json/woo-line-notify/v1/notify you must be send parameter message by form/data and add Authenticate to header with value Basic base64_encode( some_api_key_from_api_option:some_api_key_from_api_option )
Features

Add line token.
Message pattern with order short code supported.
Send notify to line group or user.
Send notify when have order activity.
Multi language support.
API to send message with basic authen security for developer.
Static method to send message for developer.
Debug mode option.
Dynamic fields to unlock your need.
Dashboard widget.
Can use without Woocommerce.

Term of Privacy
To understand what we do with your data and compile with The EU General Data Protection Regulation (GDPR)This plugin is call to external service Line Messaging API it use to be send an order data such as
Order Id, Order customer name, Order Total, Order Product, Order timestamp, Order payment method
depend on your settings to your Line Messager account or Line group related with your Token ID.
Line Notify Term
Privacy policy rules of Line Messaging please read Term of privacy

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Woocommerce Line Notify」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon