Skip to content
  • Hot
  • Top
  • New
2
votes

You have ... votes left in this category for this week!

approved

Woocommerce: Ajax Categories Meta-Box in Admin

alias3729 shared this feature

February 13, 2018

For Woocommerce stores with many products and many categories, the add/edit product page takes a long time to load. For shops that deal with automotive products, the number of categories can get really big really quickly. For example, Year > Make > Model. For each year, there can be many makes, then for each make, there can be many models, and for each model, there can be many products in that model.

To speed up the load time of the product add/edit page, I’m proposing an override to the default category selector meta box. Instead of listing all the categories with nested UL of check-boxes, the box should ONLY query the top-level category and list those. When a user checks that box, it should query and load via Ajax ONLY the categories that are a direct descendant of the checked category, etc. until it gets to the bottom level. Then it saves the item in the checked categories. Does this make sense?

1 Comment

  1. Dave H.
    August 30, 2019 @ 1:50 pm

    There is an option to disable the category box in wp-admin, but your feature request still makes sense – it would be better to keep the functionality and only load it when a user clicks the box.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *