Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Automatic payout question

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #131269
      redilson
      Participant

      Hi WCMP team,

      I have a site where I have automatic commission payout for hourly. Can you confirm with a developer on the following regarding the masspay_cron_start cron job? I’m trying to debug an issue where it appears that only the 5 most recent commissions are being scanned/paid and the others are not being paid.

      Does that masspay_cron_start cron job cycle through ALL of the potential sub-orders/commissions that are Unpaid? Or, does it just scan the first 5?

      I believe that the system will only pay 5 at a time to prevent the site from getting slow based on what I saw in another thread. If there are more than 5 commissions to be paid out, does it just pay out 5 and then try to pay 5 more in the next cron job run?

      I use this code to only pay out commissions where the vendor’s sub-order is marked as Complete:

      // restrict processing order to paid commission
      add_filter( ‘wcmp_cron_mass_payment_exclude_order_statuses’, function( $order_status_disable ) {
      array_push($order_status_disable, “processing”, “on-hold”);
      return $order_status_disable;
      } );

      For example, I have 100 orders. 60 of them are not complete. 40 of them are complete, but it will only auto pay if that commission is in the first 5 in the commission list (most recent orders). So, one vendor’s did auto pay since it was very recent but the older commissions aren’t paying out. There aren’t any errors with payments as I can pay them manually and all is good there.

      Thank you so much for the help!

    • #131281
      redilson
      Participant

      I think the best test would be for you to get a large number of orders, like 50+ and see if they payout automatically over time.

    • #131347

      Hi,
      You are correct.
      We have checked that we pay recent five comissions first and then get back to older five comissions and so on.

    • #131369
      redilson
      Participant

      For me, it doesn’t go beyond those first five commissions. The older commissions never get paid out, only the first five if order is Complete regardless of how many times I run the mass pay cron job.

      How does WC marketplace keep track of what commission it left off at in the last mass pay cycle?

    • #131403

      Hi,
      Kindly note that within one hour, if new commissions is added then only those recent five commissions will get paid. But if within that one hour no new commissions is added, then only it will go back to older five commissions.

      So, can you please return the cron, once all the new commissions are paid. Please do keep us posted.

Viewing 4 reply threads

The topic ‘Automatic payout question’ is closed to new replies.