Hi,
I have created a custom badge in Swift based on the sales badge. The custom badge displays the name of the product discount instead of the discount percentage. When I associate this discount percentage with a group/user, the custom badge is only displayed for that specific user/group. Now, if you are not logged in as a user who can see the custom badges and there is a sales badge applied to the product, the sales badge is displayed with the discount percentage, and a custom badge shows the name of the sales badge. Of course, I want only the sales badge to be visible when you are not logged in as a user who has access to the custom badge discount. How can I achieve this? I've added screenshots and my custom code as a zip.
Caro