Site logo

[Support request] Category Woocommerce

Home Forums Support [Support request] Category Woocommerce

Home Forums Support Category Woocommerce

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1792283
    M.schreijer@gmail.com

    Hello,
    Ik got on mine site woocommerce sub category.
    But the sub category are in de main category.
    i got the category ”bab’y” and there under i want ”jongen” ”meisje”
    but the sub are standing in the main catory also

    http://www.marktstore.nl/index.php/product-categorie/baby/

    #1792436
    David
    Staff
    Customer Support

    Hi there,

    did you resolve the issue – as this is what i see

    https://www.screencast.com/t/hcsZDJTrZb

    #1792447
    M.schreijer@gmail.com

    Thank you.
    No. above is the sub category as well ” Meisje ” & ” Jongen ” has to get out of there.
    under category baby it is fine

    #1792468
    David
    Staff
    Customer Support

    Just to confirm do you want to only show Parent Categories in the menu ? And does this apply to other pages like the Shop Page?

    #1792487
    M.schreijer@gmail.com

    Yes i want only the main category on the shop page. not the sub.

    Schermopname (31).png

    #1792489
    M.schreijer@gmail.com

    Schermopname (34)_LI.jpg

    #1792497
    David
    Staff
    Customer Support

    Go to Dashboard > Appearance > Elements.
    Edit the element titled: Woocommerce Shop Category Menu
    Look for this part of the code:

    <?php
    $cat_args = array(
    	'orderby'    => 'name',
    	'order'      => 'asc',
    	'hide_empty' => true,
    );

    And change it to:

    <?php
    $cat_args = array(
    	'orderby'    => 'name',
    	'order'      => 'asc',
    	'hide_empty' => true,
    	'parent' => 0,
    );

    The change is just adding the 'parent' => 0, argument

    #1792501
    M.schreijer@gmail.com

    Yes!!!!1!! THANK YOU!!!!!!!!!
    you are a Hero.

    one more little question. How can you change the order of category?
    Schermopname (31).png
    I have here to drag it up and down.
    but that didn’t work

    #1792505
    David
    Staff
    Customer Support

    In the code above change:

    'orderby' => 'name',

    to:

    'orderby' => 'menu_order',

    It should use the Order you have set in the category list

    #1792520
    M.schreijer@gmail.com

    Thanks again!!!!

    #1792536
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.