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:
-
Access Your Theme Code:
- In your Shopify admin, go to Online Store > Themes.
- Find the Simple theme and click Actions > Edit code.
-
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.
-
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.
-
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 %}