Hello
I’m using Debut theme with PageFly to create a product grid. I chose the collection I want to display its products and everything is fine but the problem is : some products are on sale and others aren’t, so the “product badge that shows the % of discount” keep appearing in every product even for the products who have “no compare at price” (which means aren’t in sale) so the badge appears “%0 discount”
I want to edit the code to make the badge appear only when : product.compare_at_price_max > product.price
There is a CSS code section in PageFly so I can edit whatever I want but I don’t know how to code this condtion of display.
I tried this but it didn’t work out
{% if product.compare_at_price_max > product.price %} {{ ‘products.product.on_sale’ | t }} {% endif %}
Your links don’t take me where I want… I didn’t find any solution there
I need a direct solution to discount % when using pagefly builder.
Hello @eComSeller97 , This is PageFly - a Free Shopify Landing Page Builder.
Thank you for your question, you can reach to our support for assistance. Our developer will try to help you in that. Moreover, we support 24/7 so contact us anytime.
Before that, you can check our guide to build a high conversion Homepage and check out some tips for Holiday ideas.
Have a great day ahead!