• Resolved joy0114

    (@joy0114)


    Hi,

    A strange issue: after adding 3 tabs for a product, I activated reviews, so I get a new tab called “reviews” and its content is showing.
    But for other products (all product are manually added, no import), the content of “reviews” is not showing.
    Precision, the content of the precedent tab is a shortcode toward a contact form 7 form (which is correctly displayed).
    And if I remove this tab (the one with shortcode for content), the content of “reviews” is showing well…

    I tried the snippet given in a precedent ticket:

    add_filter( 'yikes_woo_use_the_content_filter', '__return_false' );
    
    add_filter( 'yikes_woo_filter_main_tab_content', 'yikes_woo_custom_tab_content_filter', 10, 1 );
    
    function yikes_woo_custom_tab_content_filter( $content ) {
    
    	$content = function_exists( 'capital_P_dangit' ) ? capital_P_dangit( $content ) : $content;
    	$content = function_exists( 'wptexturize' ) ? wptexturize( $content ) : $content;
    	$content = function_exists( 'convert_smilies' ) ? convert_smilies( $content ) : $content;
    	$content = function_exists( 'wpautop' ) ? wpautop( $content ) : $content;
    	$content = function_exists( 'shortcode_unautop' ) ? shortcode_unautop( $content ) : $content;
    	$content = function_exists( 'prepend_attachment' ) ? prepend_attachment( $content ) : $content;
    	$content = function_exists( 'wp_make_content_images_responsive' ) ? wp_make_content_images_responsive( $content ) : $content;
    	$content = function_exists( 'do_shortcode' ) ? do_shortcode( $content ) : $content;
    
    	if ( class_exists( 'WP_Embed' ) ) {
    
    		// Deal with URLs
    		$embed = new WP_Embed;
    		$content = method_exists( $embed, 'autoembed' ) ? $embed->autoembed( $content ) : $content;
    	}	
    
    	return $content;
    }

    But without success …

    Perhaps some has got an idea … I really need this tab with the shortcode, and I would like to use reviews also …
    I can give links for visualizing the issue if necessary.

    Thanks a lot
    And take care of you and others.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @joy0114,

    You won’t need that snippet so you can safely remove that if you haven’t. Go into the main page of Custom Product Tabs and on the bottom right side of the page you’ll see this setting Toggle the_content filter..

    Turn that on and let me know if that solves your issues!

    Cheers,
    Freddie

    Thread Starter joy0114

    (@joy0114)

    Hi Freddie,

    Thanks a lot for your answer.
    Ok, I deleted the snippet, and used the setting.
    But sadly, it does not solve the issue…

    I enabled this setting, cleaned cache, re-saved tabs, updated the product, cleaned web navigator cache, and there is the same issue:
    The tab which contains the CF7 form (called with <div>[shortcode_for_the_form]</div>) is displaying, but the next and last tab (the one for reviews) has an empty content.

    Title of the tab is linked to <div id=”tab-reviews”>, but this div is not generated.

    If I delete the tab with CF7 form, this div to “tab-reviews” is created and everything works well.

    Perhaps, if I give you theses 2 links, you will see by yourself:

    Product with NO CF7 form in tabs but with reviews:
    No cf7 form

    Product WITH CF7 form (tab “Personnalisation”), but no reviews:
    With CF7 form, no reviews …

    Sorry, these are french located page.

    By the way, inside the form, the link towards the “Nuancier” is a link towards a pdf into an iframe (created with Wow Modal Windows Pro). But, deleting this link does not solve the issue.

    Last notice: with development tool of firefox, section “debug”, “Main execution thread” , “ressource://gre”, “modules”, “ExtensionContent.jsm”, there is an error:

    Error: Incorrect contents fetched, please reload.

    I don’t known what is ExtensionContent.jsm, but, perhaps, it could help.

    If you have any idea, it would be wonderful !

    Best regards,
    Bertrand

    @joy0114,

    Can you make sure that you have the reviews setting enabled in your WooCommerce settings.

    Make Sure Review Settings Are On:
    WooCommerce > Settings > Products > General tab > Allow customer reviews

    Also, could you let me know what theme and plugins you’re using so I can try to reproduce the issue in my development environment?

    Cheers,
    Freddie

    Thread Starter joy0114

    (@joy0114)

    Hi Freddie,

    Yes, “reviews” are enabled in WooCommerce > Settings > Products > General tab
    AND in the product creation page.

    Beside, the title of review’s tab show the number (1 for a test) of reviews.
    I use woocommerce 3.5.7 with the “standard” theme (storefront ?), but, to get this design, I worked on single-product.php and so on. But another time, it works (reviews are loaded) for product which don’t have a tab containing a CF7 form…

    Perhaps you noticed it with my 2 url ?

    And, as said, within the form, there is a call towards a pdf into an iframe, with Wow Modal Windows. But, deleting it, does not solve the issue.

    This is why I suspect Contact Form 7 (release 5.1) to be the guilty…

    What can I tell you in addition ?

    Anyway, thanks a lot for your help.
    Best regards
    bertrand

    Thread Starter joy0114

    (@joy0114)

    Hi Freddie,

    FOUND ….

    It was missing a </div> … in the CF7 form …
    So everywhere I was placing the tab containing the contact form (in first, second,… position), all the content of tabs located after it, could not be displayed …

    Logic…

    Sorry for having take your time. And thanks for your help !

    So it’s solved. And your plugin is working like a charm, better than me …
    Have a good day.
    Cheers,
    Bertrand

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Hi @joy0114

    We’re glad you were able to figure it out!

    Stay safe,
    -Tracy

    Thread Starter joy0114

    (@joy0114)

    Hi Tracy,

    Thanks for your plugin and work about WordPress for community.
    The same for you: stay safe and take care of you and others also.
    Bertrand

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tab content not displaying’ is closed to new replies.