Woof and Dokan vendor shop page
-
Hello,
I’m using woof and dokan together, everything works perfectly in woocommerce side, but in dokan vendor shop page woof displays whole filters and not filters for vendor product, i tried to use this codefunction woof_modify_query( $query ) { // Check we're on a /shop page before filtering the product query. if( dokan_is_store_page() ) { $store_user = dokan()->vendor->get( get_query_var( 'author' ) ); $query['author'] = $store_user->id; return $query; } } add_action( 'woof_products_query', __NAMESPACE__.'woof_modify_query' );
but doesnt work,
could you please tell me how can i show only existed products filter in dokan vendor shop page?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Woof and Dokan vendor shop page’ is closed to new replies.