diff --git a/README.txt b/README.txt index 681fd14..dc5b840 100644 --- a/README.txt +++ b/README.txt @@ -4,8 +4,8 @@ Contributors: BitCanna Donate link: https://commerce.bitcanna.io Tags: payments, cryptocurrency, blockchain Requires at least: 3.0.1 -Tested up to: 6.1.1 -Stable tag: 1.0.18 +Tested up to: 6.3 +Stable tag: 1.0.19 Requires PHP: 7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -37,6 +37,9 @@ For our FAQ we'd like to refer you to our [documentation website](https://docs.b 5. After just a couple seconds, the payment will be performed and you can view your transaction. == Changelog == += 1.0.19 = +* Fix array_search() method in admin panel + = 1.0.18 = * Check the payment_method_title to avoid conflicts with other payment methods * Check the selected_payment_method to remove js call diff --git a/admin/partials/cosmos-settings.php b/admin/partials/cosmos-settings.php index 78d0a6b..1ee4c06 100644 --- a/admin/partials/cosmos-settings.php +++ b/admin/partials/cosmos-settings.php @@ -83,19 +83,38 @@ update_option( 'woocommerce_woo-cosmos_settings', $configCosmosAddr ); update_option( 'cosmos_pay_config_approved', 'true' ); } + + if(!empty($selected_payment_method->settings['option_name'])) { + + ?>
form_fields['option_name']['options'] as $key => $value ) { - $keyAvaible = array_search( $key, $selected_payment_method->settings['option_name'] ); - if ( $keyAvaible === 0 || !empty( $keyAvaible ) ) { + + + foreach ( $selected_payment_method->form_fields['option_name']['options'] as $key => $value ) { + $keyAvaible = array_search( $key, $selected_payment_method->settings['option_name'] ); + + + if ( $keyAvaible === 0 || !empty( $keyAvaible ) ) { ?> -
Your address + + + + + + @@ -122,6 +141,10 @@ + +

No blockchain is configured, select a blockchain in the woocomerce payment configuration

+ + diff --git a/cosmos-woocommerce.php b/cosmos-woocommerce.php index e4f983c..c2437f1 100644 --- a/cosmos-woocommerce.php +++ b/cosmos-woocommerce.php @@ -16,7 +16,7 @@ * Plugin Name: Cosmos Pay * Plugin URI: https://twitter.com/bitcannaglobal * Description: Easily accept cryptocurrency payments on your WordPress site. Enable multiple currencies from the interconnected Cosmos ecosystem. - * Version: 1.0.18 + * Version: 1.0.19 * Author: BitCanna * Author URI: https://commerce.bitcanna.io * License: GPL-2.0+ @@ -35,7 +35,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'COSMOS_WOOCOMMERCE_VERSION', '1.0.18' ); +define( 'COSMOS_WOOCOMMERCE_VERSION', '1.0.19' );