Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Get Product Options for Specific product View modes: 
User avatar
Member
Member
philip-mosquitodigital.co - 9/6/2011 5:38:47 AM
   
Get Product Options for Specific product
Im trying to work out how to get the options for a specific sku:

SKUInfo optioncat = SKUInfoProvider.GetSKUInfo(124);

so i can enumerate through what has been ticked here

User image

User avatar
Member
Member
kentico_michal - 9/6/2011 7:17:18 AM
   
RE:Get Product Options for Specific product
Hello,

You can use the GetSKUOptionCategories method. Please take a look at following code snippet that demonstrates the method:

DataSet ds = OptionCategoryInfoProvider.GetSKUOptionCategories(100, null);
if (!DataHelper.DataSourceIsEmpty(ds))
{
string options = String.Join(";", SqlHelperClass.GetStringValues(ds.Tables[0], "CategoryName"));
}

Best regards,
Michal Legen