Dynamic links and admin only products
-
Hello, hope all is well. Thank you again for these amazing plugins and service. I have a couple issues I just cant figure out and I’m hoping you can assist;
1) how can I style the “tab links area” in vendor store? If not possible, how do I create dynamic links I can place within a widget menu?2) how can I make it so vendors can only add admin uploaded products to there marketplace?
I have this code i got previously but it doesnt seem to do anything, none of admins products are visible to vendors and vendors still able to add own products.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 );
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 );Is there something I’m missing?
- The topic ‘Dynamic links and admin only products’ is closed to new replies.