Get product type by name or id.