You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, CustomerLoggedinEvent only contains the logged-in customer object. Adding a GuestCustomer field will give developers more flexibility to migrate data from plugins using the event.
Refactored the logic for assigning the previous customer when publishing the CustomerLoggedinEvent. Instead of checking if currentCustomer.Id is different from customer.Id, this change ensures that only guest customers are assigned. This makes the logic clearer and aligns better with customer session handling.
Proposed change:
// Check if currentCustomer is a guest
if (await _customerService.IsGuestAsync(currentCustomer))
{
gestCustomer = currentCustomer;
}
Currently,
CustomerLoggedinEvent
only contains the logged-in customer object. Adding aGuestCustomer
field will give developers more flexibility to migrate data from plugins using the event.CustomerRegistrationService Line 449
The text was updated successfully, but these errors were encountered: