Skip to main content
Question

Where do I set product.relative_discount?

  • February 21, 2025
  • 4 replies
  • 34 views

Forum|alt.badge.img+2

Hi

I have 3 packages in a paywall. I wanted to add badges two of them and I am guessing I am supposed to use product.relative_discount for this. But in the app I can’t see the value. Badge appears empty. Do I need to set it somewhere?

Cheers,
Ulaş

4 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 240 replies
  • February 25, 2025

Hi ​@rocxteady - When you select the component containing the badge, in the right-hand panel, you can configure the Badge. Here’s an example of setting text in a Badge:

 


Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • February 25, 2025

Hi ​@jeffrey_bunn ,

Thank you for the response. I know how to use the variable in the components using Badge. But it shows as empty in the client app. Is there some place to set it or is it just automatically updated?

Cheers,
Ulaş


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 240 replies
  • March 4, 2025

Hi ​@rocxteady If you set the variable in the Badge, it should be present in the app without you having to do anything extra (provided you Publish the changes you’ve made). In the paywall editor, do the badges display the text you want? Or are they also blank in the editor? 


Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • March 4, 2025

Nevermind. I just figured it was for subscriptions. I thought I could the same for consumables.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings