WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Show only top level product category on home page (30 posts)

  1. nhat.kd
    Member
    Posted 1 year ago #

    HI,

    Im using CAMP theme with wooCommerce plugin.

    At my frontpage ive pasted this copy:
    [product_categories number="12" parent="0"]

    but still, my homepage is showing all of my other categories including suc cats etc.

    What should I do so that my homepage only list me MAIN/TOP categories?
    (excluding other/specific category)

    E.g:

    MAin cat: "Horses" - "Rider" - "Accessories" etc.
    SUB cat: "food" - "clothes" - "helmet"
    Product "foodproduct1" - "jacket" "etc"

    Thanks in advance

    http://wordpress.org/extend/plugins/woocommerce/

  2. samueljeden
    Member
    Posted 1 year ago #

    Change these settings in woocommerce settings also in the catalog tab

    Show subcategories

    Show subcategories on category pages
    Show subcategories on the shop page
    When showing subcategories, hide products

    These should be the correct way that you want them..

    i have all these ticked. and mine show main cat -> subcat -> product :)

  3. nhat.kd
    Member
    Posted 1 year ago #

    Hi,

    Thanks for the fast reply.

    I did that already, but with no luck...

    Ive also ticked all but still, my frontpage is showing all main and sub cats even products...

  4. nhat.kd
    Member
    Posted 1 year ago #

    where in woocommerce settingsdo i also need to setup before showing only main category?

  5. samueljeden
    Member
    Posted 1 year ago #

    Do you have a link to your developement? is the homepage set as the shop? or is your homepage set as something different?

  6. nhat.kd
    Member
    Posted 1 year ago #

  7. nhat.kd
    Member
    Posted 1 year ago #

    ill try setup my homepage as "shop"... hoping thatwill do the trick

  8. nhat.kd
    Member
    Posted 1 year ago #

    that didnt help :(

  9. samueljeden
    Member
    Posted 1 year ago #

    hmm, i see that. let me take a look at the shortcode one moment..

    try changing the parent to ""and not "0", create a guest account with admin and i can take a look at the issue and try and rectify.

  10. nhat.kd
    Member
    Posted 1 year ago #

    my categories looks like this:

    (main/top cat)Rytter
    (sub)-Tøj
    (sub) -sikkerhed
    (sub) -etc.

    (main/top) Hest
    - Fodder
    - Sikkerhed

    And then i want to add products to the sub categories...

    Is this theright way to setup categories and products?

  11. nhat.kd
    Member
    Posted 1 year ago #

    whats ur email? so i can forward the password...

  12. samueljeden
    Member
    Posted 1 year ago #

    Hi,

    my email is sam.eden@sky.com

    I have my products setup like that but i am not using the shortcode to output on the homepage as i have my shop page setup differently,

    My products output like this

    (main/top) Alternators
    (sub)BMW
    (product) M3 Alternator
    (product) etc.
    (sub)Mercedes
    (sub) -etc.

    (main/top) Starter Motors
    (sub) BMW
    (sub) Mercedes
    (product) C Class AMG Starter
    (product) etc.

    That is how i have mine setup, and only the top level displays, then the sub category etc etc.

    But i only access mine through the shop page.

  13. nhat.kd
    Member
    Posted 1 year ago #

    ok so you dont have any products/category on your homepage? could i see your site?

  14. nhat.kd
    Member
    Posted 1 year ago #

    ive just forwarded login detail for you...

    hoping you are my savior :)

  15. samueljeden
    Member
    Posted 1 year ago #

    Hi,

    i have not received your email, once i have i will email you back with details of my site.

    :)

  16. samueljeden
    Member
    Posted 1 year ago #

    oh, got it, in my spam folder :)

  17. nhat.kd
    Member
    Posted 1 year ago #

    :)

  18. samueljeden
    Member
    Posted 1 year ago #

    i think there is a bug in the shortcode, on my site, i have created a page with the shortcode too and it doesnt work as expected!

    let me raise an issue with the developers

  19. nhat.kd
    Member
    Posted 1 year ago #

    ok.

    thanks for your time though....

    You know how to exclude categories from the shop page?

    E.G "featured"
    i dont want that showing up on my shop page

  20. samueljeden
    Member
    Posted 1 year ago #

    Im still looking into this for you anyway, ive raised it with the developers, but from looking at the shortcode, version 1.6.6 doesnt have the parent option available.

    as for exluding the featured category, you would need to do this on a page, as you cant exclude certain categories in the default looop.

    so what you do for this is, you set the product as featured in the quick edit screen, there is a tick box for featured

    and use the following shortcode

    [featured_products per_page="12" columns="4"]

  21. nhat.kd
    Member
    Posted 1 year ago #

    ok thanks for your help and for your time...

    im gettind kinda tired of this plugin as I have used a week on different forums on how to solve this, but still its a huge issue for me.

  22. samueljeden
    Member
    Posted 1 year ago #

    ive just revised my post above, check that..

    i love this plugin it is just about getting to know it...

    what is your email address and i will forward you mine to see :)

  23. nhat.kd
    Member
    Posted 1 year ago #

  24. Zee Cornelius
    Member
    Posted 1 year ago #

    Hi, I hope I'm not intruding. I am trying to do the same for my shop.
    I have added the shortcode:

    [products ids="27,31"]

    However, at the bottom all products including the child products are showing again.
    Am I missing something out from the shortcode?

    My working page: kedaichetak.com/shop

    Thank you in advance for the help!

  25. Zee Cornelius
    Member
    Posted 1 year ago #

    Sorry, I've figured this out. each product I don't want seen is set to "hidden".

  26. artbyjacqui@gmail.com
    Member
    Posted 1 year ago #

    I found this as a solution

    [product_categories number="12" parent="0"]

    Set the parent paramater to 0 to only display top level categories.

    I needed only the parent categories to show on my homepage - or wherever you use that shortcode.

  27. wpprofessionalboys
    Member
    Posted 9 months ago #

  28. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    @wpprofessionalboys - looks like you're new here, so please review the forum rules regarding links to your site -

    http://codex.wordpress.org/Forum_Welcome#Helping_Out

  29. fyfashion
    Member
    Posted 9 months ago #

    [product_categories number="12" parent="0"]

    I want to show sub categories only, but when I apply above code it shows only parent category, is there any way to show sub category ?

    For example I have categories structure like this

    Women > Tops
    Women > Dresses

    how I can show only tops categroy on page WITHOUT showing women category ?

    Please show some light

  30. wpprofessionalboys
    Member
    Posted 9 months ago #

    @WPyogi
    Sorry sir,
    Really I don't know about This rule.
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic