Support » Plugin: WooCommerce » Subcategories not displaying

  • Resolved cswilsn2k

    (@cswilsn2k)


    Hello Everyone, I had a problem with subcategories not displaying a while back, I’m having the issue again and the same procedure to fix it is not helping:

    See: [ removed and put into correct field ]

    The subcategories are not displayed in any of the parents.

    I have set the “display type” to subcategories but in the customizer and in the product category setting itself, which fixed this issue last time.

    Any suggestions/help would be greatly appreciated!

    Best Regards,

    Chris W.

    System Report:

    
    ### WordPress Environment ###
    
    Home URL: https://www.netexconsult.com
    Site URL: https://www.netexconsult.com
    WC Version: 3.3.4
    Log Directory Writable: ✔
    WP Version: 4.9.4
    WP Multisite: –
    WP Memory Limit: ❌ 40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.29 (Unix) OpenSSL/1.0.1e-fips
    PHP Version: 5.6.30
    PHP Post Max Size: 128 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.28.4
    
    SUHOSIN Installed: –
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.3.4
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 127.27MB
    Database Data Size: 61.20MB
    Database Index Size: 66.07MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB
    wp_booking: Data: 0.02MB + Index: 0.00MB
    wp_bookingdates: Data: 0.02MB + Index: 0.00MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.02MB + Index: 0.09MB
    wp_cpf_custom_products: Data: 0.02MB + Index: 0.02MB
    wp_cp_feeds: Data: 0.02MB + Index: 0.00MB
    wp_fme_rfq: Data: 0.02MB + Index: 0.02MB
    wp_gde_profiles: Data: 0.00MB + Index: 0.00MB
    wp_gde_secure: Data: 0.00MB + Index: 0.00MB
    wp_imagify_files: Data: 0.02MB + Index: 0.08MB
    wp_imagify_folders: Data: 0.02MB + Index: 0.03MB
    wp_kbs_customermeta: Data: 0.02MB + Index: 0.03MB
    wp_kbs_customers: Data: 0.02MB + Index: 0.05MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_login_redirects: Data: 0.02MB + Index: 0.02MB
    wp_nf3_actions: Data: 0.02MB + Index: 0.00MB
    wp_nf3_action_meta: Data: 0.11MB + Index: 0.00MB
    wp_nf3_fields: Data: 0.02MB + Index: 0.00MB
    wp_nf3_field_meta: Data: 0.47MB + Index: 0.00MB
    wp_nf3_forms: Data: 0.02MB + Index: 0.00MB
    wp_nf3_form_meta: Data: 0.09MB + Index: 0.00MB
    wp_nf3_objects: Data: 0.02MB + Index: 0.00MB
    wp_nf3_object_meta: Data: 0.06MB + Index: 0.00MB
    wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB
    wp_options: Data: 3.48MB + Index: 0.13MB
    wp_pmxi_files: Data: 0.02MB + Index: 0.00MB
    wp_pmxi_history: Data: 0.02MB + Index: 0.00MB
    wp_pmxi_imports: Data: 0.02MB + Index: 0.00MB
    wp_pmxi_posts: Data: 0.02MB + Index: 0.00MB
    wp_pmxi_templates: Data: 0.02MB + Index: 0.00MB
    wp_postmeta: Data: 33.56MB + Index: 49.69MB
    wp_posts: Data: 10.52MB + Index: 7.06MB
    wp_redirection_404: Data: 1.02MB + Index: 1.66MB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB
    wp_redirection_items: Data: 0.02MB + Index: 0.08MB
    wp_redirection_logs: Data: 0.02MB + Index: 0.08MB
    wp_rm_fields: Data: 0.02MB + Index: 0.00MB
    wp_rm_forms: Data: 0.02MB + Index: 0.00MB
    wp_rm_front_users: Data: 0.02MB + Index: 0.00MB
    wp_rm_notes: Data: 0.02MB + Index: 0.00MB
    wp_rm_paypal_fields: Data: 0.02MB + Index: 0.00MB
    wp_rm_paypal_logs: Data: 0.02MB + Index: 0.00MB
    wp_rm_rules: Data: 0.02MB + Index: 0.00MB
    wp_rm_sent_mails: Data: 0.02MB + Index: 0.00MB
    wp_rm_sessions: Data: 0.22MB + Index: 0.00MB
    wp_rm_stats: Data: 0.05MB + Index: 0.00MB
    wp_rm_submissions: Data: 0.02MB + Index: 0.00MB
    wp_rm_submission_fields: Data: 0.02MB + Index: 0.00MB
    wp_rm_tasks: Data: 0.02MB + Index: 0.00MB
    wp_rm_task_exe_log: Data: 0.02MB + Index: 0.00MB
    wp_smconnector_failed_login: Data: 0.02MB + Index: 0.00MB
    wp_smconnector_session_keys: Data: 0.02MB + Index: 0.00MB
    wp_statistics_exclusions: Data: 0.02MB + Index: 0.03MB
    wp_statistics_historical: Data: 0.02MB + Index: 0.05MB
    wp_statistics_pages: Data: 0.38MB + Index: 1.03MB
    wp_statistics_search: Data: 0.05MB + Index: 0.05MB
    wp_statistics_useronline: Data: 0.02MB + Index: 0.00MB
    wp_statistics_visit: Data: 0.02MB + Index: 0.02MB
    wp_statistics_visitor: Data: 1.52MB + Index: 2.48MB
    wp_termmeta: Data: 0.09MB + Index: 0.13MB
    wp_terms: Data: 0.13MB + Index: 0.16MB
    wp_term_relationships: Data: 2.52MB + Index: 1.52MB
    wp_term_taxonomy: Data: 0.11MB + Index: 0.16MB
    wp_UPCP_Catalogues: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Catalogue_Items: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Categories: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Custom_Fields: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Fields_Meta: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Items: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Item_Images: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_SubCategories: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Tagged_Items: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Tags: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Tag_Groups: Data: 0.02MB + Index: 0.00MB
    wp_UPCP_Videos: Data: 0.02MB + Index: 0.00MB
    wp_usermeta: Data: 0.06MB + Index: 0.03MB
    wp_users: Data: 0.02MB + Index: 0.05MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB
    wp_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB
    wp_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB
    wp_wfBlocks: Data: 0.02MB + Index: 0.02MB
    wp_wfBlocks7: Data: 0.02MB + Index: 0.05MB
    wp_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB
    wp_wfConfig: Data: 1.52MB + Index: 0.00MB
    wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB
    wp_wfFileChanges: Data: 0.02MB + Index: 0.00MB
    wp_wfFileMods: Data: 0.13MB + Index: 0.00MB
    wp_wfHits: Data: 1.52MB + Index: 0.41MB
    wp_wfHoover: Data: 0.02MB + Index: 0.02MB
    wp_wfIssues: Data: 0.02MB + Index: 0.06MB
    wp_wfKnownFileList: Data: 1.52MB + Index: 0.00MB
    wp_wfLeechers: Data: 0.02MB + Index: 0.00MB
    wp_wfLockedOut: Data: 0.02MB + Index: 0.00MB
    wp_wfLocs: Data: 0.02MB + Index: 0.00MB
    wp_wfLogins: Data: 0.02MB + Index: 0.03MB
    wp_wfNet404s: Data: 0.02MB + Index: 0.02MB
    wp_wfNotifications: Data: 0.02MB + Index: 0.00MB
    wp_wfPendingIssues: Data: 0.02MB + Index: 0.06MB
    wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB
    wp_wfScanners: Data: 0.02MB + Index: 0.00MB
    wp_wfSNIPCache: Data: 0.02MB + Index: 0.05MB
    wp_wfStatus: Data: 0.13MB + Index: 0.09MB
    wp_wfThrottleLog: Data: 0.02MB + Index: 0.02MB
    wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB
    wp_woo_square_integration_deleted_data: Data: 0.02MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    attachment: 12529
    carousels: 1
    custom_css: 2
    customize_changeset: 2
    gfw_report: 15
    jetpack_migration: 2
    kbs_form: 1
    kbs_form_field: 5
    ml-slide: 5
    ml-slider: 1
    nav_menu_item: 33
    nf_sub: 20
    page: 55
    post: 1
    product: 12374
    product_tabpage: 1
    product_variation: 5
    schema: 2
    shop_order: 1
    shop_order_refund: 1
    wafs: 1
    wcps: 1
    woo_product_tab: 3
    woocarousel: 1
    wpsm_servicebox_r: 1
    yith_wcps_type: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (56) ###
    
    WP Hide & Security Enhancer: by Nsp Code – 1.4.8.2
    404page - your smart custom 404 error page: by Peter Raschendorfer – 4
    Advanced Database Cleaner: by Younes JFR. – 2.0.0
    All In One Schema Rich Snippets: by Brainstorm Force – 1.5.2
    All In One SEO Pack: by Michael Torbert – 2.4.6.1
    Blank Slate: by Aaron Reimann – 1.1.1
    Booking Calendar - Clockwork SMS: by Mediaburst – 1.1.3
    Booking Calendar: by wpdevelop
    oplugins – 8.1.2
    
    Carousel Slider: by Sayful Islam – 1.8.6
    Cloudflare: by John Wineman
    Furkan Yilmaz
    Junade Ali (Cloudflare Team) – 3.3.2
    
    RegistrationMagic: by Registrationmagic – 3.8.1.9
    Disable Comments: by Samir Shah – 1.7.1
    Fast Secure reCAPTCHA: by fastsecure – 1.0.20 – Not tested with the active version of WooCommerce
    FooBox Image Lightbox: by FooPlugins – 2.5.2
    Google Doc Embedder: by Kevin Davis
    Dan Lester – 2.6.4
    
    Complete Analytics Optimization Suite (CAOS): by Daan van den Bergh – 1.44
    If Menu: by Layered – 0.8.3
    Imagify: by WP Media – 1.7
    KB Support: by KB Support Team – 1.1.13
    LoginPress - Customizing the WordPress Login: by WPBrigade – 1.1.2
    Material Admin Theme: by chmln – 1.3.4
    Media Library Assistant: by David Lingren
    Fair Trade Judaica – 2.70
    
    MetaSlider: by Team Updraft – 3.7.2
    Multi-Carrier Shipping Plugin for WooCommerce Basic: by XAdapter – 1.2.9 – Not tested with the active version of WooCommerce
    My Custom Functions: by Arthur Gareginyan – 4.13
    Ninja Forms: by The WP Ninjas – 3.2.16
    PayPal for WooCommerce: by Angell EYE – 1.4.8.1
    Peter's Login Redirect: by Peter Keung – 2.9.1
    Product CSV Import Export (BASIC): by XAdapter – 1.4.3
    Redirection: by John Godley – 3.2
    Remove Query Strings From Static Resources: by Speed Up My Website
    Your WP Expert – 1.4
    
    Simple Custom CSS: by John Regan
    Danny Van Kooten – 4.0.1
    
    Page Builder by SiteOrigin: by SiteOrigin – 2.6.3
    SiteOrigin Premium: by SiteOrigin – 1.2.1
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.11.7
    Tawk.to Live Chat: by Tawkto – 0.3.4
    TinyMCE Advanced: by Andrew Ozz – 4.6.7
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 2.12.40.0
    
    WC Hide Categories On Shop Page: by WordPluginPress – 1.0 – Not tested with the active version of WooCommerce
    WooCommerce Product Feed Pro: by WebAppick – 2.2.8
    WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.2.0
    Widget Options: by Phpbits Creative Studio – 3.6
    Woo Related Products: by Vagelis P. – 3.3.0
    WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.3 – Not tested with the active version of WooCommerce
    WooCommerce Amazon Pay Gateway: by WooCommerce – 1.7.3 – 1.8.2 is available – Not tested with the active version of WooCommerce
    Booster for WooCommerce: by Algoritmika Ltd – 3.4.5
    WooCommerce Product Tabs: by Nilambar Sharma – 2.0.1
    WooCommerce Remove All Products: by Gabriel Reguly – 1.0.5 – Not tested with the active version of WooCommerce
    WooCommerce - ShipStation Integration: by WooCommerce – 4.1.19
    WooCommerce: by Automattic – 3.3.4
    WordPress Importer: by wordpressdotorg – 0.6.4
    WP Colorbox: by naa986 – 1.1.2
    WP Fastest Cache Premium: by Emre Vona – 1.4.1
    WP Fastest Cache: by Emre Vona – 0.8.7.8
    WP Statistics: by Verona Labs – 12.3.5
    YITH WooCommerce Category Accordion Premium: by YITHEMES – 1.0.18
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #169 - /store/store2/
    Cart: #170 - /cart/
    Checkout: #171 - /checkout/
    My account: #172 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Vantage
    Version: 1.7.2
    Author URL: https://siteorigin.com/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Mikey Arce

    (@mikeyarce)

    Automattic Happiness Engineer

    Hi @cswilsn2k,

    If you switch to a default theme like Twenty Seventeen, do the sub-categories show up?

    Thanks for the reply!

    If I use 2017, there is no change.

    Best Regards

    Mikey Arce

    (@mikeyarce)

    Automattic Happiness Engineer

    Hi @cswilsn2k,

    Are your products in BOTH the parent and subcategory by chance?
    Try making a product that is ONLY in a subcategory and then make sure the “Category Display” is set to show subcategories:
    http://a.mikey.link/StKfvw

    Hello,

    The products are just in the subcategory.

    I am not trying to display products in the parent categories, there are no products in them just subcategories in a few.

    Ie: Category 1 (subcategories only) -> Category 2 (contains subcategories only) > Category 3 (Contains products).

    Hi,

    I also have this problem since upgrading to the latest version. Previously the subcategories were shown as expected but now the parent category shows all the individual products. Products are only in subcategories and not in the parent category.

    I’d be very grateful of some guidance on how to resolve this.

    Many thanks

    Steph

    The width of the page also seems to have been altered by the upgrade. The page that I’m having an issue with is https://www.stephaniegay.co.uk/product-category/view-and-buy-original-silk-paintings-and-limited-edition-prints-online/

    Mikey Arce

    (@mikeyarce)

    Automattic Happiness Engineer

    @stevieg0,

    Can you please start a new topic for your second question please?

    @cswilsn2k and @stevieg0,

    As for the Subcategories not showing, here’s what I’ve got on my test site:
    – WooCommerce 3.3.4
    – Twenty Seventeen
    – Customizer Settings: http://a.mikey.link/f7zOiW

    When I have all of that going:
    – On the SHOP I only see Categories
    – If a Category has a sub-category, I will see them and NOT the products
    – If a category has no sub-categories, I see products.

    Can you both try doing that same thing and seeing if you get different results? If you do, can you disable all plugins and try again?

    Thanks!

    Hello,

    I can confirm on other sites I have setup recently yes, the subcategories do display.

    I have tried disabling all plugins, and even switching to the 2017 theme and still no luck.

    Best Regards,

    Chris W.

    My site does work correctly if I change to the 2017 theme but of course that is not the look I am going for so any advice on how to make it work with my theme would be much appreciated.

    Mikey Arce

    (@mikeyarce)

    Automattic Happiness Engineer

    @stevieg0,

    I would suggest talking to your theme author for help on that one, seeing if they have an update maybe?

    @cswilsn2k,

    That is really strange. Can you try re-saving your products and categories and clearing the cache?

    Plugin Support yukikatayama

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @cswilsn2k,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Hello, if anyone else is having this problem it’s probably because your theme is missing the following line from the functions.php file.

    add_theme_support( 'woocommerce' );

    Hope that helps! 🙂

    canditer

    (@canditer)

    Hello, if anyone else is having this problem it’s probably because your theme is missing the following line from the functions.php file.

    add_theme_support( 'woocommerce' );

    Hope that helps! 🙂

    Thank you

    dinodesigns87 (@dinodesigns87)
    2 months, 2 weeks ago
    Hello, if anyone else is having this problem it’s probably because your theme is missing the following line from the functions.php file.

    add_theme_support( ‘woocommerce’ );

    Hope that helps! 🙂

    Thanks this fixes the problem.

    turaco

    (@turaco)

    Hello Everyone,
    we have some category and subcategories for our blog. we want to show those subcategory list in batter view in home page. find the below link for reference.
    https://stgb2c.turacomobile.com/blog/
    Please help me out to batter showcase the mobile review subcategory list.

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.