WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Duplicate Product Descriptions after 2.0 Update (5 posts)

  1. particlerealities
    Member
    Posted 1 year ago #

    After updating to Woocommerce 2.0, I instantly started getting duplicate product descriptions on all of my products. My product description is typed into the long description box - I have nothing typed into the short description box. Somehow, the short description is pulling from the long description box. I'd like to disable the short description tab and simply have the review tab at the bottom of my product pages. I can't not find a way to disable the short product description tab - can someone please help? Here is my site if you'd like to see what it's doing:

    http://www.adamsleatherworks.com/shop/

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Have you tried asking your theme developer about this? Perhaps their theme is not 2.0 ready yet.

  3. particlerealities
    Member
    Posted 1 year ago #

    The theme developer has released an update, which I have installed already, but will bring this to his attention again. This isn't the first time I've been down this road, sadly. Unfortunately, I can't remember how I fixed it the first time.

  4. particlerealities
    Member
    Posted 1 year ago #

    This is still unresolved, but I put a band-aid on it for now. The problem seems to be the description tab is seeing the "Product Short Description" box as being empty, so it's pulling the text from the Long Description box. If I cut the text from the long description box and paste it into the Short Description box, the formatting doesn't work as well.

    I tried keeping the text in the long description box, then simply put a "." (period) in the Short Description box, but then I got three tabs - a short, long and review tab.

    For now I went into the woocommerce-template.php file and removed the following lines of code so it would stop calling the description tab...

    if ( ! function_exists( 'woocommerce_product_description_tab' ) ) {
    
    	/**
    	 * Output the description tab content.
    	 *
    	 * @access public
    	 * @subpackage	Product/Tabs
    	 * @return void
    	 */
    	function woocommerce_product_description_tab() {
    		woocommerce_get_template( 'single-product/tabs/description.php' );
    	}
    }
    // Description tab - shows product content
    		if ( $post->post_content )
    			$tabs['description'] = array(
    				'title'    => __( 'Description', 'woocommerce' ),
    				'priority' => 10,
    				'callback' => 'woocommerce_product_description_tab'
    			);
  5. kathieal
    Member
    Posted 1 year ago #

    I found a solution for this here - http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UT7p8NGPip1

    I edited it for product tab. Code below

    add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_description_tab', 98);
    function sb_woo_remove_description_tab($tabs) {
    
     unset($tabs['description']);
    
     return $tabs;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic