From 0952dcefde9e2d96524d573d9ebb39df20af2487 Mon Sep 17 00:00:00 2001 From: Iver Odin Kvello Date: Wed, 1 Jul 2020 13:00:09 +0200 Subject: [PATCH] v1.4.10 --- Vipps.class.php | 1 + readme.txt | 5 ++++- woo-vipps.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Vipps.class.php b/Vipps.class.php index 34dab2a8..ff80f4b9 100644 --- a/Vipps.class.php +++ b/Vipps.class.php @@ -1091,6 +1091,7 @@ protected function callback_restore_session ($orderid) { // IOK 2020-07-01 plugins expect this to be called: hopefully they'll not get confused by it happening twice do_action( 'woocommerce_cart_loaded_from_session', WC()->cart); + WC()->cart->calculate_totals(); // And if any of them changed anything, recalculate the totals again! return WC()->session; } diff --git a/readme.txt b/readme.txt index 7673abba..9b757e3e 100644 --- a/readme.txt +++ b/readme.txt @@ -75,7 +75,7 @@ This project is hosted on Github at: https://github.com/vippsas/vipps-woocommerc == Upgrade Notice == -= 1.4.9 = += 1.4.10 = Fixed a bug in the session-restore code for Express Checkout that could affect pricing of shipping Added a do-action call to 'woocommerce_cart_loaded_from_session' in callbacks to allow dynamic pricing plugins to run their code @@ -199,6 +199,9 @@ From version 1.1.13 you can also modify the javascript using the new WP hooks li == Changelog == += 2020.07.01 version 1.4.10 = + Added yet another call to calculate_totals on the cart after the woocommerce_cart_loaded_from_session action + = 2020.07.01 version 1.4.9 = Fixed a bug in the session-restore code for Express Checkout that could affect pricing of shipping Added a do-action call to 'woocommerce_cart_loaded_from_session' in callbacks to allow dynamic pricing plugins to run their code diff --git a/woo-vipps.php b/woo-vipps.php index 270ac295..d93f6e70 100644 --- a/woo-vipps.php +++ b/woo-vipps.php @@ -7,7 +7,7 @@ Author URI: https://www.wp-hosting.no/ Text-domain: woo-vipps Domain Path: /languages - Version: 1.4.9 + Version: 1.4.10 Requires at least: 4.7 Tested up to: 5.4.2