Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21215

    Hi,

    I’d like to remove the “Related Products” customers see when they click on any specific product in my Shop. Is there a quick CSS code for that?

    #111019

    Hi saltyglo,

    You can add this to Quick CSS:

    .related.products {
    display: none;
    }

    or

    .related.products {
    display: none !important;
    }

    Hope this helps.

    Regards,

    Ismael

    #111020

    Actually I wanted to know how to remove Related Products when there are Upsells displayed if that’s possible

    #111021

    It worked, thank you!

    #111022

    You can try to replace following line in wp-contentthemesflashlightwoocommerce-configconfig.php:

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

    with:

    global $product, $woocommerce, $woocommerce_loop;
    $upsells = $product->get_upsells();

    if ( sizeof( $upsells ) == 0 )
    {
    add_action( 'woocommerce_single_product_summary', 'avia_woocommerce_output_related_products', 60);
    }

    I didn’t test the code but it uses some code parts from wp-contentpluginswoocommercetemplatessingle-productup-sells.php and should work.

    #111023

    Nah didnt work

    I got the error

    Fatal error: Call to a member function get_upsells() on a non-object in /wp-content/themes/flashlight/woocommerce-config/config.php on line 105

    I will take a look later, im not that fussed, just would have been a nice addition

    #111024

    Hi xGSTQ,

    I’ll tag the topic for Peter as I’m not familiar with what he was trying to do but he may be able to offer an additional fix.

    Regards,

    Devin

    #111025

    Found this answer on Woocommerce site. Had this issue after updating wool 2.0.7 and Propulsion 1.9.1 and it worked for me. It took out the Related product’s hr flag and everything from my product pages.

    Page on Woo…

    http://docs.woothemes.com/document/remove-related-posts-output/

    #111026

    Hey!

    Glad you found a solution :)

    Best regards,

    Peter

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

The topic ‘Remove "Related Products" on Shop page’ is closed to new replies.