I have item page which displays product price.
I want to add text to product price that says “/per each”.
How do I do that in .css or liquid code?
A user seeks to add \
I have item page which displays product price.
I want to add text to product price that says “/per each”.
How do I do that in .css or liquid code?
Your question is unclear
Hi There,
Depending on the theme that you’re using - if you’re using any of the Shopify free online store 2.0 themes.
Open the theme editor and search for the price.liquid file
Use CMD + F to open the search bar and search for price-item
Find this code {{ money_price}} and add / Per Each to the side like this
Save and refresh the live to check.
Hope that is what you’re trying to do
Cheers!
Thanks, but that didn’t work. I changed it, but it gave error on my item page: “Liquid syntax error (sections/main-product.liquid line 23): Unexpected character / in “{{price | money / per Each}}””
I also need this changed only on product page not on each page of website.
@VariousQuestion that’s because the slash sign has to be defined. Remove it and use / instead
Wow, awesome, it worked! Thank you so much both, guys. You both helped me figure this out.
One last thing, how do I make sure it shows up only on ITEM PAGE not in catalog view. Now it shows up everywhere. I want it to show only on item page.
@VariousQuestion you have to hire a developer for that
No, I want to learn how to do it myself. That’s the whole point of me asking this question here, so I can learn to be a developer myself.