Home Forums WoodMart support forum Product tabs – fatal error

Product tabs – fatal error

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #624470

    grehgor
    Participant

    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.
    #624642

    Artem Temos
    Keymaster
    Xtemos team

    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

    #624903

    grehgor
    Participant

    Hello, I have disabled all foreign plugins and the problem is still there.

    #625009

    Artem Temos
    Keymaster
    Xtemos team

    Please send us your FTP access so we can troubleshoot the error.

    #625041

    grehgor
    Participant

    Ok…

    #625125

    Artem Temos
    Keymaster
    Xtemos team

    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' );
    	}
    #625155

    grehgor
    Participant

    the code does not contain a syntax error, but the website cannot run it – error

    #625250

    Artem Temos
    Keymaster
    Xtemos team

    Could you please send us a screenshot of how you placed the code and a screenshot of the error?

    #625495

    grehgor
    Participant

    I use Code Snippets to implement the code

    Attachments:
    You must be logged in to view attached files.
    #625503

    Artem Temos
    Keymaster
    Xtemos team

    We have added this code to the child theme. Please test how it works on your website now.

    #625505

    grehgor
    Participant

    It works now, thank you.
    Should I have this code permanently in the child theme? Will this be added when updating the main theme?

    #625532

    Artem Temos
    Keymaster
    Xtemos team

    Yes, please keep this workaround in the child theme after update too.

Viewing 12 posts - 1 through 12 (of 12 total)