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
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
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
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
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
I can’t hide duplicate products
– From where?
Between, do not add that code, it’s now part of core.
Thank you
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