Passing model to a widget in a zone AdminWidgetZones.OrderShipmentAddButtons

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
Hi, all.
To conveniently extend the functionality of adding shipment, it would be nice to add model transfer to a widget in a zone AdminWidgetZones.OrderShipmentAddButtons.

In Nop.Web\Areas\Admin\Views\Order\AddShipment.cshtml
Change
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.OrderShipmentAddButtons })

to
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.OrderShipmentAddButtons, additionalData = Model })
3 года назад
Thanks for the suggestion. Here is a work item for this.
2 года назад
Done. Please see this commit.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.