Hello,
I am facing a basic issue but I don't know how to this within Doc Merge syntax.
The problem is the following : I have a quote, with several bundles. Sometimes, some bundles are "empty" (without any quote line items).
Is there a way to set up a condition like if number_of_products > 0 then display my array ?
{#product_bundles}
{if name.length > 0}
{name}
HOW CAN I HIDE THE FOLLOWING ARRAY IF THERE IS NO PRODUCT FOR THIS BUNDLE ?
Quantity {!table_header hide_no_data='true' bind='#products'} |
Line Item |
Part Number |
Unit Price |
Discount |
Line Item Total |
{#products sort='position:asc'} {@index}. {quantity} |
{product_template_name.name} |
{mft_part_num} |
{discount_price} |
{discount_amount} |
{total_amount}{/products}
|
|
{total} |
{/product_bundles}
Many thanks for your help
Fred