A user wanted to display unit indicators like “ea” (each) or “pair” after product prices (e.g., $2.99/ea). Shopify’s built-in unit pricing feature only supports weight, volume, and length measurements, not custom text labels.
Solution Found:
Create a custom product metafield (named “unit_of_measure” in this case)
Add Liquid code to the theme to dynamically render the metafield value alongside the price
For the Trade theme specifically, the code was added to snippets/card-product.liquid to display the unit on product cards
Code snippet provided:
The solution uses conditional Liquid templating to check if the metafield exists and displays “Sold As: [unit]” next to the price.
Status: Resolved. The metafield approach successfully achieved the desired functionality without requiring third-party apps.
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.
Hi there, I’m trying to add “ea” or “pair” to the end of the price. For example… $2.99/ea or $2.99/pair. I spoke with shopify support and I was told this feature isn’t available. Seems strange that something seemingly simple is beyond their features.
I’ve tried to turn on Unit pricing, but the options are only weight, volume, length.. etc. Can these values be changed somewhere in the code?
I also checked the App Store for a solution, but nothing. If someone knows of an app that accomplish this, please share as well.
Thanks in advance. Ps.. I am comfortable editing code.
For others trying figure this out, here is the code that worked for me. I am using the Trade theme
After creating a product metafield (I named it unit_of_measure) edit theme code to dynamically render the metafield data. I placed this code right after the code that displays the price.
snippets/card-product.liquid (this allows the UOM to show up in the product cards)
{% comment %} ------- ADD THE UNIT OF MEASURE ----------------- {% endcomment %}
{%- if card_product.metafields.custom.unit_of_measure != blank -%}
Sold As: {{ card_product.metafields.custom.unit_of_measure }}
{%- endif -%}