I have been using VWD, however I got advise from this forums, that once you have amended the code (source version) you need to recompile the application using Visual studio. VWD does not support the 'publish' feature to recompile the application , however you can download a 90 day free trial of visual studio 2010 from the MS website,.
My scenario was a little different, but here is how I solved it.
Problem: Some products are for $0. This means that it is possible to complete the checkout process with a $0 shopping cart. I needed a way to prompt for payment only if the shopping cart subtotal was greater than zero.
Solution:
Check the subtotal of the cart. If it is zero, then create a mock placeholder for the payment info and store it into the session needed by the confirm page. NOTE: My PaymentMethodID is 9 by default which is CreditCard. You may choose any valid PaymentMethodID. The ID can be found in the Admin Tool by hovering over the "Edit" link of your payment methods.
Cart = ShoppingCartManager.GetCurrentShoppingCart(ShoppingCartTypeEnum.ShoppingCart); if (Cart.Count == 0) Response.Redirect("~/ShoppingCart.aspx");
// ADDITION If the shopping cart sum is 0, then skip the payment info page and go straight to confirm. if (ShoppingCartManager.GetShoppingCartSubTotal(Cart, NopContext.Current.User) == 0) { // Create the payment info object and store in the session needed by the confirm page PaymentInfo pInfo = new PaymentInfo(); pInfo.PaymentMethodID = 9; this.Session["OrderPaymentInfo"] = pInfo; Response.Redirect("~/CheckoutConfirm.aspx"); // Skips the Payment screen } // END ADDITION