Category order
-
I am having a really annoying problem. I have a main product category and subcategories. I choose main and then one subcategory pro product. My problem is that in some cases, not all, the order of the categories is reverse. So instead first main and then sub it shows first sub and then main category. My question is how can I set the category order right?
-
Hi @aboooo ,
Thanks for reaching out!
I understand that the order of your categories > subcategories is switching in some cases to subcategories > categories, is this correct?
In order for a better understanding of your site setup, please could you share a copy of your System Status report by navigating to WooCommerce > Status > System Status tab. Select ‘Get system report’ and then ‘Copy for support’.
Once you do this, you can paste your response here.
Additionally, please could you share a link to a page on your site where this exact issue is occurring?
Thanks!
Thank for your reply, that is correct. Hier is my status report
### WordPress Environment ### WordPress address (URL): https://klavier-tuttner.at Site address (URL): https://klavier-tuttner.at WC Version: 6.6.1 REST API Version: ? 6.6.1 WC Blocks Version: ? 7.6.2 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0 WP Multisite: – WP Memory Limit: 320 MB WP Debug Mode: – WP Cron: ? Language: de_DE External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.1.7 PHP Post Max Size: 200 MB PHP Time Limit: 30 PHP Max Input Vars: 1500 cURL Version: 7.61.1 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.7.38-log Max Upload Size: 200 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.6.1 WC Database Prefix: tuttner_wp_ Total Database Size: 17.50MB Database Data Size: 13.49MB Database Index Size: 4.01MB tuttner_wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB tuttner_wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_braapf_product_stock_status_parent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_braapf_product_variation_attributes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_braapf_variable_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB tuttner_wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB tuttner_wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB tuttner_wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB tuttner_wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB tuttner_wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_action_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_field_meta: Data: 0.22MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_form_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_nf3_upgrades: Data: 0.13MB + Index: 0.00MB + Engine InnoDB tuttner_wp_options: Data: 3.13MB + Index: 0.08MB + Engine InnoDB tuttner_wp_postmeta: Data: 0.31MB + Index: 0.06MB + Engine InnoDB tuttner_wp_posts: Data: 1.52MB + Index: 0.06MB + Engine InnoDB tuttner_wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB tuttner_wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_usermeta: Data: 0.13MB + Index: 0.03MB + Engine InnoDB tuttner_wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB tuttner_wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfhits: Data: 2.02MB + Index: 0.20MB + Engine InnoDB tuttner_wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wflogins: Data: 0.41MB + Index: 0.14MB + Engine InnoDB tuttner_wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tuttner_wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB tuttner_wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_wpwhpro_authentication: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tuttner_wp_yoast_indexable: Data: 0.13MB + Index: 0.09MB + Engine InnoDB tuttner_wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tuttner_wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tuttner_wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tuttner_wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### acf-field: 11 acf-field-group: 4 attachment: 88 br_filters_group: 1 br_product_filter: 2 cookielawinfo: 6 customize_changeset: 2 leistungen: 3 mailpoet_page: 1 nav_menu_item: 15 nf_sub: 78 page: 12 post: 2 product: 15 quotes: 6 revision: 420 shop_order: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (19) ### Advanced Custom Fields PRO: by Delicious Brains – 5.12.2 GDPR Cookie Consent: by WebToffee – 2.1.2 Duplicate Page: by mndpsingh287 – 4.4.8 Make, formerly Integromat Connector: by Celonis s.r.o. – 1.5.1 WPBakery Page Builder: by Michael M - WPBakery.com – 6.9.0 Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.25.3 Loco Translate: by Tim Whitlock – 2.6.2 Ninja Forms - Layout & Styles: by The WP Ninjas – 3.0.29 Ninja Forms: by Saturday Drive – 3.6.12 Post Types Order: by Nsp Code – 1.9.9 Redirection: by John Godley – 5.2.3 SVG Support: by Benbodhi – 2.4.2 Product Gallery Slider for Woocommerce ( Formerly Twist ): by Codeixer – 3.2.9 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.12 Advanced AJAX Product Filters for WooCommerce: by BeRocket – 1.6.2 Eps payment: by Leftor d.o.o – 2.0.0. WooCommerce: by Automattic – 6.6.1 Wordfence Security: by Wordfence – 7.5.11 Yoast SEO: by Team Yoast – 19.1 ### Inactive Plugins (5) ### Advanced Custom Fields: by Delicious Brains – 5.12.2 Akismet Anti-Spam: by Automattic – 4.2.4 Category Order and Taxonomy Terms Order: by Nsp-Code – 1.6.1 Hello Dolly: by Matt Mullenweg – 1.7.2 Product Gallery Slider for WooCommerce: by codeixer – 2.2.1 ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: left_space 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) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop-Basis: ? Page visibility should be public Warenkorb: #658 - /warenkorb/ Kasse: #659 - /kasse/ Mein Konto: #660 - /mein-konto/ Allgemeine Gesch?ftsbedingungen: ? Page not set ### Theme ### Name: Klavier Tuttner Version: 1.0.0 Author URL: https://ab-design.at 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: klavier-tuttner/woocommerce/archive-product.php klavier-tuttner/woocommerce/cart/cart-totals.php klavier-tuttner/woocommerce/cart/cart.php klavier-tuttner/woocommerce/checkout/form-checkout.php klavier-tuttner/woocommerce/checkout/order-receipt.php klavier-tuttner/woocommerce/checkout/review-order.php klavier-tuttner/woocommerce/content-product.php klavier-tuttner/woocommerce/content-single-product.php klavier-tuttner/woocommerce/myaccount/form-login.php klavier-tuttner/woocommerce/myaccount/my-account.php klavier-tuttner/woocommerce/myaccount/navigation.php klavier-tuttner/woocommerce/single-product/add-to-cart/variable.php /home/.sites/1/site2529162/web/wp-content/plugins/twist/inc/public/templates/default.php klavier-tuttner/woocommerce/single-product/related.php ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ? Next scheduled: 2022-06-25 06:20:19 +02:00 Options: ? Notes: 54 Onboarding: completed ### Action Scheduler ### Complete: 75 Oldest: 2022-05-26 11:33:46 +0200 Newest: 2022-06-24 09:28:39 +0200 Failed: 1 Oldest: – Newest: – Pending: 1 Oldest: 2022-06-24 15:04:29 +0200 Newest: 2022-06-24 15:04:29 +0200 ### Status report information ### Generated at: 2022-06-24 10:00:02 +02:00
Hi @aboooo ,
Thanks for providing the Status report.
Just for clarity, I have gone to https://klavier-tuttner.at/produkte/pianoleuchte-swing-messing/ and the item is displaying in a subcategory, as seen in the screenshot below, is this not what should be happening, or is this showing differently on your end?
https://snipboard.io/VM4PuU.jpg
There is nothing standing out in the report and the behavior described is not the default behavior of WooCommerce core so as a next step I would recommend performing a conflict test to rule out any theme/plugins causing this behavior.
The best way to determine this is to:
– Clear site and browser caching
– Temporarily switch your theme to Storefront
– Disable all plugins except for WooCommerce
– Repeat the action that is causing the problemIf you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each until you find the one causing conflict.
Please see the below documentation for a more detailed explanation of how to do a conflict test here:
https://docs.woocommerce.com/document/how-to-test-for-conflicts
Additionally, if you’re using any customization on the website, for example through custom codes, please temporarily disable the same and see if that helps.
You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers by using the free WP Staging plugin.
Please let me know how this goes!
-
This reply was modified 2 years, 8 months ago by
Roxy. Reason: updated after seeing link provided
Thank, for checking through. I’ll try and then get back to you. Please do not close the ticket yet.
Hello,
No problem the thread is open, please let us know how it goes.
Hi @aboooo ,
Sure, this thread will remain open and will be ready to help you further.
When providing the results of the conflict test, please could you also confirm the below:
Just for clarity, I have gone to https://klavier-tuttner.at/produkte/pianoleuchte-swing-messing/ and the item is displaying in a subcategory, as seen in the screenshot below, is this not what should be happening, or is this showing differently on your end?
https://snipboard.io/VM4PuU.jpg
Thanks!
Hello Roxanne,
what you’ve marked is the product name that I manually add ad the end. The first and second terms are categories. Accessories ist main und Piano light ist sub category. So they should be in reverse order. I know that your solution suggestion is a standard answer but at this state of development to set up all from the start takes to much time. Especially because the order is also reversed in WP Admin area I believe it wouldn’t change a thing.
So I found this thread and this has done a trick. I hope at least. ?? Thanks for your help.
Hi @aboooo,
Applying the tweak to the meta.php file to sort the product categories hierarchically seems like the way to go! I haven’t tested it yet, but it seems to work as you stated above. Thanks so much for sharing the solution!
I’m going to close this thread out now. Please feel free to create a new thread on the forum if you need further help.
Cheers.
-
This reply was modified 2 years, 8 months ago by
- The topic ‘Category order’ is closed to new replies.