Banner Logo

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

print88

Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • in reply to: Prevent creation of commission on Cheque Payments #194196
    print88
    Participant

    Using the second set of codes. The commission would still not set as zero but paid.

    in reply to: Prevent creation of commission on Cheque Payments #194192
    print88
    Participant

    I have already activated the code in code snippet but it doesn’t seem to produce a commission ZERO.

    I am trying the second set of codes today and see what happens.

    in reply to: Prevent creation of commission on Cheque Payments #194155
    print88
    Participant

    I am very new to coding. So I want to set commission as zero for CHEQUE, do I change the if( $payment == ‘cod’ ) { to if( $payment == ‘cheque’ ) { in the coding?

    add_action( ‘mvx_commission_after_save_commission_total’, ‘zero_commission’ );
    function zero_commission( $commission_id ) {
    $order_id = get_post_meta( $commission_id, ‘_commission_order_id’, true );
    $payment = get_post_meta( $order_id, ‘_payment_method’, true );
    if( $payment == ‘cod’ ) {
    $order = wc_get_order($order_id);
    update_post_meta( $commission_id, ‘_commission_amount’, $order->get_subtotal() );
    update_post_meta( $commission_id, ‘_commission_total’, 0 );
    }
    }

    in reply to: Prevent creation of commission on Cheque Payments #194140
    print88
    Participant

    the link is asking for login and password.

    in reply to: Failed order still creates a commission. #192618
    print88
    Participant

    But why it created a commission if it failed?

    in reply to: Commission create based on payment method #192588
    print88
    Participant

    May I suggest this option to feature in the next update.

    in reply to: Commission page is not loading #145880
    print88
    Participant

    this.window.gBrowserInit is undefined 2 ext-browser.js:1145
    get activeTab chrome://browser/content/parent/ext-browser.js:1145
    candidates chrome://extensions/content/parent/ext-tabs-base.js:2088
    next self-hosted:1740
    query chrome://extensions/content/parent/ext-tabs-base.js:2110
    next self-hosted:1740
    from self-hosted:514
    query chrome://browser/content/parent/ext-tabs.js:1023
    query self-hosted:1356
    result resource://gre/modules/ExtensionParent.jsm:1152
    withCallContextData resource://gre/modules/ExtensionParent.jsm:635
    result resource://gre/modules/ExtensionParent.jsm:1151
    withPendingBrowser resource://gre/modules/ExtensionParent.jsm:645
    result resource://gre/modules/ExtensionParent.jsm:1150
    callAndLog resource://gre/modules/ExtensionParent.jsm:1103
    recvAPICall resource://gre/modules/ExtensionParent.jsm:1149
    InterpretGeneratorResume self-hosted:1819
    AsyncFunctionNext self-hosted:807

    in reply to: Same commission payout 2 times #144547
    print88
    Participant

    There is nothing the Server side can help as they do not know what exactly is the problem.
    All they have done is disabled the WP cron jobs at config and added a line in server:
    */30 * * * * /usr/bin/curl -I -XGET -kL –resolve dinein.club:443:127.0.0.1 –resolve dinein.club:80:127.0.0.1 “https://dinein.club/wp-cron.php”

    They don’t suspect it has anything to do with crons.

    in reply to: Same commission payout 2 times #144419
    print88
    Participant

    It was working properly before even with the server’s cron running.
    This is a typical procedure to reduce the stress on server.

    in reply to: Same commission payout 2 times #142936
    print88
    Participant

    The cron is triggered from the hosting Cloudways server every 30 min. I am not sure if that has any effect.
    There doesn’t seem to be any API errors on stripe either.

    in reply to: Same commission payout 2 times #142923
    print88
    Participant
    This reply has been marked as private.
    in reply to: Same commission payout 2 times #141417
    print88
    Participant

    I only have your plugin on.

    in reply to: Same commission payout 2 times #140770
    print88
    Participant

    it happens on random, I can’t pinpoint a pattern

Viewing 13 posts - 16 through 28 (of 28 total)