Getting Fatal error in EE 1.14 with getStreetFull() method

  • Open
  • Pankaj Sharma
    Participant
    September 23, 2019 at 12:05 pm #3131
    Pankaj Sharma

    I am getting error with the below code:

    $order = $observer->getEvent()->getOrder();
    $_shippingAddress = $order->getShippingAddress();
    $street = $_shippingAddress->getStreetFull();

    Error:

    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, Thanks in advance.