Delete an entire word containing a letter from product title (not the entire title)

Hi,

I hope the title isn’t misleading. I have imported products from a supplier and some of the titles contain numbers and other model letters such as

Shirt 247284 White

or

Shirt JJ-234-H Black

They all have numbers in them and I would like to remove every word that contains a number. So “JJ-234-H” and “247284” would be deleted.

Is there an app that could do something such as that?

Thanks :slightly_smiling_face:

If you know what strings need to be replace. You do not need an app to do this. You just need a string filter built in Shopify. You can use “remove” or “replace.”

  1. Find the variant title in the product section. This depends on what theme you are using.

  2. Look for a liquid code that appear like this {{variant.title | escape}} or it could be {{value | escape}}, and this is also depends on the theme you are using.

  3. You can add the remove or replace filter. Personally, I like using replace. Code should appear like this. {{variant.title | escape | replace: “JJ-234-H”, " " }}

Hi @Uros-Uros , as @made4Uo mentioned - that’s one way of fixing it.

But also, it looks like you’ve imported those products with csv file. You could change csv file and upload again, this seems like table with products was not filled in properly (instructions).

Hi @made4Uo , @KetanKumar , @LitCommerce ,

I have the same problem for my store.

I would like to remove “Print” word from every product title.
I use Prestige Theme and I couldn’t even find the escape, variant.title in my store’s code page.

Could you please help me about it?

I appreciated.

1 Like

Hi @artronauts ,

You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.

@artronauts

can you please share store utl