Skip to main content

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();
$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();

For shipping address, $order->getShippingAddress()->getData()
And for billing, $order->getBillingAddress()->getData()

You can get all type of customer data using observer.

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();

For shipping address, $order->getShippingAddress()->getData()
And for billing, $order->getBillingAddress()->getData()

You can get all type of customer data using observer.

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();

For shipping address, $order->getShippingAddress()->getData()
And for billing, $order->getBillingAddress()->getData()

You can get all type of customer data using observer.

Inside observer,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();

For shipping addressshipping address, $order->getShippingAddress()->getData() and
And for billingbilling, $order->getBillingAddress()->getData()

$order->getBillingAddress()->getData()

You can get all type of customer data using observer.observer.

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();

For shipping address, $order->getShippingAddress()->getData() and for billing,

$order->getBillingAddress()->getData()

You can get all type of customer data using observer.

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();

For shipping address, $order->getShippingAddress()->getData()
And for billing, $order->getBillingAddress()->getData()

You can get all type of customer data using observer.

added 131 characters in body
Source Link
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();

For shipping address, $order->getShippingAddress()->getData() and for billing,

$order->getBillingAddress()->getData()

You can get all type of customer data using observer.

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.

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();

For shipping address, $order->getShippingAddress()->getData() and for billing,

$order->getBillingAddress()->getData()

You can get all type of customer data using observer.

Source Link
Rakesh Jesadiya
  • 42.4k
  • 19
  • 132
  • 184
Loading