Title: Dotix
Author: WPDO
Published: <strong>22.08.2019</strong>
Last modified: 27.05.2022

---

ჩადგმების ძებნა

ეს პლაგინი **არ დატესტილა WordPress-ის 3 ძირითად ვერსიაზე**. როგორც ჩანს, ის უკვე
აღარ არის მხარდაჭერილი და შესაძლოა არ იყოს თავსებადი WordPress-ის მიმდინარე ვერსიასთან.

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

# Dotix

 ავტორი: [WPDO](https://profiles.wordpress.org/wpdo5ea/)

[ჩამოტვირთვა](https://downloads.wordpress.org/plugin/dotix.1.5.zip)

 * [დეტალები](https://ka.wordpress.org/plugins/dotix/#description)
 * [მიმოხილვა](https://ka.wordpress.org/plugins/dotix/#reviews)
 * [დეველოპმენტი](https://ka.wordpress.org/plugins/dotix/#developers)

 [მხარდაჭერა](https://wordpress.org/support/plugin/dotix/)

## აღწერა

This plugin will enable the connection between your app and WooCommerce orders for
digital credits usage. It can be used to check the remaining credits in one order,
or consume them.

### Usage

Redirect to your app link on order paid page, carring on the order key.

Let’s assume the order_key=`wc_order_xQhmRjJ7`, your app URL is `https://app.EXAMPLE.
com/refill`, your WordPress URL is `https://EXAMPLE.com/`

 1. On the order Thank You page, show a button `<a href="https://app.EXAMPLE.com/refill?
    order_key=wc_order_xQhmRjJ7">Go back to app.EXAMPLE</a>`.
 2. In `https://app.EXAMPLE.com/refill`, call `https://EXAMPLE.com/wp-json/dotix/v1/
    order/wc_order_xQhmRjJ7` with `$_POST[ 'num' ] = 'max'`, assume the consumed credits
    is 42 in returned JSON.
 3. Add 42 credits into the corresponding user account.

### REST APIs

1) Show balance:
 Method: GET URL: `https://EXAMPLE.com/wp-json/dotix/v1/order/wc_order_xQhmRjJ7`
Return: `{"_res":"ok", "order_id":45, "status":"completed", "balance":"142"}` //
NOTE: only the order with status=`completed` can be consumed credits.

2) Consume 100 credits:
 Method: `POST` URL: `https://EXAMPLE.com/wp-json/dotix/
v1/order/wc_order_xQhmRjJ7` Data: `[ 'num' => 100 ]` Return: `{"_res":"ok", "order_id":
45, "consumed":"100", "balance":"42"}`

3) Consume all credits:
 Method: POST URL: https://EXAMPLE.com/wp-json/dotix/v1/
order/wc_order_xQhmRjJ7 Data: `[ 'num' => 'max' ]` Return: `{"_res":"ok", "order_id":
45, "consumed":"42", "balance":"0"}`

For all errors, will return {“_res”:”err”, “_msg”:”error_msg_tag or content”}

### Order Status

If an order contains only items that have valid credit in product detail, once the
order is paid, the status will change to `completed` automatically instead of `processing`.

The reason to do this is because some unpaid getways (Bank Wire, Cheque, Cash on
delivery) will have status `processing` once the order is placed while not paid.
Thus we can’t use `processing` to detect if the order is paid or not.

To make the credits in the orders with the unpaid gateways available, please update
the order status to `completed`.

### Error Message Tag In REST API

Error code: `wrong_hash`
 Description: The order key doesn’t match any order.

Error code: `wrong_status`
 Description: The order isn’t in processing/completed
status, maybe not paid yet?

Error code: `lack_of_param`
 Description: Need to specify the ammount to consume.
Either numeric or a fixed string `max`.

Error code: `lack_of_bal`
 Description: Not enough balance left in this order.

## მიმოხილვები

There are no reviews for this plugin.

## მონაწილეები & დეველოპერები

“Dotix” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს მის განვითარებაში.

მონაწილეები

 *   [ WPDO ](https://profiles.wordpress.org/wpdo5ea/)
 *   [ wpdo ](https://profiles.wordpress.org/wpdo/)

[გადათარგმნეთ Dotix თქვენს ენაზე.](https://translate.wordpress.org/projects/wp-plugins/dotix)

### დაინტერესებული ხართ დეველოპმენტით?

[დაათვალიერეთ კოდი](https://plugins.trac.wordpress.org/browser/dotix/), შეამოწმეთ
[SVN რეპო](https://plugins.svn.wordpress.org/dotix/), ან გამოიწერეთ [შექმნის ჟურნალი](https://plugins.trac.wordpress.org/log/dotix/):
[RSS](https://plugins.trac.wordpress.org/log/dotix/?limit=100&mode=stop_on_copy&format=rss).

## ცვლილებები

#### 1.5

 * Bypassed version check to speed up WP v6.

#### 1.4 – Aug 14 2020

 * WordPress v5.5 REST compatibility.

#### 1.3.1 – Apr 17 2020

 * Typo in REST error tag code.

#### 1.3 – Apr 17 2020

 * Consume REST API now used JSON for results.

#### 1.2.3 – Oct 2 2019

 * GUI CSS tweaks.

#### 1.2.2 – Oct 2 2019

 * Appended CSS class to frontend elements.

#### 1.2.1 – Oct 1 2019

 * Compatibility when products are removed.

#### 1.2 – Oct 1 2019

 * Settings for barcode on/off and size.
 * Settings for credit name.

#### 1.1.1 – Sep 26 2019

 * [GUI] Minor style changes.

#### 1.1 – Aug 23 2019

 * [App] Support DotixApp connection.

#### 1.0 – Aug 20 2019

 * 🎉 Initial Release.

## მეტა

 *  Version **1.5**
 *  Last updated **4 წელი წინ**
 *  Active installations **10-ზე ნაკლები**
 *  WordPress version ** 4.0, ან უფრო მაღალი **
 *  Tested up to **6.0.12**
 *  Language
 * [English (US)](https://wordpress.org/plugins/dotix/)
 *  [დამატებითი ხედი](https://ka.wordpress.org/plugins/dotix/advanced/)

## რეიტინგები

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dotix/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dotix/reviews/)

## მონაწილეები

 *   [ WPDO ](https://profiles.wordpress.org/wpdo5ea/)
 *   [ wpdo ](https://profiles.wordpress.org/wpdo/)

## მხარდაჭერა

გაქვთ კომენტარი? გჭირდებათ დახმარება?

 [მხარდაჭერის ფორუმის ნახვა](https://wordpress.org/support/plugin/dotix/)