# Customized Module for Email

**URL:** <https://community.hubspot.com/t/customized-module-for-email/86217>\
**Category:** Email Marketing Tool\
**Tags:** marketing-email\
**Created:** [July 26, 2023, 8:26pm UTC](https://community.hubspot.com/t/customized-module-for-email/86217 "2023-07-26T20:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LRaganicchi](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@LRaganicchi](https://community.hubspot.com/u/LRaganicchi)\
**Post date:** [July 26, 2023, 8:26pm UTC](https://community.hubspot.com/t/customized-module-for-email/86217/1 "2023-07-26T20:26:12Z")

</div>

Hello Guys. How are you doing?

I need some help with a customized module for email.

My idea is to create kind of a table that I can add rows with Name, Price, Variation Price Color (red ou green) and Variation.

I’ve tried the follow code, but i cant succeed.

\<table style=“width: 100%; border-collapse: collapse;”\>  
\<tr\>  
\<th style=“border: 1px solid #ccc; padding: 8px;”\>Commodity\</th\>  
\<th style=“border: 1px solid #ccc; padding: 8px;”\>Preço\</th\>  
\<th style=“border: 1px solid #ccc; padding: 8px;”\>Variação\</th\>  
\</tr\>  
{% for commodity in commodities %}  
\<tr\>  
\<td style=“border: 1px solid #ccc; padding: 8px;”\>{{ commodity.name\_commodities }}\</td\>  
\<td style=“border: 1px solid #ccc; padding: 8px;”\>{{ commodity.price }}\</td\>  
\<td style=“border: 1px solid #ccc; padding: 8px;”\>{{ commodity.variation }}\</td\>  
\</tr\>  
{% endfor %}  
\</table\>

 ![LRaganicchi_0-1690403142723.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/9/e983369e60a18e812452ea07583074d6969db4ed.jpeg)

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [July 27, 2023, 10:20am UTC](https://community.hubspot.com/t/customized-module-for-email/86217/2 "2023-07-27T10:20:49Z")

</div>

Hi @LRaganicchi,

Thank you for reaching out to the Community!

I wanted to take a step back first and share @KTownsend’s solution to [this Community question](https://community.hubspot.com/t5/Email-Marketing-Tool/How-to-insert-a-table-into-an-Email-template/m-p/403620) where she mentions a couple of other ways of including a table in your email other than using a custom module.

As for the custom module way: [@Alejandro\_](https://community.hubspot.com/t5/user/viewprofilepage/user-id/115716) shared some code [in his solution here](https://community.hubspot.com/t5/Email-Marketing-Tool/Help-Including-a-Table-in-HubSpot-email/m-p/255054/highlight/true) which might help!

@KTownsend & [@Alejandro\_](https://community.hubspot.com/t5/user/viewprofilepage/user-id/115716) if you have some additional advice for @LRaganicchi that you could share that’d be amazing! ⭐ Thank you! 🙂

Cheers  
Mia, Community Team
