Hello Team,
I am using Magento 1.14 EE, trying to get the order data inside observer. Here is my code:
$order = $observer->getEvent()->getOrder();
$_shippingAddress = $order->getShippingAddress();
$street = $_shippingAddress->getStreetFull();
Above code is working fine. I am getting all the information from the object. But also getting below error with getStreetFull()
Fatal error: Call to a member function getStreetFull() on a non-object in /home/springer/www/staging/app/code/local/VendorName/moduleName/Model/Observer.php on line 244
any help would be appreciated .
Thanks