I'd like to show the "date of the last order" on the view.phtml product page.
So far I've discovered "getCreatedAtStoreDate" from "design/template/sales/order/history.phtml.
But when I include these lines in view.phtml it results in the following error: Call to a member function getCreatedAtStoreDate() on null in /.../view.phtml
Is there any simple way to show the date of the last purchase? Maybe someone had this issue before. Thanks