File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -265,14 +265,12 @@ public function handle_account_registration( $customer_id ) {
265
265
266
266
// FROM: WC_Checkout->process_customer
267
267
if ( ! is_user_logged_in () && ( $ checkout ->is_registration_required () || ! empty ( $ data ['createaccount ' ] ) ) ) {
268
+ $ checkout_session = $ this ->get_checkout_session ();
269
+ $ buyer_id = $ checkout_session ->buyer ->buyerId ;
270
+ $ buyer_email = $ checkout_session ->buyer ->email ;
271
+ $ buyer_user_id = $ this ->get_customer_id_from_buyer ( $ buyer_id );
268
272
269
273
if ( isset ( $ data ['amazon_validate ' ] ) ) {
270
- $ checkout_session = $ this ->get_checkout_session ();
271
- $ buyer_id = $ checkout_session ->buyer ->buyerId ;
272
- $ buyer_email = $ checkout_session ->buyer ->email ;
273
-
274
- $ buyer_user_id = $ this ->get_customer_id_from_buyer ( $ buyer_id );
275
-
276
274
if ( is_user_logged_in () ) {
277
275
return ; // We shouldn't be here anyways
278
276
}
You can’t perform that action at this time.
0 commit comments