Skip to content

Commit 3a35bdf

Browse files
Release 3.3.2-beta
1 parent c88a486 commit 3a35bdf

14 files changed

+53
-24
lines changed

.github/workflows/soft-release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Soft Release Plugin
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+.[0-9]+.[0-9]+-beta*'
6+
- '[0-9]+.[0-9]+.[0-9]+-rc*'
7+
8+
jobs:
9+
beta_release:
10+
name: Soft Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Pre-Release Notice
16+
run: |
17+
echo "Pre-release tag detected. Skipping full release steps. Only pre-release actions will be performed."

.github/workflows/woo-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Release Plugin
22
on:
33
push:
44
tags:
5-
- '*'
5+
- '[0-9]+.[0-9]+.[0-9]+'
66

77
jobs:
88
tag:
9-
name: New release
9+
name: Full Release
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc
1616

1717
## Documentation
1818

19-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.1/docs/en/documentation.html)
19+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html)
2020

2121
## Support
2222

@@ -33,7 +33,7 @@ ____________________________________________________________________________
3333

3434
## License
3535

36-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.3.1/LICENSE) for more information.
36+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.3.2-beta/LICENSE) for more information.
3737

3838
## Privacy Policy
3939

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '7d280224628cd5ce269b');
1+
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '8de5d1b01ac08d3a2491');

assets/js/frontend/blocks/build/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.txt

+8
Original file line numberDiff line numberDiff line change
@@ -859,3 +859,11 @@ Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal lev
859859
- [Tested Against] Woocommerce 9.3.2
860860
- [Tested Against] PHP SDK 4.6.0
861861

862+
= 3.3.2-beta - December 3 2024 =
863+
- [Improvement] Improve payment method loading speed at checkout
864+
- [Bugfix] Fix for missing transaction box in order
865+
- [Tested Against] PHP 8.2
866+
- [Tested Against] Wordpress 6.7
867+
- [Tested Against] Woocommerce 9.4.2
868+
- [Tested Against] PHP SDK 4.6.0
869+

docs/en/documentation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Documentation</h2> </div>
2323
</a>
2424
</li>
2525
<li>
26-
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.1/">
26+
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.2-beta/">
2727
Source
2828
</a>
2929
</li>

docs/en/resource/method.png

-67.8 KB
Binary file not shown.

docs/en/resource/settings.png

-88.9 KB
Binary file not shown.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function get_settings() {
184184
$settings = array(
185185
array(
186186
'links' => array(
187-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.1/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
187+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
188188
'https://checkout.postfinance.ch/en-ch/user/signup' => esc_html__( 'Sign Up', 'woo-postfinancecheckout' ),
189189
),
190190
'type' => 'postfinancecheckout_links',

includes/admin/class-wc-postfinancecheckout-admin-transaction.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,23 @@ public static function init() {
3434
__CLASS__,
3535
'add_meta_box',
3636
),
37-
40
37+
40,
38+
2
3839
);
3940
}
4041

4142
/**
4243
* Add WC Meta boxes.
4344
*
4445
* @see: https://woo.com/document/high-performance-order-storage/#section-8
46+
* @see: https://developer.wordpress.org/reference/hooks/add_meta_boxes/
4547
*/
46-
public static function add_meta_box() {
47-
if ( empty( $post ) || ! ( $post instanceof WP_Post ) || empty( $post->ID ) || 'shop_order' != $post->post_type ) {
48-
return;
48+
public static function add_meta_box( $post_type = "", $post_or_order_object = null ) {
49+
// WooCommerce is moving the Order information from Post to Order class. For now, we need to support both ways.
50+
if ( empty( $post_or_order_object ) || ! ( $post_or_order_object instanceof \Automattic\WooCommerce\Admin\Overrides\Order) ) {
51+
if ( empty( $post_or_order_object ) || ! ( $post_or_order_object instanceof WP_Post ) || empty( $post_or_order_object->ID ) || 'shop_order' != $post_or_order_object->post_type ) {
52+
return;
53+
}
4954
}
5055
$screen = class_exists( '\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController' )
5156
&& wc_get_container()->get( \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled()

includes/class-wc-postfinancecheckout-migration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public static function check_version() {
267267
public static function plugin_row_meta( $links, $file ) {
268268
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
269269
$row_meta = array(
270-
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.1/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
270+
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
271271
);
272272

273273
return array_merge( $links, $row_meta );

readme.txt

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: postfinancecheckout AG
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
55
Tested up to: 6.6
6-
Stable tag: 3.3.1
6+
Stable tag: 3.3.2-beta
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/3.3.1/docs/en/documentation.html).
26+
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html).
2727

2828
== Support ==
2929

@@ -64,11 +64,10 @@ Enquiries about our terms of use can be made on the [PostFinance Checkout terms
6464
== Changelog ==
6565

6666

67-
= 3.3.1 - October 14 2024 =
68-
- [Feature] Added CH, FR and IT translations
67+
= 3.3.2-beta - December 3 2024 =
6968
- [Improvement] Improve payment method loading speed at checkout
70-
- [Bugfix] Fix for incompatibility with Translatepress
69+
- [Bugfix] Fix for missing transaction box in order
7170
- [Tested Against] PHP 8.2
72-
- [Tested Against] Wordpress 6.6
73-
- [Tested Against] Woocommerce 9.3.2
71+
- [Tested Against] Wordpress 6.7
72+
- [Tested Against] Woocommerce 9.4.2
7473
- [Tested Against] PHP SDK 4.6.0

woocommerce-postfinancecheckout.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* Plugin Name: PostFinance Checkout
44
* Plugin URI: https://wordpress.org/plugins/woo-postfinance-checkout
55
* Description: Process WooCommerce payments with PostFinance Checkout.
6-
* Version: 3.3.1
6+
* Version: 3.3.2-beta
77
* Author: postfinancecheckout AG
88
* Author URI: https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html
99
* Text Domain: postfinancecheckout
1010
* Domain Path: /languages/
1111
* Requires at least: 6.0
1212
* Requires PHP: 7.4
1313
* WC requires at least: 8.0.0
14-
* WC tested up to 9.3.1
14+
* WC tested up to 9.4.2
1515
* License: Apache 2
1616
* License URI: http://www.apache.org/licenses/LICENSE-2.0
1717
*/
@@ -46,7 +46,7 @@ final class WooCommerce_PostFinanceCheckout {
4646
*
4747
* @var string
4848
*/
49-
private $version = '3.3.1';
49+
private $version = '3.3.2-beta';
5050

5151
/**
5252
* The single instance of the class.
@@ -693,7 +693,7 @@ function () {
693693
// The goal here is to speed up the process of registering the payment methods.
694694
$payment_methods = WC_PostFinanceCheckout_Blocks_Support::get_payment_methods();
695695
$json_data = json_encode( $payment_methods );
696-
$content .= '<div id="whitelabel-payment-methods" data-json="' . esc_attr($json_data) . '"></div>';
696+
$content .= '<div id="postfinancecheckout-payment-methods" data-json="' . esc_attr( $json_data ) . '"></div>';
697697
}
698698

699699
return $content;

0 commit comments

Comments
 (0)