How do I replace my product price to say call for price?

Topic summary

A Shopify store owner wants to display “Call For Pricing” instead of “$0.00” for products with zero price in the Simple theme. An app previously used for this caused issues across multiple products.

Solution Provided:

  • Edit theme code via Online Store > Themes > Edit code
  • Locate product price display code (typically in product-template.liquid, product.liquid, or main-product.liquid)
  • Replace price display with conditional Liquid code:
{% if product.price == 0 %}
  <span class="call-for-pricing">Call For Pricing</span>
{% else %}
  <span class="product-price">{{ product.price | money }}</span>
{% endif %}

Implementation Challenges:

  • Initial attempts placed text in wrong location (above product image instead of replacing price)
  • User experienced errors when modifying code
  • Required applying same fix to collection pages to remove $0.00 from product listings

Resolution:
A later user (joetaffy) using Dawn theme successfully implemented the solution for both product and collection pages with guidance, confirming it worked after locating the correct price display code.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

I would like any product set to $0.00 to say, “Call For Pricing”. I am using the simple theme. We were using an app, but they recently tried to fix one product and ended up messing up all of our other products. What code do I use and where does it go?

1 Like

To replace the product price with “Call For Pricing” for any product set to $0.00 in a Shopify store using the Simple theme, you will need to modify your theme’s code. Here is how you can do it:

  1. Access Your Theme Code:

    • In your Shopify admin, go to Online Store > Themes.
    • Find the Simple theme and click Actions > Edit code.
  2. Locate the Product Price Code:

    • In the left sidebar, under Sections, look for a file named product-template.liquid or product.liquid. The exact file name can vary depending on the theme version.
  3. Edit the Product Price Code:

    • Open the product-template.liquid file.
    • Look for the section of code that displays the product price. It often includes {{ product.price | money }} or similar.
  4. Add Conditional Logic:

    • Replace the price display code with conditional logic to check if the price is $0.00 and display “Call For Pricing” instead.

Here’s a sample code snippet to get you started:

{% assign product_price = product.price | money_without_currency | remove: ',' | remove: '.' | plus: 0 %}

{% if product_price == 0 %}
  Call For Pricing
{% else %}
  {{ product.price | money }}
{% endif %}

@AmericanLadders thanks for posting here.
yes it is possible with liquid code. please use this code I hope it will help you.

{% if product.available %}
  {% if product.price == 0 %}
    Call for price
  {% else %}
    {{ product.price | money }}
  {% endif %}
{% endif %}

let me know if you face any issue.

2 Likes

Thank you!! I got it to say call for price but not where we wanted it. It says call for price above the product image, but we’d like it replace the $0 so the $0 does not show

@AmericanLadders Put the above code ?‍ :laptop: in the area of price

1 Like

@AmericanLadders Put the above code ?‍ :laptop: in the area of price

also use tag with your number to creat cal popup

popup

{% if product.available %}
{% if product.price == 0 %}
Call for price
{% else %}
{{ product.price | money }}
{% endif %}
{% endif %}

2 Likes

@AmericanLadders This

2 Likes

I got it in the right spot but the $0.00 is still showing

@AmericanLadders Can you please share SS how you puting this code

2 Likes

Alright now pic bottom code and put in else

@AmericanLadders

2 Likes

I keep getting errors

1 Like

@AmericanLadders Can you please put whole file code here the i will set the code

2 Likes

I am using the Dawn Theme. I can not find anything close to the file product-template.liquid. I attached step 2 from above. Can somebody help?

  • Locate the Product Price Code:
  • In the left sidebar, under Sections, look for a file named product-template.liquid or product.liquid. The exact file name can vary depending on the theme version.

Hey,
Hope you are doing well. To replace the product price with “Call with pricing” when the price is $0.00 in the simple theme, you’ll need to edit your product and collection template files. Here’s how to do this safely.
Note: Before moving further you should take a duplicate of the theme. After that follow these steps.

  • Go to Shopify Admin.
  • Online Store >> Edit code
    In the Edit code search for product.liquid file. Or maybe a main-product.liquid file it based on your theme structure.
    Now after that search this line {{ product.price | money }}
    After that you need to replace it with this code.
{% if product.price == 0 %}
  <span class="call-for-pricing">Call For Pricing</span>
{% else %}
  <span class="product-price">{{ product.price | money }}</span>
{% endif %}

You also need to update the collection.liquid file too.
If this was helpful Mark as Solution and like it.
Thanks

1 Like

I didn’t see {{ product.price | money }} Is this what I want?

Yes, Exactly this is the price that you need to replace with the provided code.

That worked. Last question (I think). How do I remove the $0 price from the collections page.

1st time Here. Qasim you have great! How do I
Mark as Solution

I am happy that it could help.
No in order to remove the $0.00 price from the collection page then you need to follow these steps.
Go to Shopify Admin >> Online Store >> Edit code >> Collection.liquid or main-collection.liquid [based on your theme file]. "
In this file search for {{ product.price }} and replace it with the provided code that you did for the product.liquid file.

{% if product.price == 0 %}
  <span class="call-for-pricing">Call For Pricing</span>
{% else %}
  <span class="product-price">{{ product.price | money }}</span>
{% endif %}

Please let me know if this work for you.
Thanks