Page 1 of 1

Get a product by SKU

Posted: Sun Aug 09, 2009 6:01 pm
by andytauber
Id there a way to get a product recodr by SKU?

Re: Get a product by SKU

Posted: Mon Aug 10, 2009 2:17 am
by mazhar
All you need is to make use of LoadForCriteria method of ProductDataSource class for example if you want to load product with SKU "TESTSKU"

Code: Select all

CommerceBuilder.Products.ProductCollection products = CommerceBuilder.Products.ProductDataSource.LoadForCriteria(" SKU = 'TESTSKU' ");