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.

  • 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

  • I think I'll start looking for alternative options for PDFs. PDF Manager is too much a burden. I've been waiting for years for a decent PDF system upgrade in Sugar but never comes! 

    Thanks again,

    Gary.

  • I heard that there is one in the works, but it may be some time away...

    Here is my customization, use at your own risk

    How to create beautiful PDFs with CSS within Sugar 

  • Thanks. I have seen this. Great work! the downside for me is that I need something for On-Demand. I'll keep searching and still keep my fingers crossed for a new stock solution/upgrade.