Liquid, JavaScript, themes, sales channels
Hello All,
I would like to know if it is possible to add a word to the visible price for a product on product page/category page/homepage? I use the Impulse theme!
For example "from" on product page:
Would be great if somebody could help me this!
Sincerely,
Adelmore
Solved! Go to the solution
This is an accepted solution.
Hello, you have to put CSS code in theme.liquid (see doc). Here is an example.
#myprice::before{
content: "from ";
display: inline-block;
}
This is an accepted solution.
Hello, you have to put CSS code in theme.liquid (see doc). Here is an example.
#myprice::before{
content: "from ";
display: inline-block;
}
That's it! Thank you very much Rajameltine!
The pleasure was mine.
Thank you so much posting this solution.
If there is no price how to hide the 'from' ?
I have added above code in the grid.product.price as shown below but some of the blocks in my web site don't have a price so i would like to hide the price content when is 0.
Is that possible to add a if/else statement in theme.liquid? Has anybody try to do this in a conditional statement.
Thanks in advance.
Cansu E.
.grid-product__price::after {
content: " from ";
display: inline-block;}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024