Turns out this was embarissinbly simple... DataObject::get_by_id( 'Product', $data->ID) was what i was looking for
Great CMS btw, very extendable :)
My question is say I've got a Product page from Sitetree as an object, how do I access its product properties?
Ie I've got $data which is a product page, so if I type echo $data->Title; I get the title of the product
How do I print the price of the product? I can't just do echo $data->Price as it's accessing the Sitetree table not the Product table.
Do I need to perform a SQL query to search for a product in product table with the same ID as the page?
Any hints would be great,