Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't add QR code when sending mail to admin
Browse files Browse the repository at this point in the history
petermorlion committed Aug 25, 2023
1 parent 8c5979c commit 9485151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxp-sepaqr/muxp-sepaqr.php
Original file line number Diff line number Diff line change
@@ -182,6 +182,10 @@ function muxp_email_after_order_table( $order, $sent_to_admin, $plain_text, $ema

// and activate muxp_USE_TRANSIENTS

if ($sent_to_admin) {
return;
}

if ( !empty($order->get_total()) && (float)$order->get_total() > 0 && $order->get_payment_method() == 'bacs' && ('on-hold' == $order->status || 'pending' == $order->status)) {

$store_qr_code_as_image = get_option('muxp_store_qr_code_as_image', 'off');

0 comments on commit 9485151

Please sign in to comment.