Adding a custom contact attribute

[ad_1]

My store offers a wholesale discount to customers which have been pre-approved for a wholesale customer group. I want to send a wholesale newsletter to these customers and therefore need this information (wholesale customer or not) in Brevo/Sendinblue. How can I do this with this plugin?

Things that I’ve tried:

  • Signing these customers up to a different list – this isn’t directly supported, so I tried to override the listId parameter in the settings from wp_options based on the customer. While this used to work in previous plugin versions, this doesn’t work anymore because this setting isn’t actually used. Is there any other way to manually specify a different list for specific signups?
  • Setting a custom contact attribute when creating the customer – there are no WordPress filters for this in the plugin – but the API endpoints used (/events/) don’t seem to support additional attributes anyway.
  • Setting a custom contact attribute after creating the customer (e.g. on order status change) – this fails if the customer has not accepted DOI yet, as no data will be updated in this case.

How can I add this information to my contacts in Brevo/Sendinblue?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer