• Resolved Isabel Pinhel

    (@isabelpinhel)


    Hi,

    I am building a services marketplace and I want to ensure that vendors only receive their commission no sooner than 24h after the booking date (similar to Airbnb’s model). This is to reassure customers that vendors must deliver the service in order to be paid and never receive payment upfront.
    To better manage my order status I am using Woocommerce Order Status Manager plugin and I have created another order status called “Fulfilled” to follow “Completed” to mark all orders whose booking date has elapsed.
    Currently WC Vendors marks commission status as “due” as soon as order status is “completed”. I wanted for WC Vendors to use this new order status “Fulfilled” instead and return “due” commission status after 24h. How can I do this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    The due status is for the commissions only and are not related to the order status. Unless you are using a supported gateway the vendors will not receive their commissions automatically. The issue I see here is that you need a way for the customer to confirm that they have received the service which would then allow you to know which vendors should be paid. This however is not a feature at this time but we have this as an open issue we will investigate later in the year.

    cheers,

    Jamie.

    Thread Starter Isabel Pinhel

    (@isabelpinhel)

    Hi Jamie,

    I do not need a way for the customer to confirm the service has happened, it’s the other way around, I want the customer to have a 24h period (or whatever period I define) after the order date to let us know IF the service has NOT happened, ie. if all runs smoothly, there is no need for any party to intervene. And I am not expecting the plugin to handle any customer refund requests. But it would be incredibly helpful if the commission status “due” could be defined by me.

    I hope this open issue is bumped up in the year ??

    Hi @isabelpinhel

    The confirmation system could also be used for your purpose too ‘I didn’t get the service’ instead of ‘I did’.

    The due commission status happens when payment is received. We do have a filter ‘wcvendors_completed_statuses’ that allows you to define which order status fires the commission, so you could filter this to remove completed and processing and only have fulfilled. This would require a little bit of custom code to achieve what you’d like. Here is some sample code that will allow you to do this.

    https://gist.github.com/fervous/d72326525a3b1b58ad725a1ee5c7ff03

    You’d just change completed to fulfilled. Then run some tests and see how it goes.

    cheers,

    Jamie.

    Thread Starter Isabel Pinhel

    (@isabelpinhel)

    Hey Jamie,

    I tried the code with the modification suggested but it didn’t work ??

    I also tried removing ‘processing’ and ‘completed’ from the file wcvendors>classes>class-commission.php as below but it didn’t work. Do you have any other suggestions? They’d be greatly appreciated.

    /**
    * return completed statuss
    */
    public function get_completed_status() {

    return $completed_statuses = apply_filters(
    ‘wcvendors_completed_statuses’, array(
    ‘fulfilled’,

    )
    );

    }

    Jamie Madden

    (@digitalchild)

    Hi @isabelpinhel

    There is a bug in our filter atm that we are working to resolve. Due to how and where it is loaded in the code, it’s not an easy fix. We are planning on some big changes that might afford us the time to get that working correctly soon.

    cheers,

    Jamie.

    Thread Starter Isabel Pinhel

    (@isabelpinhel)

    Hi Jamie,

    Thanks for looking into fixing this bug! I look forward to it.
    Isabel

    Thread Starter Isabel Pinhel

    (@isabelpinhel)

    Hi Jamie,

    Any updates on this?

    Hi @isabelpinhel

    It turns out that this is going to take a rather large re-write of a chunk of our internals to make this work better. We have planned to update our entire commission system and have put off updating this part of code until this update is completed. We are currently working through the plans for how to make this major internal change without impacting our users too much. Whenever large changes are made planning must be done correctly. We have found in the past poor planning leads to poor execution, which we’re trying to avoid at all costs.

    Apologies for the delay, we are aware of the issue and are doing our best to get this fixed when we can.

    cheers,

    Jamie.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Set Commission to be due only when order status is “Fulfilled”’ is closed to new replies.