Created
August 10, 2022 08:28
-
-
Save danielborzov/71efbd5ace556ae3d136a03d85b9f930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.cart.php b/app/functions/fn.cart.php | |
index 956b06b3fa..3791754e86 100644 | |
--- a/app/functions/fn.cart.php | |
+++ b/app/functions/fn.cart.php | |
@@ -11537,15 +11537,17 @@ function fn_checkout_update_user_profile(array $auth, array $cart) | |
$current_user_data = fn_get_user_info($user_id, true, $profile_id); | |
- // Check if we need to send notification with new email to customer | |
- $send_notification = isset($user_data['email']) && $user_data['email'] !== $current_user_data['email']; | |
+ unset($user_data['firstname']); | |
+ unset($user_data['lastname']); | |
+ unset($user_data['email']); | |
+ unset($user_data['phone']); | |
$user_data = fn_array_merge( | |
$current_user_data, | |
$user_data | |
); | |
- fn_update_user($user_id, $user_data, $auth, true, $send_notification); | |
+ fn_update_user($user_id, $user_data, $auth, true, false); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment