Vendor Page Template

This topic contains 3 replies, has 2 voices, and was last updated by WCfM Forum WCfM Forum 1 week, 3 days ago.

  • Author
    Posts
  • #61847 Reply
    Avatar
    Pradikta Dwi Anthony

    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.

    https://prnt.sc/nn8sbh

  • #61912 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    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

  • #62276 Reply
    Avatar
    Pradikta Dwi Anthony

    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?

  • #62480 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    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

Reply To: Vendor Page Template
Your information: