In my custom product widgets that I'm building I need to apply a different template depending on the product type of the product. Once I have identified the product, how can I find out what the product type is?
I need to be able to do something like this;
...some code to display the fruit template
...some code to display the veg template
Just to add, I can use .GetType on the product object to get something like "sf_ec_prdct_fruit" (sf_ec_prdct_generalproduct for standard products), is this the best I'm going to get?