Issue adding vendor products after deleted

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    Posts
    • #57209
      ehaggler
      Participant

      Hello there is a issue when a vendor adds a product via sell one like this

      1 the product is duplicated – problem if there are 10 vendors selling the same product it is will be shown 11 times the point of having “single product multiple vendor” is to avoid site clutter. Is there a way to fix this to not show duplicated items

      2 when a vendor adds a product via sell one like this “single product multiple vendor” and after lets say they delete the item the button sell one like this is gone. means if the seller wants to relist or sell that item again they can not click the button sell one like this because it is gone. can you fix this please.

      Question is it possible for vendor to have archive products that they added or sold in the past so they can simply relist the same item again if they want.

      Thanks for your time and help.

    • #57478
      WCFM Forum
      Member

      Hi,

      1 the product is duplicated – problem if there are 10 vendors selling the same product it is will be shown 11 times the point of having “single product multiple vendor” is to avoid site clutter. Is there a way to fix this to not show duplicated items

      Please add this code to your child theme’s functions.php –

      add_action('woocommerce_product_query', function($q) {
      	global $WCFM, $wpdb;
      	if(!wcfm_is_store_page()) {
      		$more_offers = $wpdb->get_results( "SELECT * FROM <code>{$wpdb->prefix}wcfm_marketplace_product_multivendor</code>" );
      		$exclude = array();
      		foreach ($more_offers as $key => $value) {
      			if( !in_array( $value->parent_product_id , $more_offers) ) {
      				$exclude[] = $value->product_id;
      			}
      		}
      		$q->set( 'post__not_in', $exclude );
      	}
      }, 50 );

      2 when a vendor adds a product via sell one like this “single product multiple vendor” and after lets say they delete the item the button sell one like this is gone. means if the seller wants to relist or sell that item again they can not click the button sell one like this because it is gone. can you fix this please.

      – We are checking this, sure resolve this.

      Question is it possible for vendor to have archive products that they added or sold in the past so they can simply relist the same item again if they want.

      – They already have those product in WCFM Dashboard -> Product List – right?
      Now, vendor just have to duplicate that and re-publish.

      Thank You

    • #58874
      ehaggler
      Participant

      hello

      1 the product is duplicated – this solution makes no change to my website.

      2. did you find a fix for 2 when a vendor adds a product via sell one like this “single product multiple vendor” and after lets say they delete the item the button sell one like this is gone. means if the seller wants to relist or sell that item again they can not click the button sell one like this because it is gone. can you fix this please.

    • #59129
      WCFM Forum
      Member

      HI,

      1 the product is duplicated – this solution makes no change to my website.

      – That code no more required, just add this line of code –

      add_filter( 'wcfm_is_allow_product_loop_duplicate_hide', '__return_true' );

      2. did you find a fix for 2 when a vendor adds a product via sell one like this “single product multiple vendor” and after lets say they delete the item the button sell one like this is gone. means if the seller wants to relist or sell that item again they can not click the button sell one like this because it is gone. can you fix this please.

      – This has been already resolved in WCFM Marketplace 3.0.3, please update yours and test with a new product.

      Thank You

Viewing 3 reply threads
  • The topic ‘Issue adding vendor products after deleted’ is closed to new replies.