How to get "Free" instead of "$0" as price

Topic summary

A user seeks to display “Free” instead of “$0” for zero-priced products in the Shopify Sense theme.

Solution for Product Pages:

  • Edit main-product.liquid in the Sections folder
  • Wrap the price render code in a conditional statement checking if product.price != 0
  • Display “FREE” text when price equals zero

Solution for Collection Grids:

  • Initially provided code didn’t work due to incorrect variable reference
  • Corrected solution: Edit card-product.liquid in Snippets folder
  • Use card_product.price != 0 instead of product.price != 0 in the conditional
  • This successfully replaces “$0” with “FREE” on collection pages

Status: Original issue resolved successfully.

Additional Notes:

  • One user reported the featured product code caused incorrect pricing on non-free items (£25 showing as £19.99)
  • Another user couldn’t locate the specified code in their theme files
  • The solution involves editing Liquid template files in the theme code editor
Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

@made4Uo You are amazing. Thanks a lot!

1 Like