How to hide compare at price

Solved
dwmusic
Tourist
3 0 1

Hi all,
I am wondering if anyone can advise how I can hide 'compare at price' across my Shopify site?
It is useful for us to have pricing data in the compare field for the purposes of discount calculations and working in spreadsheet but don't want to present it to customers. I have had a hunt arounnd but haven't been able to find a solution.

Thanks!

Accepted Solution (1)

Accepted Solutions
BinalSavani
Shopify Partner
360 48 83

This is an accepted solution.

Hello @dwmusic! Thanks!

Please add the below CSS in the theme.css theme file at the bottom to remove the compare price:

.price__compare-at.visible {
    display: none !important;
}

Binal Savani | iCart App


- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more visit www.identixweb.com

View solution in original post

Replies 6 (6)
AsenWang
Shopify Partner
17 2 2

You can comment out the code of the original price of the product in the code

BinalSavani
Shopify Partner
360 48 83

Hello @dwmusic!

You can hide the compare price for customers by adding custom CSS code to your theme file.

Please share your store URL so that I can check and can send you the code.

Binal Savani | iCart App


- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more visit www.identixweb.com
dwmusic
Tourist
3 0 1

Thanks a lot @BinalSavani! The URL is https://dwmusic.myshopify.com/ 

BinalSavani
Shopify Partner
360 48 83

This is an accepted solution.

Hello @dwmusic! Thanks!

Please add the below CSS in the theme.css theme file at the bottom to remove the compare price:

.price__compare-at.visible {
    display: none !important;
}

Binal Savani | iCart App


- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more visit www.identixweb.com
dwmusic
Tourist
3 0 1

This worked perfectly! Thanks so much @BinalSavani, you are a the best!

BinalSavani
Shopify Partner
360 48 83

It's my pleasure to help you!

Binal Savani | iCart App


- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more visit www.identixweb.com