$ produkt-> produkt_type

//The product_type property is deprecated. Use get_type() to get internal type.

//So you need to change this:

$product->product_type;

//to this:

$product->get_type();
Elated Emu