Home Forums WC Vendors Pro Support Auctions: publish \ commissions for user roles

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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #64057
    Webevol
    Participant

    Hi,
    first of all I want to thanks you for the development of this great plugin that is WC Vendors Pro: it is really a great tool with a lot of possibilities.

    I am developing a marketplace that will sell simple product in a normal mode and also with auctions.
    As I am not a proficiency php developer I need some help for a couple of things that WC surely can does with some lines of codes. I am using:
    OneSocial Marketplace
    WCVendors Pro
    WooCommerce Simple Auction + WC Vendors Pro Simple Auctions
    Paid Memberships Pro

    Using some codes from Anna I have different membership level for different commission level.
    Now what I need to add is a way to:
    – differentiate the commission for the normal product selling and for the auctions
    – differentiate the approval permission for the normal selling and for the auctions: the vendor can edit and publish the product for the normal selling but only the admin can approve the auctions.

    What code can I use to do these or, simply, can you give me some insights to:
    – what properties differentiate the normal woocomerce products than the auction products (so I can detect and manage them on the PHP code)
    – what propertes I need to set to able or disable the publish permissions for the user admin and vendor for the normal product and for the auctions?

    Regards,
    Giovanni

    #64172
    Anna
    Member

    This is an example of how you could adjust commissions based upon category.
    https://gist.github.com/fervous/01c7d017fe6eaaeedbdf8c352701fdfa

    Here is a link to our documentation site, and some ways in which you can use the filters to adjust commissions:
    http://docs.wcvendors.com/knowledge-base/commissions-as-a-fixed-dollar-amount-or-fixed-plus-a-percentage/

    You’d be changing based upon product type, rather than category- but this gives you a starting point.
    As for permissions… I will need to check on that. I am not sure exactly how the code would be written.. conditional, I am sure.. to prevent a user from publishing only the one product type vs. all

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.