Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Vendor Page Template
- This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by WCFM Forum.
- AuthorPosts
- May 11, 2019 at 3:47 pm #61847Pradikta Dwi AnthonyGuest
Hi,
I’m using The Ark from Freshface themes and when I see a single vendor page, you use the “Product Archive” template. Because of that, after the theme printing all single vendor page content, right below the footer the theme also render product archives (Store) template. Is there any way to disable this or for your single vendor template to use different template? Screenshot attached, the site still under development.
- May 12, 2019 at 10:23 am #61912WCFM ForumKeymaster
HI,
Please add this code to your child theme’s functions.php –
add_filter( 'pre_get_posts', function( $query, $that = null) { global $wp_query, $post; $wcfm_store_url = get_option( 'wcfm_store_url', 'store' ); $store_name = urldecode( get_query_var( $wcfm_store_url ) ); if ( !is_admin() && $query->is_main_query() && !empty( $store_name ) ) { $query->is_archive = false; $query->is_post_type_archive = false; } return $query; }, 50, 2 );
Well, if you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thank You
- May 15, 2019 at 3:29 am #62276Pradikta Dwi AnthonyGuest
OMG it works!
THANK YOU SO MUCH!
Anyway, how to approve “Booking needs confirmation” when using WooCommerce Bookings extension from vendor page without accessing backend (wp-admin)? Or, can admin (not vendor) approve it on behalf of vendor?
- May 16, 2019 at 1:49 pm #62480WCFM ForumKeymaster
Hi,
You are welcome 🙂
Well, you are using WCFM Free so getting only partial integration. Others are coming with WCFM Ultimate (https://wclovers.com/product/woocommerce-frontend-manager-ultimate/)
Thank You
- AuthorPosts
- The topic ‘Vendor Page Template’ is closed to new replies.