Hide Bundles with No Products - DocMerge

Hi!

I am looking to hide any bundles on a quote DocMerge which have no products in it. We used to be able to do this in PDF manager ({foreach from=$product_bundles item="bundle"} {if $bundle.products|@count}) but in DocMerge there doesn't appear to be a way to do this. Can i have some advice please?

I have tried {if name.length > 0} to hide the core bundle, which doesn't work.

Thanks,

Ross

  • Hi  , 

    I am taking the Quote template on this document as an example. 
    If you have a look at the Products column it has the following: 

    Fullscreen
    1
    {!table_header hide_no_data='true' bind='#products'}
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    This will prevent all the table from being printed if the Product Bundle has not Products. 

    Can you check if this is something you tried already? 

    Looking forward to hearing from you. 

    André