Load all variants for product on custom page
Posted: Mon Jan 05, 2009 8:54 am
I'm trying to fix a page someone did for the multiple purchase of products with variants. He used ProductOptionCollection productOption = ProductOptionDataSource.LoadForProduct(ProductList[iProductListCount].ProductId); to create a collection to display
and with that, the option sku doesn't get passed to the basket and the availability isn't checked.
Is there something comparable for variants? I've tried ProductVariantCollection productOption = ProductVariantDataSource.LoadAllForProduct(ProductList[iProductListCount].ProductId);
and get the error CS0120: An object reference is required for the nonstatic field, method, or property 'CommerceBuilder.Products.ProductVariantDataSource.LoadAllForProduct(int)'
I've looked at other methods of variants also.
What would be the best way to approach this?
Thanks
and with that, the option sku doesn't get passed to the basket and the availability isn't checked.
Is there something comparable for variants? I've tried ProductVariantCollection productOption = ProductVariantDataSource.LoadAllForProduct(ProductList[iProductListCount].ProductId);
and get the error CS0120: An object reference is required for the nonstatic field, method, or property 'CommerceBuilder.Products.ProductVariantDataSource.LoadAllForProduct(int)'
I've looked at other methods of variants also.
What would be the best way to approach this?
Thanks