Get a product by SKU
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 28
- Joined: Thu Jun 05, 2008 6:11 pm
Get a product by SKU
Id there a way to get a product recodr by SKU?
Re: Get a product by SKU
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' ");