JavaScript is not loaded on WooCommerce Order edit page
-
Hi,
I have an issue with the Deposit Details metabox on the WooCommerce order edit page.
The metabox itself is displayed correctly, but its JavaScript functionality does not work.
I checked
admin/class-apd-admin.phpand found thatapd-admin.jsis only enqueued on the plugin’s own admin page and on the product edit screen on line 36:if ( 'toplevel_page_apd-deposits' === $hook ) {
...There is no enqueue for the WooCommerce Order edit screen, where the
Deposit Detailsmetabox is actually displayed.As a result, the HTML is present, but
apd-admin.jsis not loaded on that page, so the functionality associated with the metabox does not work.Could you please fix this?
Thanks.
You must be logged in to reply to this topic.