Skip to content

Commit

Permalink
Version 2.5.3 (#87)
Browse files Browse the repository at this point in the history
* The wrong template for leasing was used (#86)

Missed to update the template name to reflect the payment gateway. Currently, invoice template is used for both leasing and invoice gateway.

* Version 2.5.3
  • Loading branch information
mntzrr committed Jul 24, 2023
2 parents 7d13ae4 + 2630d5d commit 46dda3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.txt
Expand Up @@ -7,7 +7,7 @@ Tested up to: 6.0
Requires PHP: 7.2
WC requires at least: 5.0.0
WC tested up to: 7.2.0
Stable tag: 2.5.2
Stable tag: 2.5.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -55,6 +55,9 @@ In the settings for Wasa's checkout, there are two new settings with the heading
2. In the text field below, enter the path to the default checkout. For example, in my checkout, it is the "checkout". If it is not the same for you, you can easily get it by activating the standard checkout and copying the uri. Dy activates it at Settings> Advanced> Page Settings> Checkout Page> "Checkout".

== Changelog ==
= 2023-07-24 - version 2.5.3 =
* Fix - Leasing should now work expected. Prior to this fix, an incorrect template was being used, causing the invoice template to be displayed instead.

= 2023-07-12 - version 2.5.2 =
* Fix - Removed an action that references an undefined method which would cause a fatal error.

Expand Down
2 changes: 1 addition & 1 deletion includes/class-wasa-kredit-checkout-payment-gateway.php
Expand Up @@ -401,7 +401,7 @@ public function replace_checkout_page( $template, $template_name ) {
return $template;
}

return plugin_dir_path( __FILE__ ) . '../templates/invoice-checkout-page.php';
return plugin_dir_path( __FILE__ ) . '../templates/checkout-page.php';
}
}

Expand Down
4 changes: 2 additions & 2 deletions wasa-kredit-checkout.php
Expand Up @@ -20,7 +20,7 @@
* Plugin URI: https://github.com/wasakredit/woocommerse-plugin
* Description: Wasa Kredit Checkout offers financing as a payment method for B2B.
* Author: Wasa Kredit
* Version: 2.5.2
* Version: 2.5.3
* Author URI: https://developer.wasakredit.se
* License: GPL-2.0+
Expand All @@ -42,7 +42,7 @@
* Rename this for your plugin and update it as you release new versions.
*/

define( 'WASA_KREDIT_CHECKOUT_VERSION', '2.5.2' );
define( 'WASA_KREDIT_CHECKOUT_VERSION', '2.5.3' );
define( 'WASA_KREDIT_CHECKOUT_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'WASA_KREDIT_CHECKOUT_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );

Expand Down

0 comments on commit 46dda3c

Please sign in to comment.