Skip to content

Commit 0cd386b

Browse files
Merge pull request #415 from Billmate/dev
preparing for release 3.9.12
2 parents e1a5f83 + 28b3e08 commit 0cd386b

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎src/Readme.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ If you would like to use our logos on your site:
8484
https://www.billmate.se/press-och-media/
8585
== Changelog ==
8686

87+
= 3.9.12 (2020-03-12)
88+
* Fix - price range for Billmate PartPayment
89+
8790
= 3.9.11 (2020-03-12)
8891
* Fix - Undefined index: billmate_checkout_mode
8992

‎src/class-billmate-account.php‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,11 +2086,15 @@ function print_product_monthly_cost()
20862086
$show_monthly_cost = (isset($settings['show_monthly_cost'])) ? $settings['show_monthly_cost'] : '';
20872087
$show_monthly_cost_info = (isset($settings['show_monthly_cost_info'])) ? $settings['show_monthly_cost_info'] : '';
20882088
$testmode = (isset($settings['testmode'])) ? $settings['testmode'] : '';
2089-
$lower_threshold_monthly_cost = '';
2089+
20902090
$upper_threshold_monthly_cost = '';
2091+
$upper_threshold_monthly_cost = ( isset( $this->settings['upper_threshold'] ) AND $this->settings['upper_threshold'] != '' ) ? floatval(str_replace(",",".",$this->settings['upper_threshold'])) : '';
2092+
$upper_threshold_monthly_cost = ($upper_threshold_monthly_cost != 0) ? $upper_threshold_monthly_cost : 10000;
2093+
2094+
$lower_threshold_monthly_cost = '';
2095+
$lower_threshold_monthly_cost = ( isset( $this->settings['lower_threshold'] ) AND $this->settings['lower_threshold'] != '' ) ? floatval(str_replace(",",".",$this->settings['lower_threshold'])) : '';
2096+
$lower_threshold_monthly_cost = ($lower_threshold_monthly_cost != 0) ? $lower_threshold_monthly_cost : 0;
20912097

2092-
$lower_threshold_monthly_cost = ($lower_threshold_monthly_cost != '') ? $lower_threshold_monthly_cost : 0;
2093-
$upper_threshold_monthly_cost = ($upper_threshold_monthly_cost != '') ? $upper_threshold_monthly_cost : 10000000;
20942098

20952099
$country_data = self::get_country_data();
20962100
$billmate_country = isset($country_data['billmate_country']) ? $country_data['billmate_country'] : '';

‎src/commonfunctions.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('BILLPLUGIN_VERSION','3.9.11');
3+
define('BILLPLUGIN_VERSION','3.9.12');
44
define('BILLMATE_CLIENT','PHP:Woocommerce:'.BILLPLUGIN_VERSION);
55
define('BILLMATE_SERVER','2.1.9');
66

0 commit comments

Comments
 (0)