Liquid, JavaScript, Themes
Hello,
Can someone help me here ? I would like to know how I put an "from" in front of the price for the Brooklyn theme.
Thanks in advance.
Gelöst! Zur Lösung
Erfolg.
@BlueLabelB that depends a bit on where you want to apply this prefix …
For the sake of this question I assume that you are talking about a collection page and you're using the product grid view. In this case open the file /snippets/product-grid-item.liquid and find this line (it's line 92 in the current version 17.4.0 of the regular Brooklyn theme):
{{ product.price_min | money_without_trailing_zeros }}
Change that to
<span class="product-price-prefix">from</span> {{ product.price_min | money_without_trailing_zeros }}
and you should be good to go.
Shopify should be able to help out under their 60 minute design time program too, if you write their support!
Mario
Erfolg.
@BlueLabelB that depends a bit on where you want to apply this prefix …
For the sake of this question I assume that you are talking about a collection page and you're using the product grid view. In this case open the file /snippets/product-grid-item.liquid and find this line (it's line 92 in the current version 17.4.0 of the regular Brooklyn theme):
{{ product.price_min | money_without_trailing_zeros }}
Change that to
<span class="product-price-prefix">from</span> {{ product.price_min | money_without_trailing_zeros }}
and you should be good to go.
Shopify should be able to help out under their 60 minute design time program too, if you write their support!
Mario
Hello, thank you for your quick help.
I have now changed it, but not all products are there. You are very welcome to take a look yourself. Please don't be surprised it's a German shop that's why it doesn't say "from" but "ab".
Now it's inside, it must have taken a while.
Thank you very much for your help my friend.
@BlueLabelB – keine Ursache – gern geschehen und freut mich, dass es funktioniert 😉
Bist du ein EU-Dropshipping Supplier, 3PL-Streckengeschäft Lieferant, oder ein Spediteu...
By Gabe Apr 18, 2024Wie du eine intuitive und ansprechende Online-Shopping-Experience für deine Kunden au...
By Gabe Apr 1, 2024Shopify unterstützt die weltweit innovativsten Marken und Unternehmer:innen. Um Unterne...
By SarahF_Shopify Mar 25, 2024