What's your biggest current challenge? Have your say in Community Polls along the right column.

Custom Savings Badge for Collections/Product Grid (Discount Shown)

Custom Savings Badge for Collections/Product Grid (Discount Shown)

alphabeanz
New Member
8 0 0

Hi,

As the title describes, I'd like to display the discount saved in the sales badge. So it says "Save 50%" or "Save 40%" depending on the product.

My store: https://averybyronbay.com/collections/spring-dresses
How it looks currently:

Screen Shot 2024-11-11 at 14.43.10.png

 

Reference store: https://byronbay-boutique.com/collections/clearance-dresses
How I would like it to look:

Screen Shot 2024-11-11 at 14.48.00.png

Thanks for any help.

Replies 6 (6)

DaisyVo
Shopify Partner
988 125 140

Hi @alphabeanz 

 

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

 

.grid-product__tag.grid-product__tag--sale {
    width: 80px;
}
.grid-product__tag.grid-product__tag--sale::after {
    content: "50%";
}

 

Here is the result: 

DaisyVo_0-1731299399595.png

 

Let me know if it works!

 

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
alphabeanz
New Member
8 0 0

Hi thanks for your help Daisy.

This does indeed work but now every product says 50% off.

Some are actually 60% off, some are 40%.

I need to make it accurate for the product.

DaisyVo
Shopify Partner
988 125 140

Hi @alphabeanz ,

 

Do you have specific discount data for each product in Shopify admin?

 

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Ankit6
Shopify Partner
47 3 3

Hi @DaisyVo If you are looking to display multiple badges like percentage sales, simple low-stock, sale, out-of-stock text badges, and custom Image-based Badges on your store, you can use the Prime Badges Labels & Stickers.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Shopify Partner

Amanda_Fordeer
Shopify Partner
157 10 32

Hi @alphabeanz

It's very easy to add a % discount to your sales badge with the Product Labels & Badges app. Simply add the variable named {discount_percentage} to the text label like this:

Amanda_Fordeer_0-1731320356480.png

If you find my suggestion helpful, please give it a like or mark it as a solution!
And discover more approaches to:
Streamline invoicing process Boost sales with labels & badges Add social proofs & create FOMO
Or get valuable updates and private deals regarding Shopify here.

Ankit6
Shopify Partner
47 3 3

Hi @alphabeanz  If you are looking to display multiple badges like percentage sales, simple low-stock, sale, out-of-stock text badges, and custom Image-based Badges on your store, you can use the Prime Badges Labels & Stickers.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Shopify Partner