WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. 3Lancer
    Member
    Posted 5 months ago #

    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?

    https://wordpress.org/plugins/woocommerce/

  2. 3Lancer
    Member
    Posted 5 months 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
    Member
    Posted 5 months 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
    Member
    Posted 5 months 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
    Member
    Posted 4 months 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
    Member
    Posted 4 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic