Urgent, plugin converted all products to pending status
-
I’ve been struggling with WC Multivendor Marketplace, though it looks wonderful and almost works! Programming this to work with Woocommerce Simple Auctions as you indicated it would integrate. This is for silent auction, all proceeds to admin. Had over 250 products already in shop (NOT auction items). Added WC MVM, configured and attempted to allow ONLY one product category, Auction Items, be available to a “vendor” (free registered contributor to silent auction for benefit of non-profit). I was never able to limit the category for “vendor” to select just “Auction Item” for their product, BUT, your code snippet to hide virtual and download worked well. So… I tried to modify it to hide all ids for categories that should not be available (only ONE taxonomy with id 676 should be available in this dashboard). It may be that this function changed all product statuses to pending, and they disappeared from shop… Not sure. But below is the code, and I removed it from functions, but products of course are still pending. What is snippet to reverse the hiding? I am willing to pay for Pro if hiding all categories except one for vendor is too much work. Here is my function, which was supposed to apply ONLY to vendor dashboard… Please help??
function wcfm_custom_product_manage_fields_general( $general_fileds, $product_id, $product_type ) { global $WCFM; $product_id = array(51, 321, 517, 525, 526, 423, 323, 331, 330, 328, 329, 83, 376, 200, 201, 202, 203, 188, 87); if( in_array( $product_id) ) { $general_fileds[$product_id]['class'] = 'wcfm_custom_hide'; $general_fileds[$product_id]['desc_class'] = 'wcfm_custom_hide'; } if( isset( $general_fileds['is_virtual'] ) ) { $general_fileds['is_virtual']['class'] = 'wcfm_custom_hide'; $general_fileds['is_virtual']['desc_class'] = 'wcfm_custom_hide'; } if( isset( $general_fileds['is_downloadable'] ) ) { $general_fileds['is_downloadable']['class'] = 'wcfm_custom_hide'; $general_fileds['is_downloadable']['desc_class'] = 'wcfm_custom_hide'; } return $general_fileds; } add_filter( 'wcfm_product_manage_fields_general', 'wcfm_custom_product_manage_fields_general', 150, 3 );
thank you in advance…
The page I need help with: [log in to see the link]
- The topic ‘Urgent, plugin converted all products to pending status’ is closed to new replies.