Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Product categories not showing up in menu creator WordPress

  • SOLVED

Hi,

I'm having the exact same problem as the person on this question: http://wpquestions.com/question/show/id/7572

Basicly I'm importing about 4000 products in a Woocommerce store, products get placed in categories like this:

Apple
- Cases
- iPhone 4
-- Cases
- iPhone 4s
-- Cases
Manufactures
- Belkin

This is one product getting placed in 8 categories already, because of the limited budget and automated datafeed provided by our supplier it's currently not possible to do this anyway else.

When I try to make my menu and want to add the categories my list is all wrong.

I have two screenshots here that are in Dutch but should show the problem:

My product categories: http://oi44.tinypic.com/wu0w9x.jpg
My menu creator: http://oi44.tinypic.com/316nqt1.jpg

Anyone knows what wrong here?

Answers (4)

2013-11-13

Sébastien | French WordpressDesigner answers:

please active the debug (wp-config), if the problem comes from max_input_vars, there will be a warning

if you have an access to php.ini, change the value of max_input_vars or create max_input_vars in php.ini like that :
max_input_vars = 10000


or
in your file htaccess, add this line :
php_value max_input_vars 10000


m19 comments:

Hi, I get no warnings with debug on, also checked with Blackbox debug bar.

Adding the max_input_vars on top of my .htaccess also didn't help.


Sébastien | French WordpressDesigner comments:

Go to menus, top right screen options pull the tab down. Check the box for product categories....Now you have access to put product categories in your menu...is that simple...

-> categories are showing but not in the right order

to modify this problem use this plugin http://wordpress.org/plugins/category-checklist-expander/


m19 comments:

That plugin does work when I want to add a new product, it doesn't work on the menu creator page /wp-admin/nav-menus.php


m19 comments:

I've added another screenshot as attachment to my original post to show the problem again.


m19 comments:

Hi,

Your plugin did gave me an inspiration and I've added a hack to my functions.php

add_filter( 'get_terms_args', 'checklist_args', 10, 2 );
function checklist_args( $args, $taxonomies )
{
$menu_taxonomies = array('product_cat', 'page', 'category','post');
if(in_array($taxonomies[0], $menu_taxonomies))
{
$args['number'] = 1000;
}
return $args;
}

Now I've got all the categories in the right order. Thank you!!


Sébastien | French WordpressDesigner comments:

you're welcome !! :-)


m19 comments:

How can I choose the right answer for the prize money? :)


Sébastien | French WordpressDesigner comments:

[[LINK href="http://blog.tailormadeanswers.com/2011/04/22/voting-assign-prize-money/"]]http://blog.tailormadeanswers.com/2011/04/22/voting-assign-prize-money/[[/LINK]]


Sébastien | French WordpressDesigner comments:

You can vote all the money to one answer, or you can vote to divide the prize.
But if you want vote only for me, i am happy :-)

2013-11-13

Balanean Corneliu answers:

You need to arange this categories and subcategories? You can make this with drag and drop.
Try this plugin i like it for this job :
http://10up.com/plugins/simple-page-ordering-wordpress/


m19 comments:

No, I want to create a menu using my product categories, but the menu creator doesn't show all the categories.


Balanean Corneliu comments:

Go to menus, top right screen options pull the tab down. Check the box for product categories....Now you have access to put product categories in your menu...is that simple...
You have made this first? and on that list you dont see all the categories or ?


m19 comments:

Yes I did this, not all categories are showing, well they are showing but not in the right order.

imagine I have 100 different phones, each phone is a category and each phone has a cases subcategory.
Instead of:

Apple
- iPhone 4
-- Cases
Samsung
- S3
-- Cases
- S4
-- Cases
- S4 mini
-- Cases

I get:

Apple
Samsung
iPhone
S3
S4
S4 mini
Cases
Cases
Cases
Cases

2013-11-13

zebra webdesigns answers:

Hello m19

Can you please create another menu area and see whether you get the category menu over there.
If possible can you send me the login details so that I can have a look at the actual problem.

In most cases the problem is the maximum input variable. which is by default limited to 1000.

If thats the case then you can ask your hosting provider to increase the limit

You can mail me at [email protected]
skype ID: zebrawebdesigns

2013-11-13

Just Me answers:

The limit could be the problem. You can try to do the import again but with smaller batches.
You can contact me through my profile if you are willing to give access to wp-admin (mag ook in het Nederlands).