Add "final sale" verbiage to product page ONLY IF that product is tagged "sale"

Hello,

I want “This product is not eligible for returns” to be displayed underneath the price on a product page if I tag that product with “final sale”. What is the simplest way to do this on the Highlight theme?

Thanks in advance!

Hi @luxfactory

This is Mike from Omega

You can add code like this in product form liquid file:

{% if product.tags contains "final sale" %}

This product is not eligible for returns. 

{% endif %}

Hi @Mike-Consentik thank you! The bit of code works, but the placement isn’t correct. I moved the liquid block to above the buy buttons, but it is still showing up below the buy buttons and other global fields. Any ideas what I’m doing wrong?

Hi @luxfactory

Could you send me your store url or a preview url, then I could check it for you?

Absolutely! https://summerset.co/collections/ready-to-wear/products/herringbone-necklace-3m

@luxfactory you need to find the “product__price-container” class name and put the above code under this price code.

Hi @Ujjaval is it possible we don’t have the “product_price-container” in our theme? I don’t see it anywhere. Would it be under a different class name?