What's the best way to show the discount percentage for the product label. Is there an automated way of doing it or do I need to manually type it into the "Disc. name (optional)" field for each dynamic rule?
Using the discount name field is a good option there.
Alternatively, I believe we could write a code snippet that automatically calculates and displays this based on sale price vs regular price. However, it could have an impact on page load times, especially on pages with many products, so I would not recommend it in most cases.
What's the best way to show the discount percentage for the product label. Is there an automated way of doing it or do I need to manually type it into the "Disc. name (optional)" field for each dynamic rule?
Hi Ryan,
Using the discount name field is a good option there.
Alternatively, I believe we could write a code snippet that automatically calculates and displays this based on sale price vs regular price. However, it could have an impact on page load times, especially on pages with many products, so I would not recommend it in most cases.
Kind regards,
Stefan