BTW, I wouldn't use "if (product.ProductVariants.Count > 0)" because it loads all variants (deleted, unpublished, not available). Use _productService.GetProductVariantsByProductId(). And productVariants variable is already defined in the method
BTW, I wouldn't use "if (product.ProductVariants.Count > 0)" because it loads all variants (deleted, unpublished, not available). Use _productService.GetProductVariantsByProductId(). And productVariants variable is already defined in the method