How can I Remove the Prices on collections?

Solved

How can I Remove the Prices on collections?

AndrewG123
Excursionist
35 0 14

How can I Remove the Prices on collections. Im using the Enterprise theme. Ive already removed prices on the product page but how do I do this on collection pages as well. https://stereomaxelectronics.com/collections/jensen-stereos Remove price from collections.png

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 832

This is an accepted solution.

- Here is the solution for you @AndrewG123 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
.main-products-grid__results .price.price--top {
    display: none !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1725033262551.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 11 (11)

BSS-TekLabs
Shopify Partner
2401 695 832

This is an accepted solution.

- Here is the solution for you @AndrewG123 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
.main-products-grid__results .price.price--top {
    display: none !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1725033262551.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
AndrewG123
Excursionist
35 0 14

Thank You this worked. But one more question. If in the future I did want to add Prices to a specific collection how would I add it back to that collection only?

BSS-TekLabs
Shopify Partner
2401 695 832

Option 1:

{% if collection.handle == 'handle name' %}
<style>
.main-products-grid__results .price.price--top {
    display: block !important;
}
</style>
{% endif %}

Option 2:

{% if collection.id == 999999 %}
<style>
.main-products-grid__results .price.price--top {
    display: block !important;
}
</style>
{% endif %}

Two options you can you @AndrewG123 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
AndrewG123
Excursionist
35 0 14

Where would I add this code? The same place?

BSS-TekLabs
Shopify Partner
2401 695 832

Yes. Before tag </head> in file theme.liquid

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
AndrewG123
Excursionist
35 0 14

Just making sure I understanding correctly, I'm new to adding code. Say I want to put the price back on the Jensen Stereo collection I linked earlier. I would put this code 

 

{% if collection.handle == 'jensen-stereos' %} <style> .main-products-grid__results .price.price--top { display: block !important; } </style> {% endif %}

 

under the code you gave me initially? Is that the proper way to put ' handle name' ?Just making sure I'm doing it right so I don't have any problems in the future, thanks.

BSS-TekLabs
Shopify Partner
2401 695 832

yes. You did the right thing.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
AndrewG123
Excursionist
35 0 14

thank you so much.

BSS-TekLabs
Shopify Partner
2401 695 832

Glad to help you. Have a good day.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

ashalice
New Member
4 0 0

To remove prices on collection pages in the Enterprise theme, navigate to your theme's code editor. Locate the collection-template.liquid file and find the code snippet displaying product prices. Comment out or delete this code. Save your changes, and the prices should no longer appear on the collection pages.

BAFC
Excursionist
36 1 4

Hi,

 

I have removed prices etc from all product pages, but, even using the above code, I cannot stop prices displaying on "collections" and "you may also like" pages? 

 

I am using: Dawn 15.2.0

 

Thank you. 

 

BAFC