How to hide default quote group (bundle) in PDF Manager

Hi,

We want to use quote groups to apply a title to quote sections. However, the "default" quote group still ends up on our Quote PDF.  (Noting that you cannot give the default group a title, which would also solve our problem).

Can anyone suggest how I can hide the group if it is empty (ie it has no line items)?

In the Quote, noting that there are no line items in the "default" group section.

This is the PDF manager HTML. I'd suspect I could so something like "if $bundle.items > 0" but I'm not sure what to write and have not found documentation on what properties "$bundle" contains. Can anyone point me in the right direction?

Thanks in advance,

Gary.

Parents
  • The stock instance checks the count on the bundle before printing, you may want to add that test to your PDF

    {foreach from=$product_bundles item="bundle"} {if $bundle.products|@count}

  • Thanks Francesca, that solved my problem!

    Do you know of a quick way to disable TinyMCE in PDF Manager (specifically for an On Demand Instance)? I'm finding it's auto-formatting is changing the position of smarty tags. 

    Eg If I want to do this:

    (I made a type-o below, the {if} should be below the </tr>, however the outcome is the same)

    I end up with this:

    Thanks again,

    Gary.

  • I'm sorry, I don't. I am the only one managing PDFs in my organization and I always use the HTML.

    never use the WYSIWYG because what you see is not what you get. 

    I avoid TCPDF like the plague... and have a whole custom thing to use css to format my PDFs  so I have to use the HTML to see all the css tags I added.

    FrancescaS

Reply
  • I'm sorry, I don't. I am the only one managing PDFs in my organization and I always use the HTML.

    never use the WYSIWYG because what you see is not what you get. 

    I avoid TCPDF like the plague... and have a whole custom thing to use css to format my PDFs  so I have to use the HTML to see all the css tags I added.

    FrancescaS

Children