/// <summary>
 /// Constructor called to create the purchased product off of the shopping cart product
 /// </summary>
 /// <param name="shopCartProd"></param>
 public PurchasedProduct(string shippingMethodName, ShoppingCartProduct shopCartProd) : this()
 {
     Id            = shopCartProd.Id;
     Name          = shopCartProd.Name;
     MainImagePath = shopCartProd.MainImagePath;
     Quantity      = shopCartProd.Quantity;
     PurchasePrice = shopCartProd.GetRealItemPrice();
     ShippingPrice = shopCartProd.GetRealShippingCost(shippingMethodName);
     SelectedCheckoutProperties = shopCartProd.SelectedCheckoutProperties;
 }
Example #2
0
 /// <summary>
 /// Constructor called to create the purchased product off of the shopping cart product
 /// </summary>
 /// <param name="shopCartProd"></param>
 public PurchasedProduct(string shippingMethodName, ShoppingCartProduct shopCartProd)
     : this()
 {
     Id = shopCartProd.Id;
     Name = shopCartProd.Name;
     MainImagePath = shopCartProd.MainImagePath;
     Quantity = shopCartProd.Quantity;
     PurchasePrice = shopCartProd.GetRealItemPrice();
     ShippingPrice = shopCartProd.GetRealShippingCost(shippingMethodName);
     SelectedCheckoutProperties = shopCartProd.SelectedCheckoutProperties;
 }