Thanks for reporting. We are not able to duplicate the problem and currently don’t have another report. Have you checked in the error log if there is an error possibly. Can you share with us the snippet you used. That might give us a clue as to where the problem might be. Thank you.
Thank you for your response.
Here is the snippet:
add_action(‘woocommerce_order_status_gplsquote-req’, ‘send_admin_email_for_quote_requests’, 20, 2);
function send_admin_email_for_quote_requests($order_id, $order) {
$mailer = WC()->mailer();
$emails = $mailer->get_emails();
if (isset($emails['WC_Email_New_Order'])) {
$emails['WC_Email_New_Order']->trigger($order_id);
}
}
I understand now. The way the plugin works is that when a customer requests a quote, two emails are generated.
We are generating the second one, since the order is not paid yet and it is easier to differentiate quote request from paid new orders. Are you receiving the admin email for new quote requests?
-
This reply was modified 3 days, 12 hours ago by
mirawar001.
-
This reply was modified 3 days, 12 hours ago by
mirawar001.
Have not heard back. Marking resolved.