![Woocommerce Line Notify](src/image/wc-line-notify-banner.png)
# Woocommerce Line Notify
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.

[Download](https://git.iotech.co.th/iamapinan/woocommerce-line-notify/-/archive/master/woocommerce-line-notify-master.zip) zip file here.

## Available short code for implement message pattern.
`
[order_status]
[order_id]
[order_time]
[order_total]
[order_payment]
[order_address]
[order_customer]
[order_phone]
[order_company]
[order_note]
[order_province]
[order_url]
[products] //List of product in order.
`

## Features
- Add line token.
- Message pattern with order short code supported.
- Send notify to line group or user.
- Send notify when have order activity.
- Add logo or image banner to notification.
- Only support Thai language for this version .

## What's benefit of line notify can do.
1. Send a notification to your self.
2. Send a notifycation to your group.
3. Can send text, image and line sticker to the notification message.

## How to install
1. Upload the entire wc_linenotify folder to the /wp-content/plugins/ directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.


## 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.
### 3rd party service
We send a transaction to this domain https://notify-bot.line.me  
Privacy Policy rules of Line Messaging https://terms.line.me/line_rules?lang=en

## v1.0.7
- Change setting design.
- Add debug function.
- Update code and folder struction.
- Change plugin slug to match with Plugin directory.
- Fixed many warning.
- Remove banner from setting page.
- Add icon to setting page.
- Make all text translatable.
- Full support Thai and English language.

## v1.0.6 Changes log
- [เพิ่ม Shortcode `[product]` เพื่อแสดงรายการสินค้าใน alert](https://github.com/iamapinan/Woocommerce-Line-Notify/issues/9)
- ยกเลิกแนบรูป
- กดที่ short code เพื่อเพิ่มลงใน textarea
- แก้ไขการแสดงผล
- ปรับปรุงความเสถียร

## v1.0.5 Changes log
- Remove image require for image field.
- Fixed order status display from status code to status label.
- Add [order_province] to display provice name in Thai only.
- Add [order_phone] to display billing phone number.
- Add [order_company] to display billing company.
- Add [order_note] to display customer notes.
- Add [order_url] to display order details for authorized user.

## v1.0.4 Changes log
- Add image to notification.
- Choose order status to send notification.
- Show timezone setting in your system.
- Fixed timezone [issue](https://github.com/iamapinan/wc_linenotify/issues/1).
- Improved performance by query database when need only.
- Smooth design settings ui.
- Support scss style editing.

## v1.0.3 Changes log
- Fixed time display in alert message.
- Fixed order total in alert message.
- Remove state name.
- Add [order_customer] short code.

## Screenshot
![Setting](assets/setting-screen.png)  
Setting page

![Alert message](assets/noti-demo.png)  
Notification page

## Roadmap
- Message pattern for selected status.
- Multiple token id support for message broadcast.
- Message broadcast to line group.
- Add line sticker.
- Attach event url.

## Contibute guidelines
Thank you for your suggestion and support to the project. I very happy to help and give the thing I can do to the world. If you can help me to develop this plugin or join as a team members please follow below. I'll add your name to contributor members if you've joined.
1. Fork this repo on development branch and sync to your local.
2. run `php composer install`
3. Make change to the project.
4. Push & commit update to your branch.
5. Create pull request with update details to developer.
6. Waiting for approved.

### Welcome to the opensource world.

## Wiki
[WIKI](https://github.com/iamapinan/wc_linenotify/wiki)

## Issue
[Issue](https://github.com/iamapinan/wc_linenotify/issues)

## Any support I can do.
* Email: [apinan@iotech.co.th](mailto:apinan@iotech.co.th)
* LineID: iamapinan
* Facebook: [facebook.com/9apinan](https://www.facebook.com/9apinan)

## License
[GNU General Public License v3.0](https://github.com/iamapinan/wc_linenotify/blob/master/LICENSE)
