set shippingmethod

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 anos atrás
I am trying to skip the shippingmethod step by setting a default shippingmethod by putting this code in ShippingMethod.cshtml

@model CheckoutShippingMethodModel
@using Nop.Web.Models.Checkout;

@{
Model.ShippingMethods = shippingOptions[0];
Response.redirect("~/Checkout/PaymentMethod");}

It doesnt work and I am greatful for input on how to resolve my problem
8 anos atrás
nopCommerce can skip the shipping method selection if only one - setting:
shippingsettings.bypassshippingmethodselectionifonlyone
8 anos atrás
Thank you for replying. I tried this before but didnt succed in setting up the restrictions. Now it works.
Best regards!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.