What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Removing "from" on collection price

Solved

Removing "from" on collection price

ChloeStella
Shopify Partner
4 0 0

Hi! On the collection pages I would like to remove the "from" that is in front of the price and add /lb after the price. So that it doesn't read from $xx, but $xx/lb. This is being displayed when the product has multiple sizes. I'm currently using the Dawn Theme. 

 

Thanks!

Accepted Solution (1)

Lucid_Polygon
Shopify Partner
349 63 93

This is an accepted solution.

@ChloeStella 

 

  • You can do it with some code changes
  • Please go to Online Store > Themes > Actions > Edit Code > Snippets > price.liquid
  • Find this line of code
assign money_price = 'products.product.price.from_price_html' | t: price: money_price
  • Instead of deleting this line, we will change the variable name money_price to money_price2
  • Now add a new line of code under that
assign money_price = price | money_with_currency | append: "/lb"

 

Attached screenshot for reference. Screen Shot 2022-10-04 at 9.57.25 PM.png

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

View solution in original post

Replies 7 (7)

Lucid_Polygon
Shopify Partner
349 63 93

This is an accepted solution.

@ChloeStella 

 

  • You can do it with some code changes
  • Please go to Online Store > Themes > Actions > Edit Code > Snippets > price.liquid
  • Find this line of code
assign money_price = 'products.product.price.from_price_html' | t: price: money_price
  • Instead of deleting this line, we will change the variable name money_price to money_price2
  • Now add a new line of code under that
assign money_price = price | money_with_currency | append: "/lb"

 

Attached screenshot for reference. Screen Shot 2022-10-04 at 9.57.25 PM.png

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
ChloeStella
Shopify Partner
4 0 0

@Lucid_Polygon that worked! Thank you so much!!

jmetcheverry
Visitor
1 0 0

Hi,

 

I have the exact same problem for any reason I don´t understand in my case everything seems the same even after editing code as with the exact example you gave before.

I´m using Taste Theme... any clues?

ArshLyall
Visitor
3 0 0

Hey, after this can you tell how can i show the maximum price of the variants of a product instead of the minimum.

Mateo20102002
Visitor
1 0 0

it worked but i would like to show the expensive price instead of the cheaper, is that possible?

artcis
Excursionist
16 0 4

I only wish to remove the word "from" on the collection page, is that possible? 

 

surrealclothing
Visitor
1 0 0

you can just remove the ending where it has a bar and append