Skip to content

Commit cfdae18

Browse files
Release 1.1.15
1 parent 7fe72e7 commit cfdae18

File tree

7 files changed

+45
-29
lines changed

7 files changed

+45
-29
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ This repository contains the PostFinance Checkout WooCommerce plugin that enable
1313

1414
## Documentation
1515

16-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.14/docs/en/documentation.html)
16+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.15/docs/en/documentation.html)
1717

1818
## License
1919

20-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.14/LICENSE) for more information.
20+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.15/LICENSE) for more information.
2121

2222

2323

changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,16 @@
9292

9393
* Tweakes - Integrated hooks to remove product attribute options
9494

95-
= 1.1.14 - November 21, 2018 =
95+
= 1.1.14 - December 05, 2018 =
9696

9797
* Fixes - Improved available payment method caching.
9898
* Fixes - Fixes Refund failure message not displayed.
9999
* Feature - Added ability to use custom 'Date Of Birth' or 'Gender' field in checkout.
100100

101+
= 1.1.15 - December 10, 2018 =
102+
103+
* Tweak - Improved email confirmation with Germanized Plugin
104+
101105
= 1.1.2 - May 22, 2018 =
102106

103107
* Fix - Issue with refunds

docs/en/documentation.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
2121
</a>
2222
</li>
2323
<li>
24-
<a href="https://github.com/pfpayments/woocommerce/releases/tag/1.1.14/">
24+
<a href="https://github.com/pfpayments/woocommerce/releases/tag/1.1.15/">
2525
Source
2626
</a>
2727
</li>
@@ -427,10 +427,10 @@ <h2>
427427
</li>
428428
</ol>
429429
</div> </div>
430-
</div> <div class="section" id="_how_can_i_add_the_value_of_a_strong_date_of_birth_strong_of_strong_gender_strong_input_field_from_my_checkout_form_to_the_whitelabelname_addresses">
430+
</div> <div class="section" id="_how_can_i_add_the_value_of_a_strong_date_of_birth_strong_or_strong_gender_strong_input_field_from_my_checkout_form_to_the_whitelabelname_addresses">
431431
<div class="section-title">
432432
<h2>
433-
<span class="title-number">8.5</span>How can I add the value of a <strong>Date Of Birth</strong> of <strong>Gender</strong> input field from my checkout form to the PostFinance Checkout addresses? </h2>
433+
<span class="title-number">8.5</span>How can I add the value of a <strong>Date Of Birth</strong> or <strong>Gender</strong> input field from my checkout form to the PostFinance Checkout addresses? </h2>
434434
</div>
435435
<div class="section-body">
436436
<div class="section" id="_billing_address_date_of_birth">
@@ -440,14 +440,14 @@ <h3>
440440
</div>
441441
<div class="section-body">
442442
<div class="paragraph">
443-
<p>For a custom billing date of birth input fiel to be used in the address the following conditions must be fulfilled:</p>
443+
<p>For a custom billing date of birth input field to be used in the address the following conditions must be fulfilled:</p>
444444
</div><div class="olist arabic">
445445
<ol class="arabic">
446446
<li>
447447
<p>The form field name has to be 'billing_date_of_birth' or '_billing_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_date_of_birth_field_name' which returns the field name.</p>
448448
</li>
449449
<li>
450-
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
450+
<p>The field must be submitted in the 'post_data' parameter in the <strong>update_order_review</strong> request.</p>
451451
</li>
452452
<li>
453453
<p>The date must be saved on the order meta data with the key 'billing_date_of_birth' or '_billing_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_date_of_birth_order_meta_name' which returns the meta key.</p>
@@ -464,14 +464,14 @@ <h3>
464464
</div>
465465
<div class="section-body">
466466
<div class="paragraph">
467-
<p>For a custom billing gender input fiel to be used in the address the following conditions must be fulfilled:</p>
467+
<p>For a custom billing gender input field to be used in the address the following conditions must be fulfilled:</p>
468468
</div><div class="olist arabic">
469469
<ol class="arabic">
470470
<li>
471471
<p>The form field name has to be 'billing_gender' or '_billing_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_gender_field_name' which returns the field name.</p>
472472
</li>
473473
<li>
474-
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
474+
<p>The field must be submitted in the 'post_data' parameter in the <strong>update_order_review</strong> request.</p>
475475
</li>
476476
<li>
477477
<p>The date must be saved on the order meta data with the key 'billing_gender' or '_billing_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_gender_order_meta_name' which returns the meta key.</p>
@@ -488,20 +488,20 @@ <h3>
488488
</div>
489489
<div class="section-body">
490490
<div class="paragraph">
491-
<p>For a custom shipping date of birth input fiel to be used in the address the following conditions must be fulfilled:</p>
491+
<p>For a custom shipping date of birth input field to be used in the address the following conditions must be fulfilled:</p>
492492
</div><div class="olist arabic">
493493
<ol class="arabic">
494494
<li>
495-
<p>The form field name has to be <strong>shipping_date_of_birth</strong> or <strong>_shipping_date_of_birth</strong> or an action has to be registered for the filter <strong>wc_postfinancecheckout_shipping_date_of_birth_field_name</strong> which returns the field name.</p>
495+
<p>The form field name has to be 'shipping_date_of_birth' or '_shipping_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_date_of_birth_field_name' which returns the field name.</p>
496496
</li>
497497
<li>
498-
<p>The field must be submitted in the <strong>post_data</strong> parameter in the <strong>update_order_review</strong> request.</p>
498+
<p>The field must be submitted in the 'post_data' parameter in the <strong>update_order_review</strong> request.</p>
499499
</li>
500500
<li>
501-
<p>The date must be saved on the order meta data with the key <strong>shipping_date_of_birth</strong> or <strong>_shipping_date_of_birth</strong> or an action has to be registered for the filter <strong>wc_postfinancecheckout_shipping_date_of_birth_order_meta_name</strong> which returns the meta key.</p>
501+
<p>The date must be saved on the order meta data with the key 'shipping_date_of_birth' or '_shipping_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_date_of_birth_order_meta_name' which returns the meta key.</p>
502502
</li>
503503
<li>
504-
<p>The value must be in one of the following formats <strong>d.m.Y</strong>, <strong>d-m-Y</strong>, <strong>m/d/Y</strong>, <strong>Y-m-d</strong>, <strong>Y/m/d</strong>, or an action has to be registered for the filter <strong>wc_postfinancecheckout_custom_date_of_birth_format</strong> which returns a custom date format. (For more information on the date format check the following link: <a href="https://secure.php.net/manual/en/datetime.createfromformat.php">PHP DateTime Format</a>)</p>
504+
<p>The value must be in one of the following formats 'd.m.Y', 'd-m-Y', 'm/d/Y', 'Y-m-d', 'Y/m/d', or an action has to be registered for the filter 'wc_postfinancecheckout_custom_date_of_birth_format' which returns a custom date format. (For more information on the date format check the following link: <a href="https://secure.php.net/manual/en/datetime.createfromformat.php">PHP DateTime Format</a>)</p>
505505
</li>
506506
</ol>
507507
</div> </div>
@@ -512,14 +512,14 @@ <h3>
512512
</div>
513513
<div class="section-body">
514514
<div class="paragraph">
515-
<p>For a custom shipping gender input fiel to be used in the address the following conditions must be fulfilled:</p>
515+
<p>For a custom shipping gender input field to be used in the address the following conditions must be fulfilled:</p>
516516
</div><div class="olist arabic">
517517
<ol class="arabic">
518518
<li>
519519
<p>The form field name has to be 'shipping_gender' or '_shipping_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_gender_field_name' which returns the field name.</p>
520520
</li>
521521
<li>
522-
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
522+
<p>The field must be submitted in the 'post_data' parameter in the <strong>update_order_review</strong> request.</p>
523523
</li>
524524
<li>
525525
<p>The date must be saved on the order meta data with the key 'shipping_gender' or '_shipping_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_gender_order_meta_name' which returns the meta key.</p>
@@ -658,9 +658,9 @@ <h1>
658658
<span class="item-title">How can I translate the plugin?</span>
659659
</a>
660660
</li> <li class="nav-level-2">
661-
<a href="#_how_can_i_add_the_value_of_a_strong_date_of_birth_strong_of_strong_gender_strong_input_field_from_my_checkout_form_to_the_whitelabelname_addresses">
661+
<a href="#_how_can_i_add_the_value_of_a_strong_date_of_birth_strong_or_strong_gender_strong_input_field_from_my_checkout_form_to_the_whitelabelname_addresses">
662662
<span class="item-number">8.5</span>
663-
<span class="item-title">How can I add the value of a &lt;strong&gt;Date Of Birth&lt;/strong&gt; of &lt;strong&gt;Gender&lt;/strong&gt; input field from my checkout form to the PostFinance Checkout addresses?</span>
663+
<span class="item-title">How can I add the value of a &lt;strong&gt;Date Of Birth&lt;/strong&gt; or &lt;strong&gt;Gender&lt;/strong&gt; input field from my checkout form to the PostFinance Checkout addresses?</span>
664664
</a>
665665
<ul class="nav">
666666
<li class="nav-level-3">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function get_settings(){
145145
$settings = array(
146146
array(
147147
'links' => array(
148-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.14/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
148+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.15/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
149149
'https://www.postfinance-checkout.ch/user/signup' => __('Sign Up', 'woo-postfinancecheckout')
150150
),
151151
'type' => 'postfinancecheckout_links',

includes/class-wc-postfinancecheckout-migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private static function parse_update_notice($content, $new_version){
259259
public static function plugin_row_meta( $links, $file ) {
260260
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
261261
$row_meta = array(
262-
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.14/docs/en/documentation.html" aria-label="' . esc_attr__('View Documentation', 'woo-postfinancecheckout') . '">' . esc_html__('Documentation', 'woo-postfinancecheckout') . '</a>',
262+
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.15/docs/en/documentation.html" aria-label="' . esc_attr__('View Documentation', 'woo-postfinancecheckout') . '">' . esc_html__('Documentation', 'woo-postfinancecheckout') . '</a>',
263263
);
264264

265265
return array_merge( $links, $row_meta );

readme.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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
55
Tested up to: 5.0.0
6-
Stable tag: 1.1.14
6+
Stable tag: 1.1.15
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/1.1.14/docs/en/documentation.html).
26+
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.15/docs/en/documentation.html).
2727

2828
== Installation ==
2929

@@ -52,8 +52,6 @@ Additional documentation for this plugin is available [here](https://plugin-docu
5252
== Changelog ==
5353

5454

55-
= 1.1.14 - November 21, 2018 =
55+
= 1.1.15 - December 10, 2018 =
5656

57-
* Fixes - Improved available payment method caching.
58-
* Fixes - Fixes Refund failure message not displayed.
59-
* Feature - Added ability to use custom 'Date Of Birth' or 'Gender' field in checkout.
57+
* Tweak - Improved email confirmation with Germanized Plugin

woocommerce-postfinancecheckout.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce PostFinance Checkout
44
* Plugin URI: https://wordpress.org/plugins/woo-postfinancecheckout
55
* Description: Process WooCommerce payments with PostFinance Checkout.
6-
* Version: 1.1.14
6+
* Version: 1.1.15
77
* License: Apache2
88
* License URI: http://www.apache.org/licenses/LICENSE-2.0
99
* Author: customweb GmbH
@@ -43,7 +43,7 @@ final class WooCommerce_PostFinanceCheckout {
4343
*
4444
* @var string
4545
*/
46-
private $version = '1.1.14';
46+
private $version = '1.1.15';
4747

4848
/**
4949
* The single instance of the class.
@@ -241,6 +241,12 @@ public function loaded(){
241241
$this,
242242
'woocommerce_rest_prepare_product_attribute'
243243
), 10, 3);
244+
245+
add_filter('woocommerce_germanized_send_instant_order_confirmation', array(
246+
$this,
247+
'germanized_send_instant_order_confirmation'
248+
), 10, 2);
249+
244250
}
245251

246252
public function register_order_statuses(){
@@ -619,6 +625,14 @@ public function woocommerce_rest_prepare_product_attribute($response, $item, $re
619625
}
620626
return $response;
621627
}
628+
629+
public function germanized_send_instant_order_confirmation($send_mail, $order){
630+
$gateway = wc_get_payment_gateway_by_order($order);
631+
if ($gateway instanceof WC_PostFinanceCheckout_Gateway) {
632+
return false;
633+
}
634+
return $send_mail;
635+
}
622636
}
623637
}
624638

0 commit comments

Comments
 (0)