1
0
mirror of synced 2025-01-30 06:41:41 +03:00

ref #88434 fix display payment methods (#298)

This commit is contained in:
Kocmonavtik 2023-03-13 11:37:44 +03:00 committed by GitHub
parent d929a1fd5f
commit 6c08749e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,6 @@
## 2023-03-02 4.5.4
* Fix display payment methods
## 2022-12-26 4.5.3
* Fix bug with products tax

View File

@ -1 +1 @@
4.5.3
4.5.4

View File

@ -280,15 +280,20 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
];
}
foreach ($wc_payment->payment_gateways() as $payment) {
foreach ($wc_payment->get_available_payment_gateways() as $payment) {
$title = empty($payment->method_title) ? $payment->id : $payment->method_title;
$description = empty($payment->method_description)
? $payment->description
: $payment->method_description;
$this->form_fields[$payment->id] = [
'css' => 'min-width:350px;',
'type' => 'select',
'title' => __($payment->method_title, 'woocommerce'),
'title' => __($title, 'woocommerce'),
'class' => 'select',
'options' => $paymentsList,
'desc_tip' => true,
'description' => __($payment->method_description, 'woocommerce'),
'description' => __($description, 'woocommerce'),
];
}
}

View File

@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
Requires PHP: 7.0
Requires at least: 5.3
Tested up to: 6.0
Stable tag: 4.5.3
Stable tag: 4.5.4
License: GPLv1 or later
License URI: http://www.gnu.org/licenses/gpl-1.0.html
@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
== Changelog ==
= 4.5.4 =
* Fix display payment methods
= 4.5.3 =
* Fix bug with products tax

View File

@ -5,7 +5,7 @@
* Description: Integration plugin for WooCommerce & Simla.com
* Author: RetailDriver LLC
* Author URI: http://retailcrm.pro/
* Version: 4.5.3
* Version: 4.5.4
* Tested up to: 6.0
* WC requires at least: 5.4
* WC tested up to: 6.9

View File

@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.5.3
* @version 4.5.4
*
* @package RetailCRM
*/