How can I display 1,000 in tags without comma separation?

chalidin
Tourist
6 0 1

Hello i want to add 1,000 in tag but when i am doing it it uses , to seperate them how can i disaply it.

chalidin_0-1676137389904.png

It does this

 

Replies 5 (5)

harivishwakarma
Shopify Partner
322 46 55

I have to see it.send preview link 

hariomvish267@gmail.com

 

 

banned
chalidin
Tourist
6 0 1

I just want to display 1,000
As you see in the screenshot above when i use comma it seperates the tag

harivishwakarma
Shopify Partner
322 46 55

Can you tell what page it is on?

banned

shermie
Shopify Partner
4 0 1

I just ran into this while creating tags with the Shopify GraphQL api. Per the tagsAdd api documentation:

 

A list of tags to add to the resource. Can be an array of strings or a single string composed of a comma-separated list of values. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3".

 

So embedded commas cause the input string to be broken up into separate tags. When you enter tags through the Admin products page, perhaps it's using the same api under the covers.

 

In any case, I also need to create tags with embedded commas. Is there a a good work around for this when doing so via the tagsAdd api?

shermie
Shopify Partner
4 0 1

I figured out a work around myself.

 

For now, I'm going to replace commas programatically with a suitable unicode character.

myTagsString.replace(/,/g, '\u201a');

 

\u201a is the "low single comma quotation mark", which looks just like a comma.