Forum Replies Created
-
AuthorPosts
-
print88Participant
Using the second set of codes. The commission would still not set as zero but paid.
print88ParticipantI 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.
print88ParticipantI 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 );
}
}print88Participantthe link is asking for login and password.
print88ParticipantBut why it created a commission if it failed?
print88ParticipantMay I suggest this option to feature in the next update.
print88Participantthis.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:807print88ParticipantThere 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.
print88ParticipantIt was working properly before even with the server’s cron running.
This is a typical procedure to reduce the stress on server.print88ParticipantThe 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.print88ParticipantThis reply has been marked as private.print88ParticipantI only have your plugin on.
print88Participantit happens on random, I can’t pinpoint a pattern
-
AuthorPosts