1
0
mirror of synced 2025-02-22 01:43:14 +03:00

Merge pull request #2 from retailcrm/master

merged from master
This commit is contained in:
Frosin 2019-07-10 11:47:58 +03:00 committed by GitHub
commit c83869f9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 18 additions and 11 deletions

View File

@ -1,3 +1,7 @@
## 2019-04-22 3.5.2
* Исправлен баг с выгрузкой заказов в retailCRM
* Исправлена ошибка переводов
## 2019-04-16 3.5.1 ## 2019-04-16 3.5.1
* Исправлен баг при активации плагина * Исправлен баг при активации плагина

View File

@ -1 +1 @@
3.5.1 3.5.3

View File

@ -202,8 +202,8 @@ msgstr "Active esta configuración para activar Daemon Collector en la página w
msgid "Site key" msgid "Site key"
msgstr "Clave de la página web" msgstr "Clave de la página web"
msgid "Enable data editing in retailCRM" msgid "Disable data editing in retailCRM"
msgstr "Activar edición de datos en retailCRM" msgstr "Desactivar edición de datos en retailCRM"
msgid "Data updating in retailCRM" msgid "Data updating in retailCRM"
msgstr "Actualización de datos en retailCRM" msgstr "Actualización de datos en retailCRM"

View File

@ -211,8 +211,8 @@ msgstr "Активируйте эту настройку для активаци
msgid "Site key" msgid "Site key"
msgstr "Ключ сайта" msgstr "Ключ сайта"
msgid "Enable data editing in retailCRM" msgid "Disable data editing in retailCRM"
msgstr "Активировать редактирование данных в retailCRM" msgstr "Деактивировать редактирование данных в retailCRM"
msgid "Data updating in retailCRM" msgid "Data updating in retailCRM"
msgstr "Обновление данных в retailCRM" msgstr "Обновление данных в retailCRM"

View File

@ -459,7 +459,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
); );
$this->form_fields['deactivate_update_order'] = array( $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'), 'title' => __('Data updating in retailCRM', 'retailcrm'),
'class' => 'checkbox', 'class' => 'checkbox',
'type' => 'checkbox' 'type' => 'checkbox'

View File

@ -345,7 +345,7 @@ if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) :
$product_attributes = array(); $product_attributes = array();
foreach ($attribute_taxonomies as $product_attribute) { foreach ($attribute_taxonomies as $product_attribute) {
$attribute_id = wc_attribute_taxonomy_name_by_id($product_attribute->attribute_id); $attribute_id = wc_attribute_taxonomy_name_by_id(intval($product_attribute->attribute_id));
$product_attributes[$attribute_id] = $product_attribute->attribute_label; $product_attributes[$attribute_id] = $product_attribute->attribute_label;
} }

View File

@ -109,7 +109,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
$price_item = $product_price + $product_tax; $price_item = $product_price + $product_tax;
$discount_price = $price - $price_item; $discount_price = $price - $price_item;
return $discount_price; return round($discount_price, 2);
} }
/** /**

View File

@ -52,7 +52,7 @@ class WC_Retailcrm_Order_Payment extends WC_Retailcrm_Abstracts_Data
public function build($order, $externalId = false) public function build($order, $externalId = false)
{ {
$data = array( $data = array(
'amount' => $order->get_total() 'amount' => (double) $order->get_total()
); );
if (!$this->is_new) { if (!$this->is_new) {

Binary file not shown.

Binary file not shown.

View File

@ -46,6 +46,9 @@ API-ключ должен быть для отдельного магазина
== Changelog == == Changelog ==
= 3.5.2 =
* Исправлен баг с выгрузкой заказов в retailCRM
= 3.5.1 = = 3.5.1 =
* Исправлен баг при активации плагина * Исправлен баг при активации плагина

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Version: 3.5.1 * Version: 3.5.2
* WC requires at least: 3.0 * WC requires at least: 3.0
* WC tested up to: 3.5.5 * WC tested up to: 3.5.5
* Plugin Name: WooCommerce RetailCRM * Plugin Name: WooCommerce RetailCRM

View File

@ -15,7 +15,7 @@
* *
* *
* @link https://wordpress.org/plugins/woo-retailcrm/ * @link https://wordpress.org/plugins/woo-retailcrm/
* @version 3.5.1 * @version 3.5.2
* *
* @package RetailCRM * @package RetailCRM
*/ */