Skip to content

Commit

Permalink
Release 3.3.2-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Dec 3, 2024
1 parent c88a486 commit 3a35bdf
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 24 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/soft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Soft Release Plugin
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+-beta*'
- '[0-9]+.[0-9]+.[0-9]+-rc*'

jobs:
beta_release:
name: Soft Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Pre-Release Notice
run: |
echo "Pre-release tag detected. Skipping full release steps. Only pre-release actions will be performed."
4 changes: 2 additions & 2 deletions .github/workflows/woo-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Release Plugin
on:
push:
tags:
- '*'
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
tag:
name: New release
name: Full Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc

## Documentation

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

## Support

Expand All @@ -33,7 +33,7 @@ ____________________________________________________________________________

## License

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

## Privacy Policy

Expand Down
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '7d280224628cd5ce269b');
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '8de5d1b01ac08d3a2491');
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -859,3 +859,11 @@ Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal lev
- [Tested Against] Woocommerce 9.3.2
- [Tested Against] PHP SDK 4.6.0

= 3.3.2-beta - December 3 2024 =
- [Improvement] Improve payment method loading speed at checkout
- [Bugfix] Fix for missing transaction box in order
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.7
- [Tested Against] Woocommerce 9.4.2
- [Tested Against] PHP SDK 4.6.0

2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.1/">
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.2-beta/">
Source
</a>
</li>
Expand Down
Binary file removed docs/en/resource/method.png
Binary file not shown.
Binary file removed docs/en/resource/settings.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function get_settings() {
$settings = array(
array(
'links' => array(
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.1/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
'https://checkout.postfinance.ch/en-ch/user/signup' => esc_html__( 'Sign Up', 'woo-postfinancecheckout' ),
),
'type' => 'postfinancecheckout_links',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,23 @@ public static function init() {
__CLASS__,
'add_meta_box',
),
40
40,
2
);
}

/**
* Add WC Meta boxes.
*
* @see: https://woo.com/document/high-performance-order-storage/#section-8
* @see: https://developer.wordpress.org/reference/hooks/add_meta_boxes/
*/
public static function add_meta_box() {
if ( empty( $post ) || ! ( $post instanceof WP_Post ) || empty( $post->ID ) || 'shop_order' != $post->post_type ) {
return;
public static function add_meta_box( $post_type = "", $post_or_order_object = null ) {
// WooCommerce is moving the Order information from Post to Order class. For now, we need to support both ways.
if ( empty( $post_or_order_object ) || ! ( $post_or_order_object instanceof \Automattic\WooCommerce\Admin\Overrides\Order) ) {
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 ) {
return;
}
}
$screen = class_exists( '\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController' )
&& wc_get_container()->get( \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled()
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-postfinancecheckout-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static function check_version() {
public static function plugin_row_meta( $links, $file ) {
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
$row_meta = array(
'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>',
'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>',
);

return array_merge( $links, $row_meta );
Expand Down
13 changes: 6 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: postfinancecheckout AG
Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing
Requires at least: 4.7
Tested up to: 6.6
Stable tag: 3.3.1
Stable tag: 3.3.2-beta
License: Apache 2
License URI: http://www.apache.org/licenses/LICENSE-2.0

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

== Documentation ==

Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.1/docs/en/documentation.html).
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.2-beta/docs/en/documentation.html).

== Support ==

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


= 3.3.1 - October 14 2024 =
- [Feature] Added CH, FR and IT translations
= 3.3.2-beta - December 3 2024 =
- [Improvement] Improve payment method loading speed at checkout
- [Bugfix] Fix for incompatibility with Translatepress
- [Bugfix] Fix for missing transaction box in order
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.6
- [Tested Against] Woocommerce 9.3.2
- [Tested Against] Wordpress 6.7
- [Tested Against] Woocommerce 9.4.2
- [Tested Against] PHP SDK 4.6.0
8 changes: 4 additions & 4 deletions woocommerce-postfinancecheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Plugin Name: PostFinance Checkout
* Plugin URI: https://wordpress.org/plugins/woo-postfinance-checkout
* Description: Process WooCommerce payments with PostFinance Checkout.
* Version: 3.3.1
* Version: 3.3.2-beta
* Author: postfinancecheckout AG
* Author URI: https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html
* Text Domain: postfinancecheckout
* Domain Path: /languages/
* Requires at least: 6.0
* Requires PHP: 7.4
* WC requires at least: 8.0.0
* WC tested up to 9.3.1
* WC tested up to 9.4.2
* License: Apache 2
* License URI: http://www.apache.org/licenses/LICENSE-2.0
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ final class WooCommerce_PostFinanceCheckout {
*
* @var string
*/
private $version = '3.3.1';
private $version = '3.3.2-beta';

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

return $content;
Expand Down

0 comments on commit 3a35bdf

Please sign in to comment.