Title: Alerts via MQQT for WooCommerce
Author: yknivag
Published: <strong>24 ژوئن 2020</strong>
Last modified: 26 ژوئن 2020

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/wc-mqtt-alerts.svg)

# Alerts via MQQT for WooCommerce

 توسط [yknivag](https://profiles.wordpress.org/yknivag/)

[دانلود](https://downloads.wordpress.org/plugin/wc-mqtt-alerts.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/wc-mqtt-alerts/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/wc-mqtt-alerts/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/wc-mqtt-alerts/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/wc-mqtt-alerts/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/wc-mqtt-alerts/)

## توضیحات

MQTT Alerts for WooCommerce

Plugin to WooCommerce which sends messages to a shiftr.io MQTT instance on order
state changes and for low stock/out of stock nofifications.

The following topics are published to MQTT:
 * {topic_prefix}/orders/pending * {
topic_prefix}/orders/on-hold * {topic_prefix}/orders/processing * {topic_prefix}/
orders/completed * {topic_prefix}/orders/cancelled * {topic_prefix}/orders/refunded*{
topic_prefix}/orders/failed * {topic_prefix}/stock/low * {topic_prefix}/stock/out*{
topic_prefix}/stats/orders * {topic_prefix}/stats/stock [COMING SOON]

A message is published to a topic when an order or product transitions to that state.
The payload of the message is either the order id or the product_id.

The data transmitted is kept to the bear minimum to limit the data exposure over
MQTT. Further information may be retrieved by the end point using the standard WooCommerce
API by querying the order or product by id.

The stats topics are published to each time any other message is sent. They contain
a JSON payload which for orders is an array of order states with the corresponding
totals. Further stats topics are in the to-do list.

MQTT may be used to feed many different devices and services. For example the feed
could be consumed by NodeRed, Home Assistant or, of course, an Arduino. Sample Arduino
sketches may be found at https://github.com/yknivag/WooNofity-Arduino – more sketches
will be added in due course.

## نصب

 1. Upload plugin `wc-mqtt-alerts` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin using the ‘Plugins’ menu in your WordPress admin panel.
 3. You can adjust the necessary settings using your WordPress admin panel in “MQTTWoo”.
 4. Create a page or a post, customize button settings and insert generated shortcode
    into the text.

## سوالات متداول

### Why use MQTT instead of the API

Calls to the API put a load on the server and to make a “real-time” update the API
would have to be called at least every 5 minuntes and that would put a substantial
load on the server.
 The idea behind this plugin is to use MQTT to push an event
notification so that the API need only be called when a change is detected.

### Why shiftr.io

It’s free and it works well. In essence the plugin posts to a URL using basic authentication
and so could be used with any other MQTT broker with an HTTP interface that follows
the same pattern. Or your own server.

### What is the topic prefix

By default the topic prefix is empty, but it may be set to allow the topics to fit
in with an existing MQTT infrastructure.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Alerts via MQQT for WooCommerce” نرم افزار متن باز است. افراد زیر در این افزونه
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ yknivag ](https://profiles.wordpress.org/yknivag/)

“Alerts via MQQT for WooCommerce” به 1 زبان ترجمه شده است. با تشکر از [مترجمین](https://translate.wordpress.org/projects/wp-plugins/wc-mqtt-alerts/contributors)
برای همکاری و کمک‌هایشان.

[ترجمه “Alerts via MQQT for WooCommerce” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/wc-mqtt-alerts)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/wc-mqtt-alerts/)، [مخزن SVN](https://plugins.svn.wordpress.org/wc-mqtt-alerts/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/wc-mqtt-alerts/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/wc-mqtt-alerts/) مشترک شوید.

## گزارش تغییرات

#### 0.1.0 – 20th June 2020

 * Initial Release.

#### 0.2.0 – 21st June 2020

 * Corrected typo in readme.
 * Added stats/orders topic.

#### 0.2.1 – 23rd June 2020

 * Changes required following WordPress plugin library submission.

### 0.2.2 – 26th June 2020

 * Bug Fix – Order Number was not being sent with order alerts.
 * Updated GitHub Link.
 * Added link to Proof Of Concept Ardnuino sketches.

#### To Do

 * Add stats/stocks topic to report counts of out-of-stock and low-stock items.

## اطلاعات

 *  نگارش **0.2.2**
 *  آخرین به‌روزرسانی **6 سال پیش**
 *  نصب‌های فعال **کمتر از 10**
 *  نگارش وردپرس ** 5.2 یا بالاتر **
 *  آزمایش‌شده تا **5.4.23**
 *  نگارش PHP ** 7.0 یا بالاتر **
 *  زبان‌ها
 * [English (UK)](https://en-gb.wordpress.org/plugins/wc-mqtt-alerts/) و [English (US)](https://wordpress.org/plugins/wc-mqtt-alerts/).
 *  [به زبان خودتان ترجمه کنید](https://translate.wordpress.org/projects/wp-plugins/wc-mqtt-alerts)
 * برچسب
 * [MQTT](https://fa.wordpress.org/plugins/tags/mqtt/)[notifier](https://fa.wordpress.org/plugins/tags/notifier/)
   [notify](https://fa.wordpress.org/plugins/tags/notify/)[woocommerce](https://fa.wordpress.org/plugins/tags/woocommerce/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/wc-mqtt-alerts/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[بررسی شما](https://wordpress.org/support/plugin/wc-mqtt-alerts/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/wc-mqtt-alerts/reviews/)

## مشارکت کنندگان

 *   [ yknivag ](https://profiles.wordpress.org/yknivag/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/wc-mqtt-alerts/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.paypal.me/yknivag)