Re: How to ROUND the Sale Tag for Brooklyn Theme

Solved

How to ROUND the Sale Tag for Brooklyn Theme

Arge007
Tourist
20 0 1

I want to keep the sale tag on my products but I want them to look clean and without the extra decimals. If you know how to fix this it would be much appreciated!

Accepted Solutions (2)
Lucid_Polygon
Shopify Partner
349 63 92

This is an accepted solution.

  • You have to make a code change as attached in the screenshot
  • Disclaimer: Please keep a copy of your theme before making any code changes
  • This will take the savings and display them as a rounded number with a dollar symbol
  • I also have included how it will look after 21.22 will look as $21

 

  • Screen Shot 2022-09-07 at 11.28.58 AM.pngScreen Shot 2022-09-07 at 11.32.00 AM.png
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

View solution in original post

Lucid_Polygon
Shopify Partner
349 63 92

This is an accepted solution.

@TheRealMan1  Why remove the border? He wants to remove the decimal.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

View solution in original post

Replies 12 (12)

Arge007
Tourist
20 0 1

Heres an Image of the Problem!

Lucid_Polygon
Shopify Partner
349 63 92

Please send a JPEG or PNG image. Zipped files cannot be previewed here.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Arge007
Tourist
20 0 1

Sorry it didn't work for me the first time so I had to send as a zip, here is the sale tag in question 
Sale Tag Issue.PNG

Lucid_Polygon
Shopify Partner
349 63 92

So you want to show the whole number only for example: "SAVE $20"  correct?

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Arge007
Tourist
20 0 1

Correct!

TheRealMan1
Shopify Partner
53 1 13

@Arge007 please share you store url

The Real Store
If helpful then please Like and Accept Solution.
Want to create a new store or modify on store Hire me.
Feel free to contact me on khanarif366@gmail.com regarding any help
Shopify Partner | Skype : aks18766
Arge007
Tourist
20 0 1

Cant since i don't have a URL setup, but I'm sure you can configure this setting without it.

TheRealMan1
Shopify Partner
53 1 13

@Arge007 

 

please add below code at the bottom of this file inside "theme.scss.liquid"

 

.grid-product__on-sale {
border: none!important;
}

The Real Store
If helpful then please Like and Accept Solution.
Want to create a new store or modify on store Hire me.
Feel free to contact me on khanarif366@gmail.com regarding any help
Shopify Partner | Skype : aks18766
Lucid_Polygon
Shopify Partner
349 63 92

This is an accepted solution.

@TheRealMan1  Why remove the border? He wants to remove the decimal.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
TheRealMan1
Shopify Partner
53 1 13

@Lucid_Polygon @Arge007 sorry for the misunderstanding i thought you want to the remove border.

The Real Store
If helpful then please Like and Accept Solution.
Want to create a new store or modify on store Hire me.
Feel free to contact me on khanarif366@gmail.com regarding any help
Shopify Partner | Skype : aks18766
Lucid_Polygon
Shopify Partner
349 63 92

This is an accepted solution.

  • You have to make a code change as attached in the screenshot
  • Disclaimer: Please keep a copy of your theme before making any code changes
  • This will take the savings and display them as a rounded number with a dollar symbol
  • I also have included how it will look after 21.22 will look as $21

 

  • Screen Shot 2022-09-07 at 11.28.58 AM.pngScreen Shot 2022-09-07 at 11.32.00 AM.png
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Arge007
Tourist
20 0 1

It worked! Thank you so much