Skip to content

Commit

Permalink
v1.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Jul 1, 2020
1 parent 823f858 commit 0952dce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Vipps.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion woo-vipps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0952dce

Please sign in to comment.