The eCommerce Edit Order page has a dashboard menu plugin slot. Slots are the placeholders in the UI for plugins. The slot ID is the value for the required extends
field when configuring the plugin in the App Dashboard.
Sales > Orders > Order > More Actions > Edit Order
To test your plugin on a site, do the following:
The eCommerce Edit Order page features a dashboard menu plugin slot.
This dashboard menu plugin slot is located on the right side of the page, in the Order summary card.
Add a menu plugin that enables site owners to manage custom fees for orders. By integrating with this plugin, your app can provide merchants with the ability to add or remove order fees according to your custom logic and functionality.
Use the following slot ID for the extends
property in your dashboard plugin's configuration in your app's dashboard:
slot ID: 057f1726-f0b3-40ef-8903-1bd104e18369
For example:
Important: The hosting platform must be "BUSINESS_MANAGER".
Apps built by Wix pass parameters via dashboard slots for you to utilize in your plugin's functionality. Learn how to interact with and retrieve parameters from the dashboard page.
This slot passes the following parameters:
Name | Type | Description |
---|---|---|
draftOrderId | String | ID of the order that is being edited. |
onDraftOrderUpdate() | ()=>Promise<void> | Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete. |
This plugin slot can host multiple plugins.
The plugins are displayed vertically and ordered by date created, with the most recently created plugin displayed at the bottom.
Slot | ID | Parameters |
---|---|---|
Edit Order page | 057f1726-f0b3-40ef-8903-1bd104e18369 | draftOrderId , onDraftOrderUpdate |