Woocommerce product detail: display categories hierarchically
-
Hi guys,
when I open the detail of a product, the categories of that product are shown, but they are shown in alphabetical order and not hierarchically and it does not make much sense in my case, how can I solve this? How can I make the categories of a product appear in hierarchical order?
Thanks in advance!
Best regards,
Raquel.The page I need help with: [log in to see the link]
-
Hi @datibus
Thanks for reaching out!
Can you please share how product categories are added to your site?
Meanwhile, I’d like to understand your site properly, can you please share your System Status Report, that will help us further troubleshoot.
You can find it via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.Hi Xue 28:
Thanks for you attention!
Categories are automatically added during product import.
I would like to sort the categories displayed on the product detail page hierarchically. Those of that product, I don’t know if I’m explaining myself well.
### WordPress Environment ###
WordPress address (URL): https://sandbox.datibus.com/eticatest
Site address (URL): https://sandbox.datibus.com/eticatest
WC Version: 7.0.0
REST API Version: ✔ 7.0.0
WC Blocks Version: ✔ 8.5.1
Action Scheduler Version: ✔ 3.4.0
Log Directory Writable: ✔
WP Version: 6.0.3
WP Multisite: –
WP Memory Limit: 768 MB
WP Debug Mode: –
WP Cron: ✔
Language: es_ES
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.4.32
PHP Post Max Size: 256 MB
PHP Time Limit: 120
PHP Max Input Vars: 3000
cURL Version: 7.66.0
OpenSSL/1.1.1q-fipsSUHOSIN Installed: –
MySQL Version: 5.7.39-42-log
Max Upload Size: 256 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔### Database ###
WC Database Version: 7.0.0
WC Database Prefix: uxhyj_
Tamaño total de la base de datos: 142.36MB
Tamaño de los datos de la base de datos: 101.36MB
Tamaño del índice de la base de datos: 41.00MB
uxhyj_woocommerce_sessions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_woocommerce_api_keys: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_woocommerce_attribute_taxonomies: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_woocommerce_downloadable_product_permissions: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB
uxhyj_woocommerce_order_items: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_woocommerce_order_itemmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_woocommerce_tax_rates: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB
uxhyj_woocommerce_tax_rate_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_woocommerce_shipping_zones: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_woocommerce_shipping_zone_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_woocommerce_shipping_zone_methods: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_woocommerce_payment_tokens: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_woocommerce_payment_tokenmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_woocommerce_log: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_actionscheduler_actions: Datos: 7.02MB + Índice: 12.17MB + Motor InnoDB
uxhyj_actionscheduler_claims: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_actionscheduler_groups: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_actionscheduler_logs: Datos: 5.02MB + Índice: 5.03MB + Motor InnoDB
uxhyj_aiowps_debug_log: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_events: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_failed_logins: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_global_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_login_activity: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_login_lockdown: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_aiowps_permanent_block: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_blc_filters: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_blc_instances: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
uxhyj_blc_links: Datos: 0.08MB + Índice: 0.06MB + Motor InnoDB
uxhyj_blc_synch: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_comments: Datos: 0.02MB + Índice: 0.09MB + Motor InnoDB
uxhyj_fusion_forms: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_fusion_form_entries: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_fusion_form_fields: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_fusion_form_submissions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_gdpr_cc_options: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_gf_addon_feed: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_gf_draft_submissions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_gf_entry: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_gf_entry_meta: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
uxhyj_gf_entry_notes: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_gf_form: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_gf_form_meta: Datos: 0.09MB + Índice: 0.00MB + Motor InnoDB
uxhyj_gf_form_revisions: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_gf_form_view: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_gf_rest_api_keys: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_options: Datos: 6.50MB + Índice: 0.17MB + Motor InnoDB
uxhyj_pmxi_files: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_hash: Datos: 0.28MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_history: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_images: Datos: 2.52MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_imports: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_posts: Datos: 0.27MB + Índice: 0.00MB + Motor InnoDB
uxhyj_pmxi_templates: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_postmeta: Datos: 34.56MB + Índice: 11.48MB + Motor InnoDB
uxhyj_posts: Datos: 26.52MB + Índice: 4.75MB + Motor InnoDB
uxhyj_termmeta: Datos: 0.33MB + Índice: 0.39MB + Motor InnoDB
uxhyj_terms: Datos: 0.13MB + Índice: 0.13MB + Motor InnoDB
uxhyj_term_relationships: Datos: 1.48MB + Índice: 0.38MB + Motor InnoDB
uxhyj_term_taxonomy: Datos: 0.14MB + Índice: 0.16MB + Motor InnoDB
uxhyj_tm_taskmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_tm_tasks: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_usermeta: Datos: 1.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_users: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
uxhyj_wc_admin_notes: Datos: 0.06MB + Índice: 0.00MB + Motor InnoDB
uxhyj_wc_admin_note_actions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_wc_category_lookup: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_wc_customer_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_wc_cvo_cache: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_wc_download_log: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_wc_order_coupon_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_wc_order_product_lookup: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB
uxhyj_wc_order_stats: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
uxhyj_wc_order_tax_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_wc_product_attributes_lookup: Datos: 0.30MB + Índice: 0.31MB + Motor InnoDB
uxhyj_wc_product_download_directories: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_wc_product_meta_lookup: Datos: 0.38MB + Índice: 0.69MB + Motor InnoDB
uxhyj_wc_rate_limits: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_wc_reserved_stock: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
uxhyj_wc_tax_rate_classes: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_wc_webhooks: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_yoast_indexable: Datos: 13.11MB + Índice: 3.48MB + Motor InnoDB
uxhyj_yoast_indexable_hierarchy: Datos: 0.17MB + Índice: 0.31MB + Motor InnoDB
uxhyj_yoast_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
uxhyj_yoast_primary_term: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
uxhyj_yoast_seo_links: Datos: 0.06MB + Índice: 0.03MB + Motor InnoDB### Post Type Counts ###
attachment: 11750
fusion_tb_layout: 1
fusion_tb_section: 1
fusion_template: 1
nav_menu_item: 10
page: 42
post: 1
product: 1402
product_variation: 2495
revision: 257
seedprod: 1### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (20) ###
Gravity Forms: por Gravity Forms – 2.6.7
Akismet Anti-Spam: por Automattic – 5.0.1
Better Search Replace: por Delicious Brains – 1.4.1
Broken Link Checker: por WPMU DEV – 1.11.18
Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: por SeedProd – 6.15.4
FlowPaper: por Devaldi Ltd – 1.9.9
Avada Builder: por ThemeFusion – 3.8.2
Avada Core: por ThemeFusion – 5.8.2
GDPR Cookie Compliance: por Moove Agency – 4.8.13
Extensión de Gravity Forms para Mailchimp: por Gravity Forms – 5.1
LoginPress – Customizing the WordPress Login Screen.: por WPBrigade – 1.6.2
WooCommerce Additional Variation Images: por WooCommerce – 1.9.0
WooCommerce Catalog Visibility Options: por Lucas Stark – 3.2.16
Store Toolkit for WooCommerce: por Visser Labs – 2.3.8
WooCommerce: por Automattic – 7.0.0
WordPress Importer: por wordpressdotorg – 0.8
Yoast SEO: por Equipo Yoast – 19.9
WP All Import Pro: por Soflyy – 4.7.7
WP All Import – WooCommerce Import Add-On Pro: por Soflyy – 3.3.3
WP All Import – Yoast WordPress SEO Add-On: por Soflyy – 1.1.8### Inactive Plugins (5) ###
Advanced Woo Search: por ILLID – 2.65
All In One WP Security: por All In One WP Security & Firewall Team – 5.1.0
Metricool: por Metricool – 1.14
WP-Optimize – Clean, Compress, Cache: por David Anderson
Ruhani Rabin
Team Updraft – 3.2.9WP Super Cache: por Automattic – 1.9
### Must Use Plugins (1) ###
Datibus WooCommerce: por Datibus – 1.0
### Settings ###
API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right
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 ###
Base de la tienda: ❌ El ID de página está establecido
pero la página no existeCarrito: ❌ El ID de página está establecido
pero la página no existeFinalizar compra: ❌ El ID de página está establecido
pero la página no existeMi cuenta: ❌ El ID de página está establecido
pero la página no existeTérminos y condiciones: ❌ Página sin definir
### Theme ###
Name: Avada Child
Version: 1.0.0
Author URL: https://theme-fusion.com
Child Theme: ✔
Parent Theme Name: Avada
Parent Theme Version: 7.8.2
Parent Theme Author URL: https://themeforest.net/user/ThemeFusion
WooCommerce Support: ✔### Templates ###
Overrides: Avada/woocommerce/cart/cart.php
Avada/woocommerce/checkout/form-pay.php
Avada/woocommerce/checkout/review-order.php
Avada/woocommerce/checkout/thankyou.php
Avada/woocommerce/loop/loop-start.php
Avada/woocommerce/single-product/add-to-cart/variable.php
Avada/woocommerce/single-product/short-description.php
Avada/woocommerce/single-product/tabs/additional-information.php
Avada/woocommerce/single-product/tabs/description.php### Templates ###
thumbnail:
medium:
medium_large:
large:
1536×1536:
2048×2048:
fusion-200:
fusion-400:
fusion-600:
fusion-800:
fusion-1200:
woocommerce_thumbnail:
woocommerce_single:
woocommerce_gallery_thumbnail:### Admin ###
Enabled Features: activity-panels
analytics
coupons
customer-effort-score-tracks
experimental-products-task
experimental-import-products-task
experimental-fashion-sample-products
experimental-product-tour
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
multichannel-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
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-pageDisabled Features: minified-js
new-product-management-experience
settingsDaily Cron: ✔ Next scheduled: 2022-10-27 11:59:40 +01:00
Options: ✔
Notes: 78
Onboarding: skipped### Action Scheduler ###
Completo: 14.525
Oldest: 2022-06-28 16:32:18 +0000
Newest: 2022-10-27 09:56:05 +0000Pendiente: 1
Oldest: 2022-10-28 09:56:05 +0000
Newest: 2022-10-28 09:56:05 +0000### Status report information ###
Generated at: 2022-10-27 11:52:30 +01:00
`HI @datibus
I apologize if I have not made my inquiry clear.
I understand that you want to display the product categories list on the image below in hierarchical order:
Image Link: https://snipboard.io/UdDvsS.jpg
Can you please share how did you add the product categories list above? By default, WooCommerce provides the Product Categories List widget too:
Image Link: https://snipboard.io/jlWL1C.jpg
- The topic ‘Woocommerce product detail: display categories hierarchically’ is closed to new replies.