When the price shows 0.00, how to show a text (eg. call For price) instead?

nickisusanalex
Tourist
9 1 1

Screenshot.png

 

If the price is displayed as "0.00," (as shown above) how can I replace it with a text message, such as "Call for Price"?

Replies 4 (4)

laddisahsi
Shopify Partner
383 38 40

Hi @nickisusanalex 

Use this condition 
{% if product.priice == '0.00' %}

<a href='tel:YOUR NUMBER HERE'>Call for price </a>

{% endif %}

If this solution is worked, then please Like this and Mark this as accepted solution!


Laddi

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
nickisusanalex
Tourist
9 1 1

Didn't seem to make a difference. Note that I put the code onto product-item.liquid.

suyash1
Shopify Partner
9238 1149 1494

@nickisusanalex - please try code given by @laddisahsi  , else we will need to tweak the code, so it works on your site

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Paranormal story video using AI
Dana54321
New Member
9 0 0

Hi, we are trying to do the same, get people to ring with regards to very low stock products, the above code, where do we insert this, and is the spelling correct "priice" thanks