Skip to content

Commit

Permalink
Version 1.10.6 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
mntzrr authored Jul 11, 2024
2 parents ad7da05 + a97abc2 commit 4a8a552
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assets/js/dintero-checkout-express.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/dintero-checkout-express.min.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions classes/class-dintero-checkout-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ public function __construct() {

// Migrate existing settings to use the new "checkout_flow" setting.
if ( ! isset( $this->settings['checkout_flow'] ) ) {
$checkout_type = $this->settings['checkout_type'] ?? 'express';
$form_factor = $this->settings['form_factor'] ?? 'redirect';
$popout = $this->settings['checkout_popout'] ?? 'no';
$checkout_type = $this->settings['checkout_type'] ?? 'express'; // embedded|express.
$form_factor = $this->settings['form_factor'] ?? 'redirect'; // express|redirect.
$popout = $this->settings['checkout_popout'] ?? 'no'; // yes|no.

if ( 'express' === $checkout_type ) {
$flow = 'express_' . ( 'yes' === $popout ? 'popout' : 'embedded' );
if ( 'embedded' === $form_factor ) {
$display = 'yes' === $popout ? 'popout' : 'embedded';
$flow = "{$checkout_type}_{$display}";
} else {
// We don't need to check for pop-out since it's only available for express checkout.
$flow = 'checkout_' . ( 'yes' === $form_factor ? 'redirect' : 'embedded' );
$flow = 'checkout_redirect';
}

$this->update_option( $this->plugin_id . $this->id . '_checkout_flow', $flow );
$this->update_option( 'checkout_flow', $flow );
$this->settings['checkout_flow'] = $flow;
}

Expand Down
4 changes: 2 additions & 2 deletions dintero-checkout-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Dintero offers a complete payment solution. Simplifying the payment process for you and the customer.
* Author: Dintero, Krokedil
* Author URI: https://krokedil.com/
* Version: 1.10.5
* Version: 1.10.6
* Text Domain: dintero-checkout-for-woocommerce
* Domain Path: /languages
*
Expand All @@ -22,7 +22,7 @@
exit;
}

define( 'DINTERO_CHECKOUT_VERSION', '1.10.5' );
define( 'DINTERO_CHECKOUT_VERSION', '1.10.6' );
define( 'DINTERO_CHECKOUT_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) );
define( 'DINTERO_CHECKOUT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'DINTERO_CHECKOUT_MAIN_FILE', __FILE__ );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tested up to: 6.4.1
Requires PHP: 7.0
WC requires at least: 6.1.0
WC tested up to: 8.2.1
Stable tag: 1.10.5
Stable tag: 1.10.6
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -82,6 +82,9 @@ Go to [https://www.dintero.com/contact-us](https://www.dintero.com/contact-us) t
1. The plugin settings screen where you set up the details to connect to Dintero.

== Changelog ==
= 2024.07.11 - version 1.10.6 =
* Fix - Fixed an issue related to the plugin settings overhaul. The setting migration should now work as intended. Please verify that the new "Checkout flow" plugin setting option is what you expect.

= 2024.07.01 - version 1.10.5 =
* Fix - Fixed an issue where if the "Shipping destination" in Woo was set to default to shipping, the checkout validation would always be rejected due to missing shipping address.
* Fix - Fixed an issue where the shipping address fields were not always enabled, although the plugin setting "Allow separate shipping address" was enabled.
Expand Down

0 comments on commit 4a8a552

Please sign in to comment.