Dynamicweb.eCommerce.Orders Namespace > OrderLineCollection Class : UpdateQuantity Method |
'Declaration
Public Sub UpdateQuantity( _ ByVal _OrderLine As OrderLine _ )
public void UpdateQuantity( 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.UpdateQuantity(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