Admin Orders List Module Options -> Default
-
I love the way we can now filter orders by multiple status.
However, I would like to be able to set a default view, when I go to orders 🙂Second, it would be nice to have some sort of presets instead of seeing all status.
Like preset: Open Orders = In Progress, Failed, Awaiting Payment
Like preset: Unpaid = Awaiting Payment, Sent but awaiting payment (custom status)If you could take a look at this, I would be a very happy camper!
The page I need help with: [log in to see the link]
-
Hi @darkallman,
Thanks for the ideas.
Presets shouldn’t be too hard to add (it’s similar to “Not completed” preset, that we’ve already added, but I will add an option to create presets manually). Will reply to you as soon as possible, when it’s done.
As for the default view – this may be more complicated, not sure if I will be able to override the default Orders link properly. I understand that this is not the best solution, but you can create link, and add it to your browser’s bookmarks. For example to filter processing and on-hold orders, you can use Booster’s
wcj_admin_filter_statusesparam, e.g.:http://yoursite.com/wp-admin/edit.php?post_type=shop_order&filter_action=Filter&wcj_admin_filter_statuses[0]=wc-processing&wcj_admin_filter_statuses[1]=wc-on-holdHope that helps.
P.S. If you like Booster, please leave us a rating.
Best regards,
TomThe URL you give as an example exists and has malware. Please change it.
I have managed to realize this myself 😊
It’s not really hard to implement:
add_action( 'admin_menu', 'woocommerce_menu_add_open_orders' ); function woocommerce_menu_add_open_orders() { // REMOVE ORIGINAL ORDERS LINK remove_submenu_page( 'woocommerce', 'edit.php?post_type=shop_order' ); // REMOVE COUPON LINK, TO GET NEW ORDERS LINK ON TOP remove_submenu_page( 'woocommerce', 'edit.php?post_type=shop_coupon' ); // ADD NEW ORDERS LINK add_submenu_page('woocommerce', 'Open Orders', 'Open Orders', 'edit_posts', 'edit.php?s&post_status=all&post_type=shop_order&action=-1&m=0&_customer_user&wcj_admin_filter_statuses%5B0%5D=wc-processing&wcj_admin_filter_statuses%5B1%5D=wc-on-hold&wcj_admin_filter_statuses%5B2%5D=wc-processing-inv&wcj_admin_filter_statuses%5B3%5D=wc-send-invoice-1&filter_action=Filter&paged=1&action2=-1'); // ADD COUPONS AGAIN add_submenu_page( 'woocommerce', 'Coupons', 'Coupons', 'edit_posts', 'edit.php?post_type=shop_coupon' ); }Maybe this will give you an idea how to implement it in your plugin 😊
Hi Tom,
I’m not Booster Plus User at the moment. We have aquired a lot of plugins lately and I need to limit the amount of funds I put in plugins.
Will test the dev version asap and get back to you.This does look great! However, the newly added menu items are now placed under some other menu items. I think you need to add them with priority 10.
Second, I would like to have the presets available in the order overview as a dropdown 🙂
Also, would it be possible to get the counter behind the order in the menu, like original?
-
This reply was modified 8 years ago by
darkallman.
— added to comment above —
-
This reply was modified 8 years ago by
darkallman.
— added to comment above —
-
This reply was modified 8 years ago by
darkallman.
Hi @darkallman,
1. “… the newly added menu items are now placed under some other menu items. I think you need to add them with priority 10…” – not sure I understood it correctly – which other items? On my server it’s added right after original “Orders” menu (if it’s not removed), right above the Coupons menu. And I add it without setting priority, so it should be 10 by default:
add_action( 'admin_menu', array( $this, 'admin_menu_multiple_status' ) );2. “… presets available in the order overview as a dropdown …” – not done yet, but will be adding this.
3. Counter – please re-download the development version (https://booster.io/dev/). Now in module’s settings (“WooCommerce > Settings > Booster > Shipping & Orders > Admin Orders List”) there is new “Add order counter” checkbox (in presets subsection). This will add the counter, however by default it has ~orange color (same as Plugins menu counter), so if you want to change it, you need to add some custom CSS (e.g. to “WooCommerce > Settings > Booster > Emails & Misc. > Custom CSS > Custom CSS – Back end (Admin)”). This will make it same color as WooCommerce processing orders counter (~blue):
.wcj-order-count-wrapper { background-color: #00b9eb !important; }Please let me know if you have any feedback.
Best regards,
TomThis looks great 🙂 Thx.
I have 2 plugins that are placed above Open Orders (preset)
ScreenshotWhen I hide the default woocommerce filter, I am no longer able to see the recyclebin. Can you add it to the booster filter options?
Hi @darkallman,
Could you explain in more detail how did you hide the woocommerce filter, which recycle bin is missing and if the issue is related to the one above. Thank you.
-
This reply was modified 7 years, 11 months ago by
Jan Dembowski.
Booster Settings -> Admin Order List -> Hide Default Statuses Menu
This hides the deafult status menu, including the Reclyclebin for orders.
I would like to hide the status menu, but still be able to go into my recyclebin! -
This reply was modified 8 years ago by
The topic ‘Admin Orders List Module Options -> Default’ is closed to new replies.