• Resolved steffixmadara

    (@steffixmadara)


    Hello!
    Great Plugin!

    I wanted to know, why the categories in single product pages are not in the correct order. I don’t want them to be in alphabetical order, I want them to be in the menu order.

    The menu-order in the side-bar is correct! This is the correct order: Baustoffe – Abdichtungen

    But in the single product page it is in this order: Abdichtungen – Baustoffe.

    I want to have the main-category -> then the sub-category -> and so on.
    Is there a code for the functions.php?

    Please help!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @steffixmadara

    I understand that you want to change the order in which the categories are listed on the single product pages.

    The site says coming soon, therefore I couldn’t check your example, but you can try out the snippets provided in the following threads:

    https://stackoverflow.com/questions/45580612/how-to-sort-woocommerce-categories-products-without-plugins

    https://www.tychesoftwares.com/how-to-sort-woocommerce-categories/

    https://stackoverflow.com/questions/55011566/change-default-sorting-order-for-specific-woocommerce-category-archive

    We recommend using a plugin like Code Snippets to add the snippet to your site.

    I hope this helps!

    Thread Starter steffixmadara

    (@steffixmadara)

    Hello!

    Thanks for your reply!

    That doesn’t really help…
    I am using the plugin ‘ WC Product Table Pro ‘ to show my products in a table.
    And I was wondering why the sidebar shows the correct order but the categories underneath the single product name is by ‘alphabetical’ order.
    The support of the wc product table can’t give me a correct answer.

    Do you have an email, where I can send you a picture of my shop?

    Thanks! Please help!

    Plugin Support Paulo P – a11n

    (@paulostp)

    Hello,

    A screenshot would help us understand the issue. You can use https://snipboard.io/ to host the image and then paste the link here.

    Also, so we can have a better understanding of your setup, can you please share your System status report? You can find it in WooCommerce > Status > Get system report > Copy for support and then paste it here.

    Thanks

    Thread Starter steffixmadara

    (@steffixmadara)

    Hello, thanks for the fast reply!

    Here is the screenshot -> https://snipboard.io/O64q3Q.jpg
    On the left there is the correct order of the categories – at first the main category and then the subcategories
    On the right there is the wrong order underneath the product name.

    System Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://montagebedarf.at
    Site address (URL): https://montagebedarf.at
    WC Version: 6.4.1
    REST API Version: ✔ 6.4.1
    WC Blocks Version: ✔ 7.2.2
    Action Scheduler Version: ✔ 3.4.0
    WC Admin Version: ✔ 3.3.2
    Log Directory Writable: ✔
    WP Version: 5.9.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: de_DE
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.29
    PHP Post Max Size: 136 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.4.1
    WC Database Prefix: wp_
    Datenbank-Gesamtgröße: 48.67MB
    Datenbank-Datengröße: 35.28MB
    Datenbank-Indexgröße: 13.39MB
    wp_woocommerce_sessions: Daten: 0.03MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Daten: 1.52MB + Index: 0.84MB + Engine InnoDB
    wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Daten: 1.52MB + Index: 0.38MB + Engine InnoDB
    wp_berocket_termmeta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_booking: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bookingdates: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cmplz_cookiebanners: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cmplz_cookies: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_cmplz_services: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_login_log: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_login_redirects: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Daten: 5.28MB + Index: 0.16MB + Engine InnoDB
    wp_postmeta: Daten: 9.11MB + Index: 5.75MB + Engine InnoDB
    wp_posts: Daten: 6.30MB + Index: 0.92MB + Engine InnoDB
    wp_ppc_exceptions: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_ppc_exception_items: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_ppc_roles: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_ppi_errors: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_ppi_imported: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_ppi_runs: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_pp_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_pp_group_members: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_revslider_css: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_css_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides: Daten: 0.23MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Daten: 0.14MB + Index: 0.17MB + Engine InnoDB
    wp_terms: Daten: 0.09MB + Index: 0.09MB + Engine InnoDB
    wp_term_relationships: Daten: 1.52MB + Index: 0.34MB + Engine InnoDB
    wp_term_taxonomy: Daten: 0.08MB + Index: 0.11MB + Engine InnoDB
    wp_um_metadata: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_usermeta: Daten: 0.14MB + Index: 0.03MB + Engine InnoDB
    wp_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_user_registration_sessions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vi_wbe_history: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wcpt_sessions: Daten: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_wcsp_global_discount_rule_mapping: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wcsp_group_category_pricing_mapping: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wcsp_role_category_pricing_mapping: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wcsp_user_category_pricing_mapping: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Daten: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Daten: 0.25MB + Index: 0.45MB + Engine InnoDB
    wp_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woot_tables: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woot_tables_columns: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woot_tables_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woot_vocabulary: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wtbp_tables: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_action_history: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_mapping_template: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wusp_group_product_price_mapping: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wusp_role_pricing_mapping: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wusp_rules: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wusp_subrules: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_wusp_user_pricing_mapping: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yith_wcwl: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yith_wcwl_lists: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_indexable: Daten: 5.50MB + Index: 1.77MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Daten: 0.17MB + Index: 0.25MB + Engine InnoDB
    wp_yoast_migrations: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Daten: 1.23MB + Index: 0.31MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 10
    acf-field-group: 10
    aco_product_table: 1
    attachment: 2850
    b2bking_custom_role: 2
    b2bking_group: 1
    custom_css: 3
    customize_changeset: 76
    nav_menu_item: 97
    page: 15
    post: 4
    product: 2246
    revision: 319
    seedprod: 2
    shop_order: 29
    um_directory: 1
    um_form: 3
    user_registration: 2
    wc_product_table: 4
    wp_global_styles: 3
    wpcf7_contact_form: 4
    wpt_product_table: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (23) ###
    
    Advanced Custom Fields: Theme Code Pro: von hookturn – 2.3.0
    Advanced Custom Fields PRO: von Delicious Brains – 5.12.2
    Auto Cart Update On Quantity Change: von Rajdip Sinha Roy – 1.0
    Classic Editor: von WordPress-Mitwirkende – 1.6.2
    Classic Widgets: von WordPress-Mitwirkende – 0.3
    Complianz | GDPR/CCPA Cookie Consent: von Really Simple Plugins – 6.1.5
    Contact Form 7: von Takayuki Miyoshi – 5.5.6
    Customer Specific Pricing for WooCommerce: von WisdmLabs – 4.6.4
    Yoast Duplicate Post: von Enrico Battocchi & Team Yoast – 4.4
    HookMeUp – Additional Content for WooCommerce: von GetBowtied – 1.3.5
    WPBakery Page Builder: von Michael M - WPBakery.com – 6.4.2
    Loco Translate: von Tim Whitlock – 2.6.1
    Mikado-Kern: von Mikado-Themen – 1.3.1
    All in One Product Quantity for WooCommerce Pro: von WPWhale – 4.2
    Qty Increment Buttons for WooCommerce: von taisho – 2.7.5
    Slider Revolution: von ThemePunch – 6.3.1
    Theme My Login: von Theme My Login – 7.1.4
    Place Order Without Payment for WooCommerce: von Nitin Prakash – 2.2
    WooCommerce Produkttabelle Lite: von WC-Produkttabelle – 2.5.0
    Checkout Field Editor for WooCommerce: von ThemeHigh – 1.6.0
    WooCommerce: von Automattic – 6.4.1
    Yoast SEO: von Team Yoast – 18.6
    WordPress REST API Authentication: von miniOrange – 2.1.0
    
    ### Inactive Plugins (0) ###
    
    ### 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: –
    
    ### WC Pages ###
    
    Shop-Basis: #7 - /shop-1/
    Warenkorb: #8 - /warenkorb/
    Kasse: #9 - /kasse/
    Mein Konto: #10 - /mein-konto/
    Allgemeine Geschäftsbedingungen: ❌ Seite nicht festgelegt
    
    ### Theme ###
    
    Name: Indigo Child
    Version: 1.0.0
    Author URL: http://themeforest.net/user/mikado-themes
    Child Theme: ✔
    Parent Theme Name: Indigo
    Parent Theme Version: 1.7
    Parent Theme Author URL: http://themeforest.net/user/mikado-themes
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Archive Template: Dein Theme hat eine woocommerce.php-Datei
    was dazu führt
    dass du das Template woocommerce/archive-product.php nicht überschreiben kannst
    da woocommerce.php höher gewichtet wird als archive-product.php. Das ist beabsichtigt
    um Darstellungsprobleme zu verhindern.
    
    Overrides: indigo-child/woocommerce/archive-product.php
    indigo-child/woocommerce/cart/cart.php
    indigo-child/woocommerce/content-product.php
    indigo-child/woocommerce/content-widget-product.php
    indigo-child/woocommerce/emails/admin-new-order.php
    indigo-child/woocommerce/emails/customer-processing-order.php
    indigo-child/woocommerce/emails/email-order-details.php
    indigo-child/woocommerce/emails/email-order-items.php Version - ist veraltet. Die Hauptversion ist 3.7.0
    indigo-child/woocommerce/global/quantity-input.php
    indigo-child/woocommerce/loop/add-to-cart.php
    indigo-child/woocommerce/order/order-details-customer.php
    indigo/woocommerce/product-searchform.php
    indigo-child/woocommerce/single-product/add-to-cart/external.php
    indigo-child/woocommerce/single-product/add-to-cart/grouped.php
    indigo-child/woocommerce/single-product/add-to-cart/simple.php
    indigo-child/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    indigo-child/woocommerce/single-product/tabs/tabs.php
    
    Outdated Templates: ❌
    					
    					
    						Erfahre
    wie du aktualisieren kannst
    
    ### Action Scheduler ###
    
    Abgeschlossen: 2.722
    Oldest: 2022-04-06 12:54:53 +0200
    Newest: 2022-04-29 09:44:46 +0200
    
    ### Status report information ###
    
    Generated at: 2022-04-29 09:46:37 +02:00
    

    Thanks for helping!

    Hi @steffixmadara

    Thank you for sharing the screenshot and system status. I understand you are trying to change the way that categories are sorted here: https://snipboard.io/whsBAJ.jpg

    You mentioned earlier that you were using the WC Product Table Pro plugin show products in a table, but I don’t see it under active plugins in your system status.

    In order to check further, can you please share a link to this page? https://snipboard.io/O64q3Q.jpg

    We haven’t heard back from you in a while, so I’m marking this thread closed – we’ll be here if and/or when you are ready to continue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Category Sorting in Single Product Pages’ is closed to new replies.