I want to add the "SALE" badge back onto my product pages

Topic summary

Main issue: The store owner previously removed the “SALE” badge from product and collection pages and now wants to restore it, but cannot find the original code.

Context: They looked for product.liquid under Layout but only see theme.liquid and password.liquid. Searching for product.liquid surfaces main-product.liquid and featured-product.liquid instead—likely indicating an Online Store 2.0 setup where product rendering is handled via sections/templates (e.g., main-product.liquid) rather than a single product.liquid file.

Latest updates: A helper confirmed it’s feasible and requested the site URL to provide targeted guidance.

Key technical detail: The “SALE” badge logic is typically tied to price comparisons (compare_at_price vs price) and is added within product template/section files like main-product.liquid or featured-product.liquid rather than Layout files.

Status: Unresolved. Next steps are for the store owner to share their website link so guidance can point to the correct template/section and code placement to re-enable the badge.

Summarized with AI on December 28. AI used: gpt-5.

Hey guys, awhile back I removed the “SALE” badge off my product pages and on the collections page. Now I want to get the “SALE” badge back onto my product pages but I can’t seem to find the code I removed. Can anyone kindly provide the steps to add it back? Thanks!

Hey, thanks for the reply! but I don’t have a product.liquid under “Layout” only Theme.liquid and Password.liquid.
When I search for product.liquid, I’m shown main-product.liquid and featured-product.liquid.

Hi!

What you’ve described can be done. Could you send the website link?

Terence