Dynamicweb.eCommerce.Orders Namespace > OrderLineCollection Class : UpdateBOMOrderLine Method |
'Declaration
Public Sub UpdateBOMOrderLine( _ ByVal _OrderLine As OrderLine _ )
public void UpdateBOMOrderLine( OrderLine _OrderLine )
internal static void UpdateOrderLine (int quantity, string orderLineID) { OrderLine line = new OrderLine(orderLineID); Order EcomCart = Common.Context.Cart(); EcomCart.IsCart = true; line.Modified = DateTime.Now; line.Order = EcomCart; if (quantity > 0) { line.Quantity = quantity; EcomCart.OrderLines.UpdateBOMOrderLine(line); } line.ID = ""; SaveCart(); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2