diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e9c272..e8b4c81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2019-04-22 3.5.2 +* Исправлен баг с выгрузкой заказов в retailCRM +* Исправлена ошибка переводов + ## 2019-04-16 3.5.1 * Исправлен баг при активации плагина diff --git a/VERSION b/VERSION index d5c0c99..87ce492 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.5.1 +3.5.2 diff --git a/resources/pot/retailcrm-es_ES.pot b/resources/pot/retailcrm-es_ES.pot index d8b64b9..034c141 100644 --- a/resources/pot/retailcrm-es_ES.pot +++ b/resources/pot/retailcrm-es_ES.pot @@ -202,8 +202,8 @@ msgstr "Active esta configuración para activar Daemon Collector en la página w msgid "Site key" msgstr "Clave de la página web" -msgid "Enable data editing in retailCRM" -msgstr "Activar edición de datos en retailCRM" +msgid "Disable data editing in retailCRM" +msgstr "Desactivar edición de datos en retailCRM" msgid "Data updating in retailCRM" msgstr "Actualización de datos en retailCRM" diff --git a/resources/pot/retailcrm-ru_RU.pot b/resources/pot/retailcrm-ru_RU.pot index 5da055c..49f83db 100644 --- a/resources/pot/retailcrm-ru_RU.pot +++ b/resources/pot/retailcrm-ru_RU.pot @@ -211,8 +211,8 @@ msgstr "Активируйте эту настройку для активаци msgid "Site key" msgstr "Ключ сайта" -msgid "Enable data editing in retailCRM" -msgstr "Активировать редактирование данных в retailCRM" +msgid "Disable data editing in retailCRM" +msgstr "Деактивировать редактирование данных в retailCRM" msgid "Data updating in retailCRM" msgstr "Обновление данных в retailCRM" diff --git a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php index 9737e0a..45bde07 100644 --- a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php +++ b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php @@ -459,7 +459,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration ); $this->form_fields['deactivate_update_order'] = array( - 'label' => __('Enable data editing in retailCRM', 'retailcrm'), + 'label' => __('Disable data editing in retailCRM', 'retailcrm'), 'title' => __('Data updating in retailCRM', 'retailcrm'), 'class' => 'checkbox', 'type' => 'checkbox' diff --git a/src/include/order/class-wc-retailcrm-order-payment.php b/src/include/order/class-wc-retailcrm-order-payment.php index da836ee..7b0133e 100644 --- a/src/include/order/class-wc-retailcrm-order-payment.php +++ b/src/include/order/class-wc-retailcrm-order-payment.php @@ -52,7 +52,7 @@ class WC_Retailcrm_Order_Payment extends WC_Retailcrm_Abstracts_Data public function build($order, $externalId = false) { $data = array( - 'amount' => $order->get_total() + 'amount' => (double) $order->get_total() ); if (!$this->is_new) { diff --git a/src/languages/retailcrm-es_ES.mo b/src/languages/retailcrm-es_ES.mo index 6eb92d7..ab3f8c4 100644 Binary files a/src/languages/retailcrm-es_ES.mo and b/src/languages/retailcrm-es_ES.mo differ diff --git a/src/languages/retailcrm-ru_RU.mo b/src/languages/retailcrm-ru_RU.mo index 3bf2649..8c3749c 100644 Binary files a/src/languages/retailcrm-ru_RU.mo and b/src/languages/retailcrm-ru_RU.mo differ diff --git a/src/readme.txt b/src/readme.txt index f120096..6efb257 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -46,6 +46,9 @@ API-ключ должен быть для отдельного магазина == Changelog == += 3.5.2 = +* Исправлен баг с выгрузкой заказов в retailCRM + = 3.5.1 = * Исправлен баг при активации плагина diff --git a/src/retailcrm.php b/src/retailcrm.php index 8557c5f..2cfbd8f 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -1,6 +1,6 @@