Compatibility issue with Klaviyo – opt in form relocation
-
Hi Diego,
There is an issue with Klaviyo. The Klaviyo opt-in form is rendered at the billing details step which does not make much sense.
It will be very easy to resolve, as I have already contacted the Klaviyo team and they (Jad) came back with a solution that works and easy to implement.
See support topic for reference:
https://www.ads-software.com/support/topic/option-to-relocate-the-opt-in-form-at-checkout-page/As you can see, an extra id should be added to the ‘get_contact_step_display_field_ids’ function in the checkout-steps.php file, called ‘kl_newsletter_checkbox’:
/** * Return list of checkout fields for contact step. */ public function get_contact_step_display_field_ids() { return apply_filters( 'fc_checkout_contact_step_field_ids', array( 'billing_email','kl_newsletter_checkbox' ) ); }
Could you implement this in your code? So that the klaviyo opt-in form is rendered at the first step, right after the email field?
Thank you in advance!
Kind Regards
Sandor
- The topic ‘Compatibility issue with Klaviyo – opt in form relocation’ is closed to new replies.