Skip to content

Commit

Permalink
Small fixes for 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Nov 2, 2020
1 parent e663b84 commit b22a019
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Vipps.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,10 @@ function express_checkout_get_vipps_customer($order) {
if ($customerid && !is_wp_error($customerid)) {
update_post_meta( $order_id, '_customer_user', $customer_id );
$order->save();

// Ensure the standard WP user fields are set too IOK 2020-11-03
wp_update_user(array('ID' => $customerid, 'first_name' => $order->billing_first_name, 'last_name' => $order->billing_last_name));

update_user_meta( $customerid, 'billing_address_1', $order->billing_address_1 );
update_user_meta( $customerid, 'billing_address_2', $order->billing_address_2 );
update_user_meta( $customerid, 'billing_city', $order->billing_city );
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ From version 1.1.13 you can also modify the javascript using the new WP hooks li

== Changelog ==

= 2020.1x.xx version 1.6.1 =
Bugs fixed: WPML support reenabled thanks to a bug report by @kodeks
= 2020.11.02 version 1.6.1 =
Bugs fixed: WPML support reenabled thanks to a bug report by @kodeks, user creation improved thanks to @henmor

= 2020.10.19 version 1.6.0 =
Integrate with Login with Vipps and provide again the "create users when using express checkout" checkbox. If you choose too, this will then create (and log in) users when using express checkout.
Expand Down
2 changes: 1 addition & 1 deletion woo-vipps.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Version: 1.6.1
Requires at least: 4.7
Tested up to: 5.5.1
Tested up to: 5.5.3
Stable tag: trunk
Requires PHP: 5.6
WC requires at least: 3.3.4
Expand Down

0 comments on commit b22a019

Please sign in to comment.