Finding product type
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?
Since product types are dynamic types, you'll need to operate with the type names like the one you mentioned. However, this should not be a problem when constructing your switch statement, you just have to adjust the matching patterns to match the product types naming.
the Telerik team