• I have enabled a feature for vendors i.e. “Add to Store” but I found that it showing same product multiple times because multiple vendors have added the same product to their respective stores.

    Let say product Samsung galaxy A31 is being sold by 5 vendors and when a new 6th vendor tries to add the same product, he is showing the same product 5 times while adding the product to his store. This is increasing a long list of products.

    Ideally add to store should show only one product having lowest price rather showing it 5 times.

    any solution to handle above scenario?

Viewing 3 replies - 1 through 3 (of 3 total)
  • add_filter( ‘wcfm_sell_items_catalog_args’, function( $args ) {
    if( isset( $args[‘author__not_in’] ) ) unset( $args[‘author__not_in’] );
    $args[‘author’] = 1;
    return $args;
    }, 50, 2 );
    add_filter( ‘wcfmmp_is_allow_single_product_multivendor_by_product’, function( $is_allow, $product_id ) {
    global $WCFM, $WCFMmp, $product, $post;

    $product_author = wcfm_get_vendor_id_by_post( $product_id );
    if( $product_author ) {
    $is_allow = false;
    }
    return $is_allow;
    }, 50, 2 );`

    try this code, they can add and see products uploaded by admin only. i hope it helps.

    Thread Starter atharvaitsolutions19

    (@atharvaitsolutions19)

    Thanks for your guide but there is a small change. It should filter and show only lowest priced product whether uploaded by admin or vendors.

    I see the bigger issue is that it is duplicate content. Google will not index any of the products if just the seller and price are different. How would google know which one is the one that has any meaning in search.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to Store Showing Duplicate Products’ is closed to new replies.