Simple but working solution (if some code is changed)
-
The JS is not loaded when using the newest wordpress and woocommerce version.
Had to change the follwing code, afterwards it does what advertisedadd_action('admin_enqueue_scripts', function() {
//Check if the current page is the WooCommerce "Add New Order" page
if (is_admin()
&& isset($_GET['page'], $_GET['action'])
&& $_GET['page'] === 'wc-orders'
&& $_GET['action'] === 'new'
&& ($_GET['post_type'] ?? 'shop_order') === 'shop_order'
) {
- You must be logged in to reply to this review.