Home Forums WC Vendors Pro Support post_status – Hide from shop and vendor dashboard

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39112
    João
    Participant

    Hi,

    I have a membership program running on my marketplace and each plan has a limit number of products.
    For this to work, I need to hide products from the shop and also from the vendor in the dashboard.
    The easiest way to achieve this is tho change the post_status from wp_posts to another status.
    Draft status is great to hide from the shop and search, but not from the vendor dashboard. Trash status does both, but I don’t want to take the risk of emptying the trash by mistake (or by some database maintenance plugin) and disappear with some products (I want them available when the vendor comes back or upgrades his plan).

    By the other side, if I change the post status to a personalized status, let’s say suspended_it (this is not a woocommerce status. I just wrote it now), it will not show up in the shop (perfect), but still shows up in the vendor dashboard (not so perfect for what I need).

    So my question is: is there any post_status to hide the product from everyone but not the admin?
    Or, if it doesn’t exist, how can I hide a specific post_status from the vendors dashboard?

    Thanks!

    Best regards,
    João Capinha

    #39254
    João
    Participant

    Hey,

    Just making sure you didn’t forget my question 🙂

    #39260
    Anna
    Keymaster

    João,
    Yes, it looks like I missed your question- apologies. 🙂

    I will pass this over to Ben to see if he can help you more..

    All I can think of at this point is to use your draft status in combination with a plugin or code that will restrict content/access to the vendor’s dashboard page so they cannot access the products – but that would also block them from other shop activities.

    #67475
    Bola Gadalla
    Participant

    @JPKAPINHA

    Hello
    I know this was last year but if it would be posible to share your code that u used to hide products by sending them to draft here? because i been looking for something like this for a long time and maybe someone else is too.

    Thanks a lot.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
Days
Hours
Minutes
Seconds
Our Sale is over. See you next year.

DON'T MISS OUR ONLY SALE OF THE YEAR

Your discount is automatically applied. Don't lose it. This is our only offer of the year. 

Not valid for our bundles or renewals.

BLACK FRIDAY / CYBER MONDAY SALE ON NOW
SAVE 25% OFF! LIMITED TIME ONLY.
Days
Hours
Minutes
Seconds
Our Sale is over. See you next year.
Discount is automatically applied
Our ONLY sale of the year.
Not valid for our discounted bundles or renewals.

This website uses cookies to ensure you get the best experience on our website.