Support » Plugin: WooCommerce » Related products showing itself

  • Hi,

    At the bottom of the Woocommerce product pages there is a list of ‘related products’, while this works well, it’s quite annoying that it shows the product itself also listed down there. Is there anyway of preventing the display of itself under the related products?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Comon, surely someone has encountered this?

    When you go to the product page, listed below is related products, the only issue is it also displays itself there too.

    The member monsterness or something solved this in another post.

    Add this to functions.php

    remove_action( ‘woocommerce_after_single_product_summary’,
    ‘woocommerce_output_related_products’, 20 );

    Thank you for your reply, donfre, but that would remove all related products.

    I would like to keep the related products showing but just not show itself on it’s own page. If that makes sense?

    For example:

    Product 2 – related = Product 1, Product 2, Product 3, Product 4

    Remove the related ‘Product 2’ from it’s single product summary as it just links to itself.

    Same problem here. Did somebody find a solution, yet?

    I changed the number of related products to one. But it shows two including the product itself.

    Looks like an issue when using tags. Trying to research a bit more to narrow it down. Any tips would be helpful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Related products showing itself’ is closed to new replies.