Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > How to check if a sku has a document? View modes: 
User avatar
Certified Developer 8
Certified Developer 8
richard - 9/20/2009 2:29:15 AM
   
How to check if a sku has a document?
Hi I am using SKUInfoProvider.GetSKUs

I am wondering how I can check if a sku has a node associated with it? I am looping through the SKUS and using getproducturl but if the product is not within a page then it is not returned (I just get "Product not found.")

Cheers

Richard

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/22/2009 7:17:41 AM
   
RE:How to check if a sku has a document?
Hi Richard,

the relationship between a SKU and a node is stored with the node (a product can be assigned to more than one nodes).

If you know the SKU id you may search the nodes according the CMS.TreeEngine.TreeNode.NodeSKUID property.

Best regards,
Helena Grulichova