Skip to main content
1 of 4
Rakesh Jesadiya
  • 42.4k
  • 19
  • 132
  • 184

Inside observer,

    $order = $observer->getEvent()->getOrder(); 
    
    $orderFromFront = $order->getRemoteIp();
    $guestCustomer = $order->getCustomerIsGuest();
    groupId  = $order->getCustomerGroupId();
    $firstname = $order->getCustomerFirstname();
    $lastname = $order->getCustomerMiddlename();
    $lastname = $order->getCustomerLastname();
    $prefix = $order->getCustomerPrefix();
    $suffix = $order->getCustomerSuffix();
    $dob = $order->getCustomerDob();
    $taxvat = $order->getCustomerTaxvat();
    $gender = $order->getCustomerGender();

You can get all type of customer data using observer.

Rakesh Jesadiya
  • 42.4k
  • 19
  • 132
  • 184