• Hey, i installed the plugin and it works ??

    One thing which i can`t fix is the Birthday. We added the Birthdate question with that Code.</p> <pre class=”wp-block-code”><code>// Display Billing birthdate field to checkout and My account addresses add_filter( ‘woocommerce_billing_fields’, ‘display_birthdate_billing_field’, 20, 1 ); function display_birthdate_billing_field($billing_fields) { $billing_fields[’billing_birthdate’] = array( ‘type’ => ‘date’, ‘label’ => __(‘Geburtstag (wir haben eine überraschung für dich)’), ‘class’ => array(‘form-row-wide’), ‘priority’ => 25, ‘required’ => true, ‘clear’ => true, ); return $billing_fields; } // Save Billing birthdate field value as user meta data add_action( ‘woocommerce_checkout_update_customer’, ‘save_account_billing_birthdate_field’, 10, 2 ); function save_account_billing_birthdate_field( $customer, $data ){ if ( isset($_POST[’billing_birthdate’]) && ! empty($_POST[’billing_birthdate’]) ) { $customer->update_meta_data( ‘billing_birthdate’, sanitize_text_field($_POST[’billing_birthdate’]) ); } } // Admin orders Billing birthdate editable field and display add_filter(‘woocommerce_admin_billing_fields’, ‘admin_order_billing_birthdate_editable_field’); function admin_order_billing_birthdate_editable_field( $fields ) { $fields[’birthdate’] = array( ‘label’ => __(‘Geburtstag’, ‘woocommerce’) ); return $fields; } // WordPress User: Add Billing birthdate editable field add_filter(‘woocommerce_customer_meta_fields’, ‘wordpress_user_account_billing_birthdate_field’); function wordpress_user_account_billing_birthdate_field( $fields ) { $fields[’billing’][’fields’][’billing_birthdate’] = array( ‘label’ => __(‘Geburtstag’, ‘woocommerce’), ‘description’ => __(”, ‘woocommerce’) ); return $fields; }</code></pre> <p class=””>The point now is, that i`ve dont get a field to merge this with the BIRTHDAY from Brevo. Could you please give me a hint?

    Also, I would like to know how often the Data is synced. We want to add an automatic Birthday Coupon to each Account, which should also get synced with Brevo then, so we can send it with a Workflow.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Kevin Kyburz (@swissky)

    (@swissky)

    Ping

    Plugin Support alexisbienayme

    (@alexisbienayme)

    Hi Kevin,

    If you use the Birthday attribute in WordPress/Woocommerce, it’s possible to sync it through the plugin.

    To automatically generate birthday coupons, you can use WooCommerce’s built-in functionality or a plugin to create coupons that are tied to the user’s birthdate. You can then use WordPress hooks or scheduled events to trigger the generation of these coupons based on the user’s birthdate.

    The sync frequency is immediate, it wouldn’t take more than one minute.

    Once the data is synced with Brevo, you can set up workflows within Brevo to send out the birthday coupons automatically. This can include triggering email campaigns or notifications based on the synced birthdate data.

    I remain at your disposal for any information.

    Best Regards,

    Alexis

    Thanks Alexis

    Works great

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Birthday Data’ is closed to new replies.