for anyone still having trouble or reading this thread for advice...
The way I got around this was simple...
I had one payment method, which I set as "checked" in the aspx file... then copied the C# instructions from btn_click and put them at the bottom of page_load...
This essentially means the box is automatically selected, and the button's click instructions are executed on page load...
Did the same for the payment info page... put the btn_click code under page_load
Here's a real clean way to disable the shipping address altogether. However, be aware that I haven't tested it through credit card processing. To tell you the truth, I'm not really sure it should make a difference at all. To my understanding, the credit card processor is interested more in the billing address. After all, we can use any ship to address when we buy online...
Find Line 367 in the Shipping Manager (NopCommerce, Nop.BusinessLogic, Shipping, Shipping Manager for Version 1.8) and comment out the following lines...
public static bool ShoppingCartRequiresShipping(ShoppingCart cart) {
//PCTech Mod //foreach (var shoppingCartItem in cart) // if (shoppingCartItem.IsShipEnabled) // return true;
return false; }
This makes it so that no items require shipping at all, which is great for those who do electronic delivery, subscriptions (for the membership sites...you get the picture.
Once I'm ready to test, I'll post again and let you all know how it goes. If anyone beats me to it, I would love to hear how it goes...
I also needed some changes to payment steps. I amended it to be only three steps: 1)Cart 2)Confirm 3)Complete. So, what I did. I have amended the Presentation/Nop.Web/Controllers/CheckoutController.cs and Presentation/Nop.Web/Views/Checkout/CheckoutProgress.cshtml, I skip billing address, shipping address and payment steps and set them to default values(payment method 'Cash On Delivery' should be active). Unfortunately, I could not attach file to this topic, so ask me on [email protected], I'll send to files or see short code snap below. Then you can take experiment and replace files and rebuild solution.(Attention do backup before make changes!!!) Amendments in CheckoutProgress.cshtml (just comment added):
*Goldcoding - That was exactly what I've been trying to do for the last few hours. So glad you figured it out and posted a sample for it. I really appreciated it.
hi, i am new in entity framework and i customize nopcommerce project for travel domain but i am facing lots of problem can you help me how to follow nopcommerce structure in correct way.
hi, i am new in entity framework and i customize nopcommerce project for travel domain but i am facing lots of problem can you help me how to follow nopcommerce structure in correct way.