McDuck4
November 25, 2017, 4:48pm
1
Hello.
I would like to give people the possibility to subscribe to our newsletter through out WooCommerne checkout flow. The code I made is like this:
Code:
Subscribe to our newsletter
The checkbox is there, so far so good. In Mautic I have made forms, so I store every information from the checkout page, which is working fine:
https://ibb.co/hC8c06
But how do I send the boolean value to Mautic in my checkbox? I tried to make a new contact field, but I am not getting any value in the field.
https://ibb.co/fZmpf6
Best Regards
McDuck4
November 25, 2017, 4:48pm
2
Hello.
I would like to give people the possibility to subscribe to our newsletter through out WooCommerne checkout flow. The code I made is like this:
<p class="form-row terms">
<input type="checkbox" class="input-checkbox" name="newsletter" id="newsletter" value="newsletter" />
<label for="newsletter" class="checkbox">Subscribe to our newsletter</label>
</p>
The checkbox is there, so far so good. In Mautic I have made forms, so I store every information from the checkout page, which is working fine:
https://ibb.co/hC8c06
But how do I send the boolean value to Mautic in my checkbox? I tried to make a new contact field, but I am not getting any value in the field.
https://ibb.co/fZmpf6
Best Regards
Is your ‘Newsletter’ custom field set as “Publicly updatable”?
petertl
November 30, 2017, 9:29am
4
@McDuck4 , which value are you passing to Mautic? True/false, 1/0 or something else?
McDuck4
December 2, 2017, 10:01pm
5
Thank you a lot for the answers both.
@AccentDM : It was not set to that, but i activated that now. That means I can update a custom field with a tracking pixel?
@PeterTL : See Peter that is a very good question I actually think that is my problem. How am I passing that value to Mautic. For me it would not matter if it is true/false or 1/0. But how do I make the code for passing a value?
Best Regards