FunnelKit Documentation
Get unstuck with our helpful reference material

FunnelKit Automations

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

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. 

Ready to Transform Your Store?

Join 38,315+ successful store owners who trust FunnelKit to power their businesses.
Conversion Optimized Checkout Pages
Increase Revenue with Smart Upsells
Capture Emails & Recover Abandoned Carts
Automate Winbacks & Repeat Sales
887+ 5 star reviews on WordPress.org
Transform your store to power your business with FunnelKit
887+
 Reviews
4.9
🚀 Maximize Your Profit with FunnelKit – Highest Rated with 887+ 5-Star Reviews
Get Started
chevron-downarrow-right