Skip to content

Commit 8326608

Browse files
author
root
committed
Release 2.1.11
1 parent 5bb6168 commit 8326608

8 files changed

+31
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc
1515

1616
## Documentation
1717

18-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.10/docs/en/documentation.html)
18+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.11/docs/en/documentation.html)
1919

2020
## Support
2121

@@ -24,4 +24,4 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/
2424

2525
## License
2626

27-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/2.1.10/LICENSE) for more information.
27+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/2.1.11/LICENSE) for more information.

changelog.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,3 +549,14 @@ Tested against:
549549
- Woocommerce 7.4.1
550550
- PHP SDK 3.2.0
551551

552+
= 2.1.11 - April 05, 2023 =
553+
554+
## Bugfix
555+
- Fix the Smart Coupon impact on renewal of Subscriptions
556+
557+
## Tested Against
558+
- PHP 8.1
559+
- Wordpress 6.2
560+
- Woocommerce 7.4.1
561+
- PHP SDK 3.2.0
562+

docs/en/documentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
2222
</a>
2323
</li>
2424
<li>
25-
<a href="https://github.com/pfpayments/woocommerce/releases/tag/2.1.10/">
25+
<a href="https://github.com/pfpayments/woocommerce/releases/tag/2.1.11/">
2626
Source
2727
</a>
2828
</li>

includes/admin/class-wc-postfinancecheckout-admin-settings-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function get_settings() {
187187
$settings = array(
188188
array(
189189
'links' => array(
190-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.10/docs/en/documentation.html' => __( 'Documentation', 'woo-postfinancecheckout' ),
190+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.11/docs/en/documentation.html' => __( 'Documentation', 'woo-postfinancecheckout' ),
191191
'https://checkout.postfinance.ch/en-ch/user/signup' => __( 'Sign Up', 'woo-postfinancecheckout' ),
192192
),
193193
'type' => 'postfinancecheckout_links',

includes/class-wc-postfinancecheckout-migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public static function check_version() {
251251
public static function plugin_row_meta( $links, $file ) {
252252
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
253253
$row_meta = array(
254-
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.10/docs/en/documentation.html" aria-label="' . esc_attr__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
254+
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.11/docs/en/documentation.html" aria-label="' . esc_attr__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
255255
);
256256

257257
return array_merge( $links, $row_meta );

includes/packages/coupon/class-wc-postfinancecheckout-packages-coupon-discount.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ public static function copy_total_coupon_discount_meta_data_to_order_item( WC_Or
101101
*/
102102
public static function get_coupons_discount_totals_including_tax( $currency ) {
103103
$coupons_discount_total = 0;
104+
105+
//guard clause if the cart is empty, nothing to do here. This applies to subscription renewals
106+
if ( empty( WC()->cart ) ) {
107+
return $coupons_discount_total;
108+
}
109+
104110
foreach (WC()->cart->get_coupon_discount_totals() as $coupon_discount_total) {
105111
$coupons_discount_total += WC_PostFinanceCheckout_Helper::instance()->round_amount( $coupon_discount_total, $currency );
106112
}

readme.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: customwebgmbh
33
Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing
44
Requires at least: 4.7
5-
Tested up to: 6.1
6-
Stable tag: 2.1.10
5+
Tested up to: 6.2
6+
Stable tag: 2.1.11
77
License: Apache 2
88
License URI: http://www.apache.org/licenses/LICENSE-2.0
99

@@ -23,7 +23,7 @@ To use this extension, a PostFinance Checkout account is required. Sign up on [P
2323

2424
== Documentation ==
2525

26-
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.10/docs/en/documentation.html).
26+
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.11/docs/en/documentation.html).
2727

2828
== Support ==
2929

@@ -56,13 +56,13 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/
5656
== Changelog ==
5757

5858

59-
= 2.1.10 - March 30, 2023 =
59+
= 2.1.11 - April 05, 2023 =
6060

6161
## Bugfix
62-
- Prevent Customer from upgrading to unsupported version of WooCommerce (7.5.+)
62+
- Fix the Smart Coupon impact on renewal of Subscriptions
6363

6464
## Tested Against
6565
- PHP 8.1
66-
- Wordpress 6.1.1
66+
- Wordpress 6.2
6767
- Woocommerce 7.4.1
6868
- PHP SDK 3.2.0

woocommerce-postfinancecheckout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* Plugin Name: PostFinance Checkout
44
* Plugin URI: https://wordpress.org/plugins/woo-postfinancecheckout
55
* Description: Process WooCommerce payments with PostFinance Checkout.
6-
* Version: 2.1.10
6+
* Version: 2.1.11
77
* License: Apache2
88
* License URI: http://www.apache.org/licenses/LICENSE-2.0
99
* Author: wallee AG
1010
* Author URI: https://www.wallee.com
1111
* Requires at least: 4.7
12-
* Tested up to: 6.1
12+
* Tested up to: 6.2
1313
* WC requires at least: 3.0.0
1414
* WC tested up to: 7.4.1
1515
*
@@ -46,7 +46,7 @@ final class WooCommerce_PostFinanceCheckout {
4646
*
4747
* @var string
4848
*/
49-
private $version = '2.1.10';
49+
private $version = '2.1.11';
5050

5151
/**
5252
* The single instance of the class.

0 commit comments

Comments
 (0)