Solved

[Impulse Theme] How can I add "from" to my price?

Adelmore
Tourist
4 1 0

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:

Testproduct.JPG

 

Would be great if somebody could help me this!

 

Sincerely,

Adelmore

Accepted Solution (1)

Rajameltine
Explorer
59 4 3

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;
}
Need fastly help, contact me : https://freelancerajameltine.000webhostapp.com/
Besoin d'aide rapidement, faites appel à moi : https://freelancerajameltine.000webhostapp.com/
Email: rajameltine@gmail.com

View solution in original post

Replies 4 (4)

Rajameltine
Explorer
59 4 3

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;
}
Need fastly help, contact me : https://freelancerajameltine.000webhostapp.com/
Besoin d'aide rapidement, faites appel à moi : https://freelancerajameltine.000webhostapp.com/
Email: rajameltine@gmail.com
Adelmore
Tourist
4 1 0

That's it! Thank you very much Rajameltine! 

Rajameltine
Explorer
59 4 3

The pleasure was mine.

Need fastly help, contact me : https://freelancerajameltine.000webhostapp.com/
Besoin d'aide rapidement, faites appel à moi : https://freelancerajameltine.000webhostapp.com/
Email: rajameltine@gmail.com

erdogan_c
Visitor
1 0 0

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;}