• Resolved diptoo

    (@diptoo)


    Hello,
    I need help to hide duplicate product. When different vendor add same product, it shows on shop page and other pages.

    i WANT TO hide all the duplicate products. only show the products with minimum order.

    View post on imgur.com

    please help..
    Thanks

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please add this line to your site –

    add_filter( 'wcfm_is_allow_product_loop_duplicate_hide', '__return_true' );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    Thank You

    Thread Starter diptoo

    (@diptoo)

    Hello WC Lovers,

    Thanks for your help.

    i WANT TO hide all the duplicate products. only show the products with minimum price.
    in your snippet it’s hide new duplicate product.

    View post on imgur.com

    Plugin Author WC Lovers

    (@wclovers)

    OK, I will give a better code for this.

    Thread Starter diptoo

    (@diptoo)

    Hello wc lovers,

    Still looking forward from you..
    Waiting for the suppory..

    Thanks

    Hello,

    I am having this problem too. Is there any new code to solve it?

    Thanks in advance

    Plugin Author WC Lovers

    (@wclovers)

    Which theme you are using for the purpose?

    Between, this code no more require now, it’s part of WCFM Marketplace core now –

    add_filter( 'wcfm_is_allow_product_loop_duplicate_hide', '__return_true' );

    Thank You

    tajmohamed30

    (@tajmohamed30)

    this code doesn’t work for my site

    add_filter( ‘wcfm_is_allow_product_loop_duplicate_hide’, ‘__return_true’ );

    when adding this code I do again get duplicates for a single product in related products

    is there any way to also include store vendor names inside codes to remove duplicates

    thanks

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    add_filter( ‘wcfm_is_allow_product_loop_duplicate_hide’, ‘__return_true’ );

    – Do not add this code, it will enable showing duplicate products.

    Thank You

    Plugin Author WC Lovers

    (@wclovers)

    I can’t hide duplicate products

    – From where?

    Between, do not add that code, it’s now part of core.

    Thank you

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Are those products visible here? https://gofeesha.com/product-category/playstation-4/

    It’s possibly due to theme, it does not use WooCommerce standard query for fetching products.

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Hide duplicate product from shop page’ is closed to new replies.