Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Issue adding vendor products after deleted
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by WCFM Forum.
- AuthorPosts
- April 10, 2019 at 8:16 pm #57209ehagglerParticipant
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.
- April 12, 2019 at 7:03 pm #57478WCFM ForumMember
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
- April 21, 2019 at 4:02 pm #58874ehagglerParticipant
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.
- April 24, 2019 at 8:47 am #59129WCFM ForumMember
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
- AuthorPosts
- The topic ‘Issue adding vendor products after deleted’ is closed to new replies.