Showing Products on certain pages

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Showing Products on certain pages

Viewing 5 reply threads
  • Author
    Posts
    • #130513
      sam-7746
      Participant

      Hello!

      This might be a simple question but I was wondering if I could get some help with this. Our team is new to this Marketplace.

      So we have a main store page that sells products and then a marketplace page where we want to sell from different vendors. So far we only have one vendor setup called Flying Bison. Is there a way to only show Flying Bison products on their vendor page and NOT the main sites store page? We can’t seem to figure it out. We would really appreciate some help here.

      Thank you! 🙂

    • #130878

      Hello,

      If you want to show only admin’s products in WooCommerce shop page( main store page),not any vendor’s products –

      function custom_pre_get_posts_query( $query ) {
      	if ( !wcfm_is_store_page() ) {
      		  $query->set( 'author', 1 );
      	}
      }
      add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' ); 

      Try this code to your child theme’s functions.php

      Thanks.

    • #131461
      sam-7746
      Participant

      Hello! Thank you for the help! Really appreciated.

      I added that to our themes functions.php and it did not seem to hide a test product from the main store page. Would you be able to direct us more?

    • #131737

      Hello,

      Is “Test product” created by your vendor?
      Can you provide us your site url with admin access? then we can check your site and guide you properly.(Set as private reply)

      Thanks.

    • #133566
      sam-7746
      Participant
      This reply has been marked as private.
    • #134093
      This reply has been marked as private.
Viewing 5 reply threads
  • You must be logged in to reply to this topic.