Compare At Price Displayed on Featured Products on Main Page

Compare At Price Displayed on Featured Products on Main Page

brentfollett306
Visitor
2 0 1

Hello, 

 

I am trying to change the word "NEW" to the word "WAS" that appears with the compare at price next to each product under my featured products section on the main page of my site. I can't find it anywhere in the coding to change.

I have been able to change the wording under the actual product page in the coding.

 

IMG_8193.JPG

  

Appreciate the assistance. 

 

Cheers

Replies 3 (3)

brentfollett306
Visitor
2 0 1

I am using Minion Theme btw.

Dan-From-Ryviu
Shopify Partner
11583 2269 2448

You can try to find and change it from Online Store > Themes > click '...' in the Motion theme > Edit default theme content, find 'New' and change it to Was

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

exertweb
Shopify Partner
37 12 8

Hello @brentfollett306 
There are two way to change your compare price label:
you'll need to update the text label used for the compare-at price in your theme's code or translation settings.
1. Check the Product Price Code in Theme Files
Please follow below steps:
 - In your Shopify admin, go to Online Store > Themes.
 - Find your active theme and click on Actions > Edit Code.
 - Locate the file that controls your Featured Products section. This could be in the Sections or Snippets folder, with a file name like featured-products.liquid, product-price.liquid, or similar.

Look for the part where the compare-at price is displayed. It might look something like this:

{% if product.compare_at_price > product.price %}

<span class="product-compare-at-price">
NEW {{ product.compare_at_price | money }}
</span>
{% endif %}

Change the word "NEW" to "WAS":

{% if product.compare_at_price > product.price %}

<span class="product-compare-at-price">
WAS {{ product.compare_at_price | money }}
</span>
{% endif %}

- Save the file and check your featured products section

2. Check the Language or Translation Files
In the Edit Code section, scroll down to Locales and open the language file (usually en.default.json for English).

Look for a line that references "NEW" related to pricing, such as:

"products.product.compare_at_price"
: "NEW {{ compare_at_price }}"

Change "NEW" to "WAS":


"products.product.compare_at_price"
: "WAS {{ compare_at_price }}"

Save
the file and check if the label has been updated on your site.

Please let us know if you any further help.

Amit