Adding Line Item Properties in Custom Quote

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.