Home Forums Plugin or Theme Compatibility adding a new product type to the product type restriction list

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
  • #5721
    seba96
    Participant

    Hi i’m using “WC paid listings” plugin in conjunction with WC Vendors and This plugin has added a new Product type to the Woocommerce product Types drop-down box and as you know WC Vendors allows us to Hide these product types from a vendor but this new added “Listing package” product type is not showing up in the products type restriction list so I was wondering how can i go about adding it to this list of products that can be hidden so I can hide it from my vendors. Thank you

    #5722
    WC Vendors Support
    Participant

    Great question! I don’t know. 🙂 I dont own that plugin, and it’s a paid plugin, so it’s not like I can just download it and look at it. Mike, the author, should be able to give you a little script to check if the role = administrator, then show, otherwise hide.

    #5725
    seba96
    Participant

    Thanks ben it would be great if Mike can do that for me, cause I’m at a loss with this one.

    #5726
    Jamie
    Keymaster

    Hello,

    You would just have to take it out of the product types filter. Here’s a bit of pseudo code to get you started.

    https://gist.github.com/digitalchild/16baaa9da4eeaf13e05f

    You’d just have to find what the array index the plugin uses to add it and remove it if the current user is a vendor.

    cheers,

    Jamie.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Plugin or Theme Compatibility’ is closed to new topics and replies.