@made4Uo You are amazing. Thanks a lot!
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.liquidin 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.liquidin Snippets folder - Use
card_product.price != 0instead ofproduct.price != 0in 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
1 Like