Happy Business Starts Here

Senior Tutor

Need to hide the "Discount" lable on Quote templates when there is no discount on the quote

Hello Zuora.

 

We have a requirement like this.

 

Hide the Discount label on quote template when there is no discount on Quote, Its possible to show the value /not to show the value based on the number presented on the quote. 

 

But not sure how to hide the the label when there no Discount value on quote

 

Please share me ideas if you come across this kind of request come from diff customers.

 

Thanks

Naga

 

 

2 REPLIES 2
Support SME

Re: Need to hide the "Discount" lable on Quote templates when there is no discount on the

Hi Naga,

 

Can you please try using Conditional Merge Fields as documented in the following article and let us know how it goes

 

https://knowledgecenter.zuora.com/CA_Commerce/C_Zuora_Quotes/G_Zuora_Quotes_Configuration_Settings/D...)

 

Thakn you

Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Re: Need to hide the "Discount" lable on Quote templates when there is no discount on the

Something like this should work:

 

{ IF { MERGEFIELD Quote.Previewed_Discount } = 0 "" "

Discount:" }

 

The line break is also in the IF statement so it only gets inserted if there is a discount.

 

Use the same logic for the actual discount amount:

 

{ IF { MERGEFIELD Quote.Previewed_Discount } = 0 "" "

{ MERGEFIELD Quote.Previewed_Discount }" }