WooCommerce - excelling eCommerce
Related products showing itself (6 posts)

  1. 3Lancer
    Posted 1 year ago #


    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?


  2. 3Lancer
    Posted 1 year ago #

    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.

  3. donfre
    Posted 1 year ago #

    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 );

  4. 3Lancer
    Posted 1 year ago #

    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.

  5. Design made on journey
    Posted 1 year ago #

    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.

  6. ProgressionStudios
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic