Skip to main content
Bumped by Community user

How to print customer array full data.

public function __construct(
            \Magento\Customer\Model\Customer $customermodel,
            \Magento\Customer\Model\Address $addressmodel,
            \Magento\Customer\Api\CustomerRepositoryInterface $customer
    )
    {
        $this->_customer = $customer;
        $this->_address = $addressmodel;
        $this->_customermodel = $customermodel;
    }
 
$customerData = $this->_customer->getById($customerId); 

How to print this $customerData ?

How to print customer array full data.

public function __construct(
            \Magento\Customer\Model\Customer $customermodel,
            \Magento\Customer\Model\Address $addressmodel,
            \Magento\Customer\Api\CustomerRepositoryInterface $customer
    )
    {
        $this->_customer = $customer;
        $this->_address = $addressmodel;
        $this->_customermodel = $customermodel;
    }
 
$customerData = $this->_customer->getById($customerId); 

How to print this $customerData ?

How to print customer array full data.

public function __construct(
    \Magento\Customer\Model\Customer $customermodel,
    \Magento\Customer\Model\Address $addressmodel,
    \Magento\Customer\Api\CustomerRepositoryInterface $customer
)
{
    $this->_customer = $customer;
    $this->_address = $addressmodel;
    $this->_customermodel = $customermodel;
}
$customerData = $this->_customer->getById($customerId); 

How to print this $customerData ?

How to print customer array full data.

public function __construct( \Magento\Customer\Model\Customer $customermodel, \Magento\Customer\Model\Address $addressmodel, \Magento\Customer\Api\CustomerRepositoryInterface $customer ) { $this->_customer = $customer; $this->_address = $addressmodel; $this->_customermodel = $customermodel; }

$customerData = $this->_customer->getById($customerId);

public function __construct(
            \Magento\Customer\Model\Customer $customermodel,
            \Magento\Customer\Model\Address $addressmodel,
            \Magento\Customer\Api\CustomerRepositoryInterface $customer
    )
    {
        $this->_customer = $customer;
        $this->_address = $addressmodel;
        $this->_customermodel = $customermodel;
    }

$customerData = $this->_customer->getById($customerId); 

How to print $customerDatathis $customerData ?

How to print customer array full data.

public function __construct( \Magento\Customer\Model\Customer $customermodel, \Magento\Customer\Model\Address $addressmodel, \Magento\Customer\Api\CustomerRepositoryInterface $customer ) { $this->_customer = $customer; $this->_address = $addressmodel; $this->_customermodel = $customermodel; }

$customerData = $this->_customer->getById($customerId);

How to print $customerData ?

How to print customer array full data.

public function __construct(
            \Magento\Customer\Model\Customer $customermodel,
            \Magento\Customer\Model\Address $addressmodel,
            \Magento\Customer\Api\CustomerRepositoryInterface $customer
    )
    {
        $this->_customer = $customer;
        $this->_address = $addressmodel;
        $this->_customermodel = $customermodel;
    }

$customerData = $this->_customer->getById($customerId); 

How to print this $customerData ?

Source Link
user3374995
  • 321
  • 1
  • 4
  • 10

Magento2 print customer full data array

How to print customer array full data.

public function __construct( \Magento\Customer\Model\Customer $customermodel, \Magento\Customer\Model\Address $addressmodel, \Magento\Customer\Api\CustomerRepositoryInterface $customer ) { $this->_customer = $customer; $this->_address = $addressmodel; $this->_customermodel = $customermodel; }

$customerData = $this->_customer->getById($customerId);

How to print $customerData ?