AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Shipping Methods when cresting order as Admin
Rank: Newbie
Groups: Developers
Joined: 4/24/2019(UTC) Posts: 7
|
When using the Admin interface to create an order, I expected Admins to be able to see and use shipping methods that are only available to Admins, but the drop down seems to be populated with only the methods available to the customer.
We have scenarios where we would be able to complete an order for a customer, sometimes using a shipping method that is not generally available at checkout (such as store pickup, or a special courier) but should be available to Admins.
Is this possible, or is the behavior where the shipping methods are constrained by the customer on the order the only possibility without custom code?
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 487
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
Hi, The shipping methods assigned to admins should appear. It is a bug and I will report it. In the meantime, this might help - If you place the order and use the Defer Payment option, then view the order and go to the Shipments tab. Use the Change Method button. Now you will see all the methods available. The ones that are for admin only will be prefixed with ** Here is the code in the view _ChangeShipmethod page: Quote: <div class="form-group"> <label>New Method </label> @Html.DropDownListFor(model => model.NewShipMethodId, (IEnumerable<SelectListItem>)ViewBag.ShipMethodList, new { @class = "form-control" }) @if (ViewBag.HiddenMethodsAvailable == true) { <span class="text-info">** Unavailable to customer at checkout.</span> } </div> I'm not a developer, so I can't tell you much more. Hopefully it will get you give you a hint on how to change it. |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
Rank: Newbie
Groups: Developers
Joined: 4/24/2019(UTC) Posts: 7
|
Thank you- I'll see if that flies with management as a workaround.
For your bug report, in the Orders controller, there's a public proc that returns a select list that's used in the drop down. The relevant line is: ICollection<ShipRateQuote> rateQuotes = AbleContext.Resolve<IShipRateQuoteCalculator>().QuoteForShipment(shipment);
So the issue seems to be coming from the default implementation of the IShipRateQuoteCalculator interface, which it looks like is in the CommerceBuilder DLL, so not part of the source code project.
|
|
|
|
Rank: Newbie
Groups: Developers
Joined: 4/24/2019(UTC) Posts: 7
|
Update- I did the following workaround:
In the Orders controller, I created a new private proc called GetShipmentQuotesForBasket that takes a BasketShipment as a parameter, and I had it return a SelectList, which is what the calling proc GetOrderOptions wants. I pasted in the code from GetShipmentQuotes, another proc in the same controller.
I substituted GetShipmentQuotesForBasket for GetShipmentSelectList in the calling proc, and voila, I get all shipping options on the create order tab, including the indication whether they're available to the customer or not.
As a side note, GetShipmentQuotes goes directly to the shipping method repo, where GetShipmentSelectList uses the QuoteForShipment procedure on the IShipRateCalculator interface. Kinda looks like different coders, or at least different working rules in the same controller.
In any event, thanks for the heads up on where to look.
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 487
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
Thank you for the update!
|
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Shipping Methods when cresting order as Admin
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close