Docs

Custom Code Snippet To Run Order Related Automations On Contact Email Instead of Billing Email

Updated on

In this documentation, we’ll show you how to configure FunnelKit Automations to run all actions (add tag, remove tag, send email, etc) based on the contact email rather than the billing email in all the the order-related automations. 

This setup is especially useful when users log in using their contact email and password, but place orders using a different billing email. 

While this behavior works fine for guest users, since the billing email becomes the primary reference, it can create confusion for logged-in users or existing customers, where the contact email should ideally remain the primary identity.

To ensure FunnelKit Automations always use the contact email, even if the billing email on an order is different, you’ll need to add a small custom code snippet.

Note: You can refer to our doc on how to add a custom code snippet.

Here is the code snippet: 

define( 'BWFAN_GET_CONTACT_EMAIL', true );
Custom Code Snippet To Run FunnelKit Automations on Contact Email Instead of Billing Email

This snippet will ensure that automation runs on the contact email and executes all the actions on it.