• Hi I’m using the plugin woocommerce quickview plugin for a pop up.
    It’s showing my product description only instead of the full text about the post-product. Why?

    This is the code that’s doing it but what do I do?

    if ( version_compare( WC()->version, '2.2.0', '<' ) ) {
    			$my_product = get_product( $product_id );
    		} else {
    			$my_product = wc_get_product( $product_id );
    		}
    		$my_post = get_post( $product_id );
    		$product_name = get_the_title( $product_id );
    		$product_url = get_permalink( $product_id );
    		$product_description = strip_tags( WC_Quick_View_Ultimate::strip_shortcodes( strip_shortcodes( $my_post->post_excerpt ) ) );
    		if ( $quick_view_template_product_description_settings['pull_description_from'] == 'description' || trim( $product_description ) == '' ) {
    			$product_description = WC_Quick_View_Ultimate::limit_words( strip_tags( WC_Quick_View_Ultimate::strip_shortcodes( strip_shortcodes( $my_post->post_content ) ) ), $quick_view_template_product_description_settings['description_characters'] );
    		}

    and this

    <!-- Product Description -->
                    <?php if ( $quick_view_template_product_description_settings['show_description'] == 1 ) { ?>
                    <div class="quick_view_product_description_container">
                    <?php echo $product_description; ?>
    
                    </div>
                    <?php } ?>

    Usually when this happens in wordpress search pages for example I just insert <?php the_content(); ?> and it works but not here!

    help please!

The topic ‘quickview show post content instead of description!’ is closed to new replies.