Forum Replies Created
-
AuthorPosts
-
January 27, 2024 at 12:13 PM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216741print88Participant
please use this link
January 27, 2024 at 9:20 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216737print88ParticipantThis reply has been marked as private.January 25, 2024 at 3:14 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216680print88ParticipantThis reply has been marked as private.January 24, 2024 at 11:57 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216656print88ParticipantYou can turn off the store hours at WooCommerce => Store Hours.
Please turn it back on after your inspection.January 23, 2024 at 1:41 PM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216616print88ParticipantThis reply has been marked as private.January 23, 2024 at 9:39 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #216611print88ParticipantVendor Login
diamond516
(19805637Cc)Please note that any order made a physical printout invoice will be printed at my client’s physical store.
Please put in the NOTES “TEST ORDER” and cancel/delete the order afterwards.January 5, 2024 at 2:50 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #215785print88ParticipantThis reply has been marked as private.January 4, 2024 at 2:38 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #215735print88ParticipantI used Cheque as cash payment instead.
How to show the commission as zero?Attachments:
January 3, 2024 at 10:57 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #215700print88ParticipantCredit card commission are paid as instructed but CASH commission calculated as zero but on the commission page, it is show as PAID.
It is confusing.January 3, 2024 at 6:01 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #215694print88ParticipantThis is the exact coding sent to me by your IT team.
Also the coding had been working for the past 6 months and suddenly have problem on the 22nd of December.I have corrected the typo and will report again when problem persist.
January 3, 2024 at 1:02 AM in reply to: Cash Commission are PAID but Credit Card Commission are set as ZERO instead #215680print88ParticipantCodes haven’t changed for the last 6 months.
This is the snippet I am usingadd_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 == ‘cheque’ ) {
$order = wc_get_order($order_id);
update_post_meta( $commission_id, ‘_commission_amount’, $order->get_subtotal() );
update_post_meta( $commission_id, ‘_commission_total’, 0 );
}
}// paid commission automaticly for cod payment
add_action( ‘after_wcmp_calculate_commission’, function( $commission_id, $vendor_order_id )
{
$payemnt_method = get_post_meta( $vendor_order_id , ‘_payment_method’ , true ); if( $payemnt_method == ‘cheque’ ) {
update_post_meta( $commission_id , ‘_paid_status’ , ‘paid’ );
}
},10,2);print88Participantsolved
print88ParticipantI want the amount to show the commission as zero.
print88ParticipantYes I understand what the code is trying to do.
This is the result:
The commission is still produced with an amount marked as PAID.
But the transfer did not record on STRIPE.Is this the supposed result?
print88ParticipantIt would appear that the commission did not set to ZERO but PAID.
But there were not STRIPE transfer record of it. -
AuthorPosts