Public Ticket #3543442

Invoices

Closed
Comments
14 Tickets 2
Alexander Catchings started the conversation 3 years ago on December 14, 2023 at 3:38pm

I have an automation in Mailchimp that is supposed to send an email to my subscribers after they place an invoice through my store. However, that automation is not triggering. Mailchimp's support told me that this is happening because the Mailchimp integration is not receiving the proper API calls in the back-end to trigger the automation

2,762
KingsPlugins replied 3 years ago on December 15, 2023 at 12:29am

Hi Alexander,

I'd be happy to check and see if there's something we can do on our end to resolve it. The invoice gateway is implemented as a standard WooCommerce payment gateway, so I'm not really sure where to start with it unfortunately.


Can the Mailchimp team share more details, including technical details? What API calls are not being triggered and do they have any idea why? Are there particular hooks involved, or is this dependant on an order status? Any details and technical info they can share would be helpful. 

Could the problem be that the invoice gateway uses the "on-hold" order status?


Kind regards,

Stefan

2,762
KingsPlugins replied 3 years ago on December 15, 2023 at 12:31am

My suspicion is that the problem could be that Mailchimp only works with the processing order status.

You can try to add this PHP code snippet to your site, to see if it solves it:

add_filter('b2bking_invoice_payment_order_status', function($status, $order){
    return 'processing';
}, 10, 2);

This makes our invoice gateway use processing instead of on-hold.


Sign In