Preferred shipping method for a product
Hi all,
I was wondering if it is possible to set a preferred (specific?!) shipping method per product? One of our customers offers a variety of products, which include some books (shippingcosts based on weight) and some boardgames (shippingcosts are fixed because of productsize).
At the moment a visitor who orders a copy of a boardgame will be presented with two different shippingmethods when in checkout; the weight-based method and the fixed-price method. Obviously a visitor will select the weight-based method, since it's cheaper than the fixed price. What should I do in this case?
Thanks already for reading this thread. I'm looking forward to any possible solution!
Regards,
Menno
Hey Menno,
private void GetShippingOptions() var availableShippingMethods = new List<IShippingResponse>(); foreach (var shippingCarrier in Config.Get<ShippingConfig>().ShippingCarrierProviders.Values.Where(x => x.IsActive)) var carrierProvider = this.ShippingManager.GetShippingCarrierProvider(shippingCarrier.Name); ShippingResponseContext shippingContext = carrierProvider.GetServiceRates(this.GenerateShippingRequest()); if (shippingContext.ShippingResponses != null) availableShippingMethods.AddRange(shippingContext.ShippingResponses); availableShippingMethods = availableShippingMethods.OrderBy(x => x.SortOrder).ToList(); shippingMethodsList.DataSource = availableShippingMethods; shippingMethodsList.DataBind();