• Resolved jhorsham

    (@jhorsham)


    Since upgrading to ver 3.3.3 woocommerce my site no longer shows product categories.

    e.g. https://h-dev.co.uk/product-category/350z/ – should show subcategories which then contain products. Now I just get 12 products and can’t see any subcategories.

    Any help gratefully received – need to get this sorted asap!

    Status:

    WordPress environment
    Home URL:		https://h-dev.co.uk
    Site URL:		https://h-dev.co.uk
    WC version:		3.3.3
    Log directory writable:		 /home/hdev3191/public_html/wp-content/uploads/wc-logs/
    WP version:		4.9.4
    WP multisite:		–
    WP memory limit:		768 MB
    WP debug mode:		–
    WP cron:		
    Language:		en_GB
    Server environment
    Server info:		Apache
    PHP version:		7.1.14
    PHP post max size:		128 MB
    PHP time limit:		120
    PHP max input vars:		1000
    cURL version:		7.53.0, OpenSSL/1.0.2k
    SUHOSIN installed:		–
    MySQL version:		5.6.36
    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.3
    Database prefix	 	hor_
    MaxMind GeoIP database:		 /home/hdev3191/public_html/wp-content/uploads/GeoIP.dat
    Total Database Size	 	15.33MB
    Database Data Size	 	10.74MB
    Database Index Size	 	4.59MB
    hor_woocommerce_sessions	 	Data: 0.14MB + Index: 0.00MB
    hor_woocommerce_api_keys	 	Data: 0.00MB + Index: 0.00MB
    hor_woocommerce_attribute_taxonomies	 	Data: 0.00MB + Index: 0.01MB
    hor_woocommerce_downloadable_product_permissions	 	Data: 0.00MB + Index: 0.00MB
    hor_woocommerce_order_items	 	Data: 0.16MB + Index: 0.08MB
    hor_woocommerce_order_itemmeta	 	Data: 0.94MB + Index: 0.57MB
    hor_woocommerce_tax_rates	 	Data: 0.00MB + Index: 0.01MB
    hor_woocommerce_tax_rate_locations	 	Data: 0.00MB + Index: 0.00MB
    hor_woocommerce_shipping_zones	 	Data: 0.02MB + Index: 0.00MB
    hor_woocommerce_shipping_zone_locations	 	Data: 0.02MB + Index: 0.05MB
    hor_woocommerce_shipping_zone_methods	 	Data: 0.02MB + Index: 0.00MB
    hor_woocommerce_payment_tokens	 	Data: 0.02MB + Index: 0.02MB
    hor_woocommerce_payment_tokenmeta	 	Data: 0.02MB + Index: 0.03MB
    hor_woocommerce_log	 	Data: 0.02MB + Index: 0.02MB
    hor_commentmeta	 	Data: 0.03MB + Index: 0.03MB
    hor_comments	 	Data: 0.48MB + Index: 0.20MB
    hor_cp_calculated_fields_form_discount_codes	 	Data: 0.02MB + Index: 0.00MB
    hor_cp_calculated_fields_form_posts	 	Data: 0.02MB + Index: 0.00MB
    hor_cp_calculated_fields_form_settings	 	Data: 0.05MB + Index: 0.00MB
    hor_datalist	 	Data: 0.00MB + Index: 0.00MB
    hor_duplicator_packages	 	Data: 0.01MB + Index: 0.00MB
    hor_layerslider	 	Data: 0.02MB + Index: 0.00MB
    hor_links	 	Data: 0.00MB + Index: 0.00MB
    hor_options	 	Data: 1.10MB + Index: 0.05MB
    hor_pmxi_files	 	Data: 0.00MB + Index: 0.00MB
    hor_pmxi_history	 	Data: 0.00MB + Index: 0.00MB
    hor_pmxi_imports	 	Data: 0.01MB + Index: 0.00MB
    hor_pmxi_posts	 	Data: 0.00MB + Index: 0.00MB
    hor_pmxi_templates	 	Data: 0.00MB + Index: 0.00MB
    hor_postmeta	 	Data: 4.09MB + Index: 2.04MB
    hor_posts	 	Data: 1.80MB + Index: 0.29MB
    hor_termmeta	 	Data: 0.01MB + Index: 0.02MB
    hor_terms	 	Data: 0.00MB + Index: 0.01MB
    hor_term_relationships	 	Data: 0.02MB + Index: 0.05MB
    hor_term_taxonomy	 	Data: 0.00MB + Index: 0.01MB
    hor_usermeta	 	Data: 1.49MB + Index: 0.91MB
    hor_users	 	Data: 0.07MB + Index: 0.08MB
    hor_wc_download_log	 	Data: 0.02MB + Index: 0.03MB
    hor_wc_webhooks	 	Data: 0.02MB + Index: 0.02MB
    hor_wysija_campaign	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_campaign_list	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_custom_field	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_email	 	Data: 0.03MB + Index: 0.00MB
    hor_wysija_email_user_stat	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_email_user_url	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_form	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_list	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_queue	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_url	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_url_mail	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_user	 	Data: 0.08MB + Index: 0.05MB
    hor_wysija_user_field	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_user_history	 	Data: 0.00MB + Index: 0.00MB
    hor_wysija_user_list	 	Data: 0.01MB + Index: 0.01MB
    Post Type Counts
    attachment	 	688
    customize_changeset	 	3
    nav_menu_item	 	24
    option-tree	 	1
    page	 	36
    post	 	8
    product	 	398
    product_variation	 	10
    revision	 	356
    shop_coupon	 	3
    shop_order	 	760
    shop_order_refund	 	17
    tm_product_cp	 	85
    wpcf7_contact_form	 	1
    wysijap	 	1
    Security
    Secure connection (HTTPS):		
    Hide errors from visitors		
    Active plugins (33)
    LayerSlider WP	 	by Kreatura Media – 6.1.0
    Akismet Anti-Spam	 	by Automattic – 4.0.3
    Breadcrumb NavXT	 	by John Havlik – 6.0.4
    Calculated Fields Form	 	by CodePeople – 1.0.211
    Contact Form 7	 	by Takayuki Miyoshi – 5.0.1
    Custom Facebook Feed	 	by Smash Balloon – 2.4.6
    Display Widgets	 	by Strategy11 – 2.7
    Duplicator	 	by Snap Creek – 1.2.34
    Export User Data	 	by Q Studio – 1.3.1
    Facebook Widget	 	by Milap Patel – 4.2.2
    Instagram Feed	 	by Smash Balloon – 1.6.1
    Simple Google Analytics Plugin	 	by Rachel McCollin – 1.0
    Jeremy's hilarous web page title changer	 	by Jez – 1.0
    Max Mega Menu	 	by Tom Hemsley – 2.4.1.4
    WooCommerce Dynamic Free Shipping Banners	 	by mangohour – 1.0.0 – Not tested with the active version of WooCommerce
    WooCommerce Table Rate Shipping Plus	 	by mangohour – 1.9.1 – Not tested with the active version of WooCommerce
    PixelYourSite	 	by PixelYourSite – 5.2.0
    Regenerate Thumbnails	 	by Alex Mills (Viper007Bond) – 3.0.2
    SEO Ultimate	 	by SEO Design Solutions – 7.6.5.9
    SG Optimiser	 	by SiteGround – 4.0.0
    Sticky Popup	 	by Numix Technologies, Gaurav Padia, Asalam Godhaviya – 1.2
    Tawk.to Live Chat	 	by Tawkto – 0.3.4
    TinyMCE Advanced	 	by Andrew Ozz – 4.6.7
    User Role Editor	 	by Vladimir Garagulya – 4.40
    WC Product Bundles	 	by Saravana Kumar K – 1.0.7 – Not tested with the active version of WooCommerce
    WooCommerce Product Feed	 	by WebAppick – 2.2.7
    WooCommerce SagePay Form and SagePay Direct Gateway	 	by Andrew Benbow – 3.7.4 – 3.10.3 is available – Not tested with the active version of WooCommerce
    WooCommerce TM Extra Product Options	 	by themecomplete – 4.5.2 – Not tested with the active version of WooCommerce
    WP All Import - WooCommerce Add-On	 	by Soflyy – 1.3.7 – Not tested with the active version of WooCommerce
    WooCommerce	 	by Automattic – 3.3.3
    WP All Import	 	by Soflyy – 3.4.7
    MailPoet 2	 	by MailPoet – 2.8.1
    YITH WooCommerce Ajax Search	 	by YITHEMES – 1.5.5
    Settings
    API enabled:		
    Force SSL:		
    Currency		GBP (£)
    Currency position		left
    Thousand separator		,
    Decimal separator		.
    Number of decimals		2
    Taxonomies: Product types		external (external), grouped (grouped), simple (simple), variable (variable), wcpb (wcpb)
    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:		#15 - /shop/
    Basket:		#16 - /cart/
    Checkout:		#17 - /checkout/
    My account:		#18 - /my-account/
    Terms and conditions:		#115 - /terms-and-conditions/
    Theme
    Name:		Horsham
    Version:		1.1
    Author URL:		
    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:		 Not declared
    Templates
    Overrides	 	horsham/woocommerce/cart/cart-empty.php, 
    /home/hdev3191/public_html/wp-content/plugins/woocommerce-tm-extra-product-options/templates/cart/cart-item-data.php, 
    horsham/woocommerce/cart/cart.php, 
    horsham/woocommerce/cart/mini-cart.php, 
    horsham/woocommerce/content-product.php, 
    horsham/woocommerce/content-single-product.php, 
    horsham/woocommerce/global/wrapper-end.php, 
    horsham/woocommerce/global/wrapper-start.php, 
    horsham/woocommerce/loop/pagination.php

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the exact same issue after the update. Have you found a solution yet? I’ve looked and seen that we’re not alone with this issue but still haven’t seen a fix posted anywhere.

    Thread Starter jhorsham

    (@jhorsham)

    Yes. A friend of mine fixed it.

    function woocommerce_maybe_show_product_subcategories() —

    At the top of the function

    if ( wc_get_loop_prop( ‘is_shortcode’ ) && ! WC_Template_Loader::in_content_filter() ) {

    ^ I don’t really know what that means or does, but it was TRUE, so it was getting inside that if() statement, and, once inside it was simply

    return $loop_html;

    And that’s it. $loop_html was blank, thus no categories.

    I’ve simply commented out that single line, so it doesn’t return $loop_html, thus it continues with the rest of the function as before

    • This reply was modified 6 years, 8 months ago by jhorsham.
    • This reply was modified 6 years, 8 months ago by jhorsham.
    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Appearance > Customize > WooCommerce > Products Catalog has some settings that you should check.

    If those settings don’t do what they should, then your theme or another plugin is causing a conflict. Directly editing the code in WooCommerce core isn’t a good long term solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘categories not showing after upgrading to 3.3.3’ is closed to new replies.