Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16461

    I need help!!!

    1_ After update plugin WooCommerce the of upsells, related products show two times in the single page of product.

    2 And I want delete de social bookmarks and search form in singles pages of products, really I want delete this in all theme. I want only show this when I create a dinamic template .

    Thank you so much!!! ;)

    Sorry for my English

    #91579

    Hi,

    1. Open up propulsion/woocommerce-config/config.php

    2. Add following line to “//single page removes” section on top 1/4 of page:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );

    Adding this removes new WC1.6.4 hook that places upsell box outside of the product summary section

    3. Switched order of include hooks in //single page adds section to place upsells above related:

    add_action( 'woocommerce_single_product_summary', 'avia_woocommerce_output_upsells', 60);
    add_action( 'woocommerce_single_product_summary','avia_woocommerce_output_related_products', 60);

    2) Open up functions.php and replace following code:

    if($meta === true)
    {
    get_search_form();

    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>';
    }
    else if(function_exists($meta))
    {
    $meta();
    }

    with

    if($meta === true && !is_product())
    {
    get_search_form();

    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>';
    }
    else if(function_exists($meta) && !is_product())
    {
    $meta();
    }

    #91580

    Hi thank you for the response, but a I made all the steps and now my theme show two times upsells products and one related products.

    Before only repeat de products of upsells and didn´t show related products.

    Sorry for the inconvenience but I need a solution for this

    Tanks, ;)

    #91581

    Thank you so much, All work ok now!!!

    #91582

    Hi luia,

    Glad that Peter helped you. :)

    Cheers,

    Ismael

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

The topic ‘up-sells/related products show duplicate after update plugin WooCommerce’ is closed to new replies.