how to get the list of id of goods on the page of the view of the OrderSummary file in the form ['1234', '4567']
thanks!
public ShoppingCartModel()
{
Items = new List<ShoppingCartItemModel>();
Warnings = new List<string>();
EstimateShipping = new EstimateShippingModel();
DiscountBox = new DiscountBoxModel();
GiftCardBox = new GiftCardBoxModel();
CheckoutAttributes = new List<CheckoutAttributeModel>();
OrderReviewData = new OrderReviewDataModel();
ButtonPaymentMethodActionNames = new List<string>();
ButtonPaymentMethodControllerNames = new List<string>();
ButtonPaymentMethodRouteValues = new List<RouteValueDictionary>();
ProductIds = new List<int>();
}
public List<int> ProductIds { get; set; }
foreach (var item in model.Items)
{
model.ProductIds.Add(item.ProductId);
}
public ShoppingCartModel()
{
Items = new List<ShoppingCartItemModel>();
Warnings = new List<string>();
EstimateShipping = new EstimateShippingModel();
DiscountBox = new DiscountBoxModel();
GiftCardBox = new GiftCardBoxModel();
CheckoutAttributes = new List<CheckoutAttributeModel>();
OrderReviewData = new OrderReviewDataModel();
ButtonPaymentMethodActionNames = new List<string>();
ButtonPaymentMethodControllerNames = new List<string>();
ButtonPaymentMethodRouteValues = new List<RouteValueDictionary>();
ProductIds = new List<int>();
}
public List<int> ProductIds { get; set; }
foreach (var item in model.Items)
{
model.ProductIds.Add(item.ProductId);
}
public ShoppingCartModel()
{
Items = new List<ShoppingCartItemModel>();
Warnings = new List<string>();
EstimateShipping = new EstimateShippingModel();
DiscountBox = new DiscountBoxModel();
GiftCardBox = new GiftCardBoxModel();
CheckoutAttributes = new List<CheckoutAttributeModel>();
OrderReviewData = new OrderReviewDataModel();
ButtonPaymentMethodActionNames = new List<string>();
ButtonPaymentMethodControllerNames = new List<string>();
ButtonPaymentMethodRouteValues = new List<RouteValueDictionary>();
ProductIds = new List<int>();
}
public List<int> ProductIds { get; set; }
foreach (var item in model.Items)
{
model.ProductIds.Add(item.ProductId);
}
public ShoppingCartModel()
{
Items = new List<ShoppingCartItemModel>();
Warnings = new List<string>();
EstimateShipping = new EstimateShippingModel();
DiscountBox = new DiscountBoxModel();
GiftCardBox = new GiftCardBoxModel();
CheckoutAttributes = new List<CheckoutAttributeModel>();
OrderReviewData = new OrderReviewDataModel();
ButtonPaymentMethodActionNames = new List<string>();
ButtonPaymentMethodControllerNames = new List<string>();
ButtonPaymentMethodRouteValues = new List<RouteValueDictionary>();
ProductIds = new List<int>();
}
public List<int> ProductIds { get; set; }
foreach (var item in model.Items)
{
model.ProductIds.Add(item.ProductId);
}