I have a small problem
I should retrieve the data from the sales_order_item table and then print it to a my view page page
My problem is that I can not retrieve the data
The function is:
Public function getProductName () {
Return $ this -> _ order-> getName ();
}
Where Name is the record of the table I'm analyzing. I have to retrieve them by giving the Order ID that I have already retrieved with:
Public function getOrderIncrementId () {
Return $ this -> _ order-> getIncrementId ();
}
The problem is that when I get the get I can not transform it into an array then explode it with a foreach in the my view page
I always return an empty sample as if there were no data inside
Help!!!