HELP Hide Prices for Products Priced $0 ONLY on Collection Pages and Product Pages - Minimal Theme

Solved
Highlighted
Astronaut
919 81 109

This is an accepted solution.

yes, need to adjust existing coding, but do it only if you know how to else
hire coding expert, or I can check it for you
you are welcome to contact me.
My email - suyash.patankar@gmail.com
0 Likes
Highlighted
Tourist
16 0 3

okay i would like to use this solution: 

if that is the case i would suggest you use the product.available object and make use of Shopify inventory management, this will mean you don't have to change the prices of your products and prevent them from being purchased

 

{% if product.available %}
   *SHOW PRICE*
{% endif %}

 

do i change this in product-grid-item.liquid? and what does the line originally say? 

0 Likes
Highlighted
Astronaut
919 81 109
not sure what original line says, need to check files for it, not possible
without login
you are welcome to contact me.
My email - suyash.patankar@gmail.com
0 Likes
Highlighted
Tourist
16 0 3

what information do you need to log in and help ? 

0 Likes
Highlighted
Astronaut
919 81 109
this is code editing, adding this line will not help, he told you the
logic, not exact solution
you are welcome to contact me.
My email - suyash.patankar@gmail.com
0 Likes
Highlighted
Astronaut
919 81 109
add me to staff
you are welcome to contact me.
My email - suyash.patankar@gmail.com
0 Likes
Highlighted

@auroradreamsco  as you are using the Minimal theme you will need to edit the product-grid-item.liquid as mentioned earlier.

the price is displayed with the {{ price }} is at the bottom of the code ( line 90 )

 

{% if on_sale %}
   <span class="visually-hidden">{{ 'products.product.sale_price' | t }}</span>
{% else %}
   <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
{% endif %}
{{ price }}
{%- assign variant = featured.selected_or_first_available_variant -%}

 

you will apply the code to the {{ price }} so your code will look like the following

 

{% if on_sale %}
   <span class="visually-hidden">{{ 'products.product.sale_price' | t }}</span>
{% else %}
   <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
{% endif %}
{% if product.available %}
   {{ price }}
{% endif %}
{%- assign variant = featured.selected_or_first_available_variant -%}

 

If this helps you achieve your goal please mark this a solution to help others searching the community.

 

Please like and mark my post as a solution if I've helped you, thanks.
0 Likes
Highlighted
Tourist
16 0 3

Unfortunately Clarke this did not work for me. I still see the $0 on the collections pages on those items that do not have prices, inventory, skus, or anything. 

0 Likes
Highlighted
Tourist
16 0 3

Suyash i sent you the invite. Hoping i can get this fixed today

0 Likes
Highlighted
Astronaut
919 81 109

This is an accepted solution.

please check your site, and collection and let me know the update

https://aurora-dreams-co.myshopify.com/collections/gallery-acrylic-pour-paintings

https://aurora-dreams-co.myshopify.com/collections/shop-all-available-products
you are welcome to contact me.
My email - suyash.patankar@gmail.com
0 Likes