# \[BETAALD\] Maak het e-mailadres van de gebruiker beschikbaar voor gebruik in themacomponenten

**URL:** https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481
**Category:** Marketplace
**Created:** [30 november 2021 om 08:36 UTC](https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481 "2021-11-30T08:36:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [30 november 2021 om 08:36 UTC](https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481/1 "2021-11-30T08:36:26Z")

</div>

I want to use [gumroad.com](http://gumroad.com) to sell memberships by embedding their buy button widget into the forum e.g. via versatile banner theme component. In order to remove any friction during checkout process, I want to **prefill the user’s own email address** into the embed code

For that we need to find a way to pass the user’s email address to the gumroad embed code so it’s added to the checkout process automatically. Gumroad offer a parameter to prefill the email address, see [here](https://help.gumroad.com/article/44-build-gumroad-into-your-website)

The code looks something like this and includes a `params="email=..."` parameter:

```html
<div class="gumroad-product-embed" data-gumroad-product-id="pencil" data-gumroad-params="email=forumuser@email.com&price=10">
<a href="https://gumroad.com/l/pencil">Loading...</a></div>

```

Ideally, I would like to be able to use a placeholder such as {{currentUser.email}} within any HTML fields in theme components

Deadline Dec 15  
Price: 100-300 USD depending on complexity of the task

---

<div class="post-metadata">

### Author: ![Ahmed\_Gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed_gagan/32/161985_2.png) [@Ahmed\_Gagan](https://meta.discourse.org/u/Ahmed_Gagan)
#### Post date: [30 november 2021 om 08:43 UTC](https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481/2 "2021-11-30T08:43:12Z")

</div>

I am interested to take this up, sending you a PM

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [30 november 2021 om 15:58 UTC](https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481/3 "2021-11-30T15:58:01Z")

</div>

I can help. I’ll send a PM.

EDIT: Turns out what he was asking and what I thought he was asking were entirely different. He wants a way to make it possible to use a handlebar placeholder anywhere in existing themes. I am not aware of a way to do that, and, as far as I can tell, neither is anyone else.

What I thought he wanted was to add the user’s email address to the `current_user` serializer. That can be done for the proposed budget.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [30 december 2021 om 15:58 UTC](https://meta.discourse.org/t/paid-make-users-own-email-address-available-to-use-in-theme-components/210481/4 "2021-12-30T15:58:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
