Hello!
I am trying to change my price per unit from Price / item to Price / each. Can someone tell me how to do this in the shopify theme code?
I am using Reformation theme Instance for my website TinselTraditions.com
Thank you!
Hello!
I am trying to change my price per unit from Price / item to Price / each. Can someone tell me how to do this in the shopify theme code?
I am using Reformation theme Instance for my website TinselTraditions.com
Thank you!
Looks like you can’t do that via localization.
Reformation is not the most popular theme, but you can try searching for the code yourself, given example.
This is how Dawn did it in earlier versions:
This is how Dawn does since 15.0:
Modern version should be translatable with “Edit theme content” as shown in Improve unit price display with the `unit_price_with_measurement` filter by trishrempel · Pull Request #3805 · Shopify/dawn · GitHub
Basically, you need to go into “Edit theme code” and search for unit_price_measurement like this:
Then instead of the code in line 114, use
{% if product.selected_or_first_available_variant.unit_price_measurement.reference_unit == "item" %}
each
{% else %}
{{ product.selected_or_first_available_variant.unit_price_measurement.reference_unit }}
{% endif %}
Or share this code for better suggestions.
As seen on the screenshot, there can be several locations…