# Adding Line Item Properties in Custom Quote

**URL:** <https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325>\
**Category:** CMS Development\
**Created:** [November 1, 2022, 4:22pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325 "2022-11-01T16:22:42Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![SVenkatesan](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SVenkatesan](https://community.hubspot.com/u/SVenkatesan)\
**Post date:** [November 1, 2022, 4:22pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/1 "2022-11-01T16:22:42Z")

</div>

I would like to know possibility of adding line item property (Pre Discount Amount) in Custom Quote Template under Line item module.

 ![Screenshot 2022-11-01 at 9.51.56 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/00b03187914044561e2506cf1eb4dfa2ab2c8e6e.jpeg)

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [November 1, 2022, 8:28pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/2 "2022-11-01T20:28:42Z")

</div>

@SVenkatesan There’s not currently a way out-of-the-box to do so, but according to this [Ideas Form post](https://community.hubspot.com/t5/HubSpot-Ideas/Custom-product-properties-on-Quotes/idi-p/356561) HubSpot does at least it have in planning to update the default line items module to allow for custom properties.

in the meantime, if you’re comfortable with the design manager, you could update it yourself to allow adding that property. If you’re using the HubSpot quotes theme you’d first have to create a [Child theme](https://developers.hubspot.com/docs/cms/building-blocks/themes/child-themes) and then in the files you would have to open the _line\_items\_table_ module and edit the _Select column property_ field to include your custom property as a choice.

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [August 30, 2023, 4:06pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/3 "2023-08-30T16:06:21Z")

</div>

@alyssamwilie I have tried this and followed the steps you provided; however, it seems like HubSpot doesn’t recognize the property at all when using it in a quote. Is there something else that needs to be done for HubSpot to recognize the custom property in the line\_items\_table?

---

<div class="post-metadata">

**Author:** ![DC1984](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DC1984](https://community.hubspot.com/u/DC1984)\
**Post date:** [October 25, 2023, 8:17am UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/4 "2023-10-25T08:17:21Z")

</div>

Hi, @sskias-ink same problem here, do you managed to make it work?

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [October 25, 2023, 1:40pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/5 "2023-10-25T13:40:42Z")

</div>

@DC1984, I was able to get this to work. It took some trial and error though.

1. After you have cloned the template, open the **line\_items\_table** in Design Manager.

 ![sskiasink_0-1698241088563.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/28828574b9b3193433c01ef7f87fba61a622366a.jpeg)

2. In the editor on the right pane, hover over **Select column property (Choice)** and click **Edit**. It should be located under **Line item column (Field group)**.

 ![sskiasink_1-1698241182837.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/4/d4f07397e2a90c5ae69d70a167e79ac247eece20.jpeg)

3. This should display the list of fields that you can select in your quote template editor when configuring the line items table.

4. At the bottom of that list, you have the option to **Add another choice**

5. The property will already need to be created at this time. Just enter the label and the property name.

6. Publish the changes.

This should make the property available when configuring your quote template.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![DC1984](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DC1984](https://community.hubspot.com/u/DC1984)\
**Post date:** [October 25, 2023, 2:37pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/6 "2023-10-25T14:37:55Z")

</div>

Thank you very much @sskias-ink , I followed your explanation and it works correctly. Unfortunately, I noticed that there are only 6 spaces/columns. I read here in the community that ‘There’s still a limit of 6 columns which is annoying, but you can get past this via the Rich Text modules and create a table yourselves & use personalize to map the properties you want onto it.’ but I don’t understand how to proceed to increase the number, do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [October 25, 2023, 2:42pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/7 "2023-10-25T14:42:32Z")

</div>

I am glad that worked for you @DC1984.

Unfortunately, I have not had the need to expand the number of columns within the template. I would think this would require a developer to build out exactly what you need.

---

<div class="post-metadata">

**Author:** ![SVenkatesan](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SVenkatesan](https://community.hubspot.com/u/SVenkatesan)\
**Post date:** [January 17, 2024, 9:58am UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/8 "2024-01-17T09:58:44Z")

</div>

You can increase it in Repeater Options like this @DC1984 @sskias-ink

 ![Screenshot 2024-01-17 at 3.27.21 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/5/45c29890736dd7f9e5018922f30751baefe16ad6.jpeg)

---

<div class="post-metadata">

**Author:** ![daniele-lodola](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniele-lodola/32/5160_2.png) [@daniele-lodola](https://community.hubspot.com/u/daniele-lodola)\
**Post date:** [July 26, 2024, 5:14pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/9 "2024-07-26T17:14:39Z")

</div>

Hello @sskias-ink ,

Thanks for sharing this solution.

I am not able to get it to work on a single-line text field, any idea why ?

Best regards,

Dane

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [July 26, 2024, 5:24pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/10 "2024-07-26T17:24:36Z")

</div>

When you say single line text field do you mean it does not repeat in the  
output?

---

<div class="post-metadata">

**Author:** ![daniele-lodola](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniele-lodola/32/5160_2.png) [@daniele-lodola](https://community.hubspot.com/u/daniele-lodola)\
**Post date:** [July 26, 2024, 5:43pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/11 "2024-07-26T17:43:29Z")

</div>

No output whatsoever is retrieved from the product for my single-line text field.

I’m using {{ unit.name\_fr|sanitize\_html }} to retrieve the value from the “name\_fr” field which is populated on my products, but I’m just getting an empty value. Do I need to address the ‘text’ attribute / component of the field or something like that ?

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [July 26, 2024, 6:44pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/12 "2024-07-26T18:44:36Z")

</div>

Can you provide a screenshot of the field configuration?

---

<div class="post-metadata">

**Author:** ![daniele-lodola](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniele-lodola/32/5160_2.png) [@daniele-lodola](https://community.hubspot.com/u/daniele-lodola)\
**Post date:** [July 27, 2024, 10:18am UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/13 "2024-07-27T10:18:55Z")

</div>

Sure ; this is my config:

- unit.name, standard HubSpot product field, single-line text, displaying as expected
- unit.name\_fr, custom, custom product field, single-line text, NOT displaying as expected

 ![Capture d’écran 2024-07-27 à 12.16.13.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/8/68eac664c2e9716d95ada55a0511ae146c342391.png)

 ![Capture d’écran 2024-07-27 à 12.15.17.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/3/237b04042a448bae00754787da50d5297565d1e7.png)

---

<div class="post-metadata">

**Author:** ![daniele-lodola](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniele-lodola/32/5160_2.png) [@daniele-lodola](https://community.hubspot.com/u/daniele-lodola)\
**Post date:** [July 30, 2024, 11:43am UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/14 "2024-07-30T11:43:26Z")

</div>

any ideas @sskias-ink ? 😀

---

<div class="post-metadata">

**Author:** ![sskias-ink](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sskias-ink](https://community.hubspot.com/u/sskias-ink)\
**Post date:** [July 30, 2024, 12:18pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/15 "2024-07-30T12:18:51Z")

</div>

Hi @daniele-lodola,

I am not entirely sure why it is not firing. The only options I can think of is…

1. Try entering a constant value instead of unit.name\_fr as a test to see if it displays.

2. I am not clear on where you if statement is being placed. There is a section in the line items table where the body of the content gets displayed. It should be this section:

\<tbody id=“line-items\_\_table-body”\>  
{% for unit in line\_items %}  
\<tr\>  
{% for item in module.line\_item\_column %}  
{% set property\_value = unit[item.column\_property] %}  
{% if item.column\_property == ‘name’ %}  
\<td\>  
\<span\>{{ unit.name }}\</span\>  
\</td\>  
{% elif item.column\_property == ‘item\_description’ %}  
\<td\>  
\<span class=“item-name”\>{{ unit.name }}\</span\>  
\<div class=“line-item-description”\>{{ unit.description }}\</div\>  
\</td\>  
{% elif item.column\_property == ‘description’ %}  
\<td\>  
\<div class=“line-item-description”\>{{ unit.description }}\</div\>  
\</td\>  
{% else %}  
\<td class=“{{ cell\_print\_max\_width\_class }}”\>{{ property\_value }}\</td\>  
{% endif %}  
{% endfor %}  
\</tr\>  
{% endfor %}  
\</tbody\>

When I added the additional properties, I did not have to edit the code here, but I also was not doing any conditional logic on the properties. I managed what was displayed in the template editor itself where you can select which properties to include in that section.

For your situation, I would think your conditional statement should be placed within the item table body section of the code.

Apologies if this is not much help.

---

<div class="post-metadata">

**Author:** ![daniele-lodola](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniele-lodola/32/5160_2.png) [@daniele-lodola](https://community.hubspot.com/u/daniele-lodola)\
**Post date:** [July 30, 2024, 12:29pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/16 "2024-07-30T12:29:03Z")

</div>

Thanks a bunch for this prompt response and the insights you provided @sskias-ink !

---

<div class="post-metadata">

**Author:** ![NDiver](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@NDiver](https://community.hubspot.com/u/NDiver)\
**Post date:** [January 19, 2024, 2:07pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/17 "2024-01-19T14:07:04Z")

</div>

Hi @alyssamwilie

Thank you for your post, which proved very helpful for me within the Design Manager.

I have managed to get the “Custom Product Property” Named As “Collection Frequency” within my products to be visible on a quote column for the customer to see.

Oddly, the column heading is visible (Collection Frequency), but it’s not pulling through any of the iems ticked.

My “Custom Property Field Type” has been created as **Multiple checkboxes** so the idea was that when showing the custom properties column on the quote, it would pull through the ticked boxes.

Oddly, I can build the quote, when selecting products to go onto the Collection Frequency when adding products to the quote. (It allows me to tick Mon/Tue/Wed for example. However the Mon/Tue/Wed is not pulling through to the quote (not visible for the customer to see).

Can you reccomend how to have this pull through in the design Manager. Or do I need to create a differnt Custom Property for the correct ticked days to pull through to the quote?

Any help of guidence would be hugley apprecaited?

Thank you

---

<div class="post-metadata">

**Author:** ![YGong6](https://avatars.discourse-cdn.com/v4/letter/y/8e7dd6/32.png) [@YGong6](https://community.hubspot.com/u/YGong6)\
**Post date:** [January 30, 2024, 10:01pm UTC](https://community.hubspot.com/t/adding-line-item-properties-in-custom-quote/68325/18 "2024-01-30T22:01:33Z")

</div>

Hi Svenkatesan

How did you add more than 6 line items to the quote table? I can only do 6 on my end

Thanks

Cheers  
Yan
