Need Help Displaying Custom Deal Property as Row Item in HubSpot Quote Template Line Items Table

Hi everyone,

I’m working on customizing a HubSpot quote template and need help displaying a custom property Custom TCV - Total Contract Value(custom calcuclated metric) as a row item rather than a column within the item table list.

Here’s what I’ve tried so far:

{% if QUOTE.hs_custom_tcv %}

<tr class=“line-items__item-row”></tr class=“line-items__item-row”>

<td colspan=“{{ module.line_item_column|length }}”></td colspan=“{{ module.line_item_column|length }}”>

Custom TCV:

{{ QUOTE.hs_custom_tcv|format_currency_value(locale=LOCALE, currency=CURRENCY) }}

{% endif %}

Has anyone successfully added a custom deal property (Custom TCV - a caluclated metric) as a standalone row in the quote line items table?

Any guidance or working examples would be greatly appreciated!

Hi, @GKR :waving_hand: Welcome to our community! Thank you for including your details in your post. I’d like to invite some of our community experts to the conversation to see if they have any suggestions for you — hey @HubDoPete @Anton @Bryantworks, do you have any suggestions for @GKR 's?

Best,

Jaycee

Hi Girish,

I think you are on the right track. Two things come to mind:

Syntax: your code snippet should close your tags in a nested structure for the extra row, like:

{% if QUOTE.hs_custom_tcv %}

<tr class=“line-items__item-row”>

<td colspan=“{{ module.line_item_column|length }}”>

Custom TCV: {{ QUOTE.hs_custom_tcv|format_currency_value(locale=LOCALE, currency=CURRENCY) }}

</td>

</tr>

{% endif %}

Also consider manually setting the colspan instead of module.line_item_column|length

Logic: Your custom property is at the QUOTE level, not a line item property. I’m not sure why you would want to display this row & value repeatedly before every line item in the price table. It looks like data to be displayed only once, outside of the line items for loop.

Hope that helps!

best

Pete