Breadcrumb is broken when a Product category hasn't any assigned product on it
Hello,
There is a weird case when a product category hasn't any assigned product on it, the breadcrumb shows wrong hierarchy.
An example: https://www.giorgostsamis.gr/product-category/banio/stiles/antallaktika-stiles/
Instead of showing "Home / Banio / Stiles / Antallaktika Stiles"
it shows: "Home / Product Category / a random product title"
Thanks in advance
Comments
Hello,
Please turn off all of the plugins, refresh your cache, and check if the problem persists.
Moreover, if you use a child theme, switch to parent, and recheck it.
Thanks
Hello,
Switching to the main theme after disabling all the plugins except Woocommerce still experienced the same issue:
Betheme status
WordPress status
WordPress templates
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
I have received your private message, but it does not have an FTP host address.
Please send another message including that.
Thanks
Please check it out now.
Best regards
Hello!
Even though on the very last level of an empty category it works:
https://www.giorgostsamis.gr/product-category/klimatismos/klimatistika-ac-oikiakis-chrisis/
If you go one level up https://www.giorgostsamis.gr/product-category/klimatismos/ the issue remains.
Plus, for some reason the breadcrumb is even worst. On this page: https://www.giorgostsamis.gr/product-category/klimatismos/klimatistika-ac-oikiakis-chrisis/ I should see "Home / All products / Klimatismos / Klimatistika ac oikiakis chrisis" I mean the full hierarchy of the product categories tree.
Best regards,
Antonios
We are taking a look at this.
Best regards
We have made additional corrections to that.
Please check it out.
Best regards
Hello, the issue was resolved!
Out of curiosity, where the changes have been applied!
Is it safe to still update the theme?
Plus I am getting this warning:
PHP Warning: Undefined array key "breadcrumb_home" in /public_html/wp-content/themes/betheme/functions/theme-shortcodes.php on line 921
We had to modify the theme files.
Where does this warning appear?
Best regards
I have already updated the theme twice, and the breadcrumb still works, so I suppose the changes are part of the latest updates.
About the PHP warning:
I see it either on the the debug.log file, or using Query Monitor. For example here: https://www.giorgostsamis.gr/product-category/banio/
https://prnt.sc/J1SeoIG_zTOy
The FTP does not work anymore. We tried to correct that, but we could not edit the files.
Can you send new credentials, please?
Thanks
The credentials are the same but I apply expiration. I re-enable it! you can give a re-try!
Thanks
We have corrected it.
Best regards
Thank you :)