Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #21002

    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/

    I should mention I’ve also posted this on the WooCommerce support forum – not sure who is better able to solve this problem.

    #109953

    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 = array(

    ‘title’ => __( ‘Description’, ‘woocommerce’ ),

    ‘priority’ => 10,

    ‘callback’ => ‘woocommerce_product_description_tab’

    );

    #109954

    Afaik you can use some filter code to remove the product description tab. Open up functions.php and at the very bottom insert following code:

    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
    remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );

    I found the code here: http://www.sean-barton.co.uk/2012/05/woocommerce-removing-reviews-tab/#.UTr-ahxE_4I

    #109955

    I have the same problem. I have text in the first box (on the product page in WordPress), then I have some text in the “Attributes” tab which is totally different. For some reason, after the upgrade, the description text is showing up twice and the attributes are not showing up at all. Please help fix this, it looks very unprofessional. (I don’t want to remove the description text).

    http://www.projectgreenbag.com/reusablebags/groceries/

    #109956

    Yes, I have got the same problem, unfortunately: http://fotoetude.com/test/shop/test_1/

    Please, help with this…

    #109957

    “Dude” I added the 2 lines of code you gave, it did nothing. I still see the duplication of text.

    #109958

    If you want to remove the short description tab remove following code from wp-contentthemespropulsionconfig-woocommerceconfig.php.

    //optional short description Tab
    add_action('woocommerce_product_tabs', 'avia_woocommerce_short_description');
    add_action('woocommerce_product_tab_panels', 'avia_woocommerce_short_description_panel');

    If you want to remove the description tab and you’re using WC2.0 use following code instead:

    function remove_wc_tab( $tabs ) {
    unset( $tabs['description'] );

    return $tabs;
    }
    add_filter( 'woocommerce_product_tabs', 'remove_wc_tab' );

    Add it to the bottom of functions.php.

    #109959

    I just tried your second piece of code, and it worked great – thanks! Is it possible to get this permanently incorporated into the theme files somehow so we don’t have to edit the WC files every time they release another update (like they just did again this morning)?

    #109960

    Hi adamsleatherworks,

    It actually used to be like that for the theme but there were so many requests to have it added in that Kriesi added it to the theme files.

    Hopefully he’ll be able to find a fix for the issue with WC2.0 so that it isn’t needed however and it will go back to working without the need for the above :)

    Glad this is working for you for now though.

    Regards,

    Devin

    #109961

    How do I get my “Atributes” to show up again? After the update they all disappeared from all product pages. My “Product Description” is still being shown twice on the page. It looks bad. Please help: http://www.projectgreenbag.com/reusablebags/supermarket/

    #109962

    I did both, remove the old code AND added the new one you sent. This worked and my site is back to normal. Please make this process much easier during the next update. Each update brings so many new problems to troubleshot and takes so much time to fix. This sucks having to do this every time.

    #109963

    Update: I just noticed that my cart and checkout page are not working. The page is all white from the “search box” down. Now customers can add products to the cart but never view the cart nor view the checkout page…. So frustrated… Please help. Try it for yourself here: http://www.projectgreenbag.com/reusablebags/supermarket/

    #109964

    Hi manuelfmartinez,

    I am not having any issues with the cart on your site at the moment. Is this only in a specific browser or OS?

    For the tabs, the only thing we’ve seen that causes an issue is other plugins interfering with woocommerce. So try disabling all other active plugins and see if that helps.

    Regards,

    Devin

    #109965

    To see the problem do the following.

    - Add an item to the cart

    - Click “Checkout”

    - Click on the “Country” drop-down. You will see it doesn’t open all the way. Looks like there is a small mask around it…

    - Refresh that page. Sometimes no checkout boxes appear. Sometimes it does.

    What is causing the strange drop-down behavior where it is not able to open all the way? I’m on the latest version of Chrome on Mac.

    #109966

    That is caused by the new country search option. You need to go to the WooCommerce settings and the General tab has an option for:

    Styles and Scripts

    Enable enhanced country select boxes

    Uncheck that option and then Save Changes.

    Regards,

    Devin

    #109967

    Unfortunately since a fatal crash of my site, the code above doesnt work for me anymore. The double descriptions appear again and cant be removed so far. Can you pleas review, what`s wrong?

    #109968

    Hi,

    I visited this link http://www.projectgreenbag.com/reusablebags/supermarket/ and I don’t see a double descriptions. Is this fixed?

    Regards,

    Ismael

    #109969

    Yes the duplication is fixed. I had to hack the crap out of the code to get it to work….

    Now I’m not getting any emails when a customers submits an order. I cannot access my settings because I have to intall and activate BBPress but I do not want to use BBpress. Never. Not at all. Why are we now forced to do this?

    #109970

    Update: Now if I install BBPress I cannot even login to my site. After logging in it just redirects me to my homepage. What is going on here???

    #109971

    Hey!

    To fix the issue (“I cannot access my settings because I have to intall and activate BBPress…”) open up wp-contentthemespropulsionincludesadminregister-plugins.php and delete following code:

    add_action( 'tgmpa_register', 'my_theme_register_required_plugins' );

    Regards,

    Peter

    #109972

    Was there ever a better fix for this? I am having duplicates so I used the code above to completely remove the short description tab from the product but I hope there is a better solution coming through soon.

    Forgive me for thread hijacking for a minute but could you please also look at my site http://goo.gl/F64a2 and help with two things regarding the tabs:

    1) Why is Product Attributes showing as H1 heading?

    2) How can I get the social share button below everything and right above the “related products” section?

    Thanks.

    #109973

    Hi,

    I see three H1 tags on the page you provided, 1 is logo, 1 is page title, 1 is product title. I don’t see any attributes, just the same phrase that matches the page slug, and title.

    ==

    To move the social buttons. You will need to open up functions.php at the base of the theme and cut (ctrl-x) lines 198-204 that look like

    echo '<ul class="social_bookmarks">';
    do_action('avia_add_social_icon','header');
    if($dribbble = avia_get_option('dribbble')) echo "<li class='dribbble'><a href='http://dribbble.com/".$dribbble."'>".__('Follow us on dribbble', 'avia_framework')."</a></li>";
    if($twitter = avia_get_option('twitter')) echo "<li class='twitter'><a href='http://twitter.com/".$twitter."'>".__('Follow us on Twitter', 'avia_framework')."</a></li>";
    if($facebook = avia_get_option('facebook')) echo "<li class='facebook'><a href='".$facebook."'>".__('Join our Facebook Group', 'avia_framework')."</a></li>";
    echo ' <li class="rss"><a href="'.avia_get_option('feedburner',get_bloginfo('rss2_url')).'">RSS</a></li>';
    echo '</ul>';

    and paste the above block right before line 593 of /config-woocommerce/config.php

    echo "div class='product_column product_column_".$avia_config['shop_single_column']."'>";

    That’s it. However you may need to figure out specifically where you want the buttons to appear since right now they will be on top of the related products. You may need to adjust the location by trying 597 and other lines as the place to paste the code you cut from the first page.

    Thanks,

    Nick

    #109974

    Sorry about the confusion. I tried your code and it moved the stock Propulsion Social Media links BUT I was referring to the SHARE icons that are created using a Social Share plugin.

    I just disabled Product Attributes completely for now so you will not be able to see it.

    #109975

    Hi,

    So paste whatever that plugin you are using gives you (shortcode or php code) and paste it in the location that I gave you before. I don’t use that plugin so am not really sure how it works. You can ask on their support forum regarding what to paste, and just paste it in the location i describe above instead.

    Thanks,

    Nick

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

The topic ‘Duplicate Product Descriptions after 2.0 Update’ is closed to new replies.