Product tabs – fatal error
-
Layouts > single_product >
Product tabs – if Enable additional info tab – this is a fatal error. The problem occurs when description tab is enabled. Please help
Attachments:
You must be
logged in to view attached files.
Hello,
Please disable all plugins that are not related to our theme and switch to the parent theme in Appearance -> Themes so we can check it.
Kind Regards
Hello, I have disabled all foreign plugins and the problem is still there.
Please send us your FTP access so we can troubleshoot the error.
Try to add the following PHP code snippet to the child theme functions.php file to fix this
function woocommerce_product_description_tab() {
if ( ! is_singular( 'product' ) ) {
return;
}
wc_get_template( 'single-product/tabs/description.php' );
}
the code does not contain a syntax error, but the website cannot run it – error
Could you please send us a screenshot of how you placed the code and a screenshot of the error?
I use Code Snippets to implement the code
Attachments:
You must be
logged in to view attached files.
We have added this code to the child theme. Please test how it works on your website now.
It works now, thank you.
Should I have this code permanently in the child theme? Will this be added when updating the main theme?
Yes, please keep this workaround in the child theme after update too.