# Newsletter subscription WooCommerne

**URL:** <https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979>\
**Category:** General Discussion\
**Created:** [November 25, 2017, 4:48pm UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979 "2017-11-25T16:48:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![McDuck4](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@McDuck4](https://forum.mautic.org/u/McDuck4)\
**Post date:** [November 25, 2017, 4:48pm UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979/1 "2017-11-25T16:48:49Z")

</div>

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](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](https://ibb.co/fZmpf6)  
  
Best Regards

---

<div class="post-metadata">

**Author:** ![McDuck4](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@McDuck4](https://forum.mautic.org/u/McDuck4)\
**Post date:** [November 25, 2017, 4:48pm UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979/2 "2017-11-25T16:48:49Z")

</div>

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:

```auto
<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](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](https://ibb.co/fZmpf6)

Best Regards

---

<div class="post-metadata">

**Author:** ![mike-accentdm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mike-accentdm/32/1178_2.png) [@mike-accentdm](https://forum.mautic.org/u/mike-accentdm)\
**Post date:** [November 27, 2017, 5:34am UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979/3 "2017-11-27T05:34:59Z")

</div>

Is your ‘Newsletter’ custom field set as “Publicly updatable”?

![](https://accentdm.com/img/mautic_community/publicly_updatable.png)

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [November 30, 2017, 9:29am UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979/4 "2017-11-30T09:29:13Z")

</div>

@McDuck4, which value are you passing to Mautic? True/false, 1/0 or something else?

---

<div class="post-metadata">

**Author:** ![McDuck4](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@McDuck4](https://forum.mautic.org/u/McDuck4)\
**Post date:** [December 2, 2017, 10:01pm UTC](https://forum.mautic.org/t/newsletter-subscription-woocommerne/9979/5 "2017-12-02T22:01:52Z")

</div>

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
