Some (not all) products appear with “tc” and “/tc” html codes in our Transcy translations through Order printer. There’s no way to check the text in product title and variant names, assuming it is plain text as it is typed by hand that way. AI-help keeps telling we should check the background html-code, but this option is only available in descriptions not in titles or variants. How do I get rid of this annoying codes, order printer apparently doesn’t support supressing them. Anyone knows?
Hey @Ap_van_Dam ,
Can you share a few examples of what you are seeing to help us replicate this?
If the issue is specific to translations through the Transcy app, it may be best to contact their support team directly
Hey @Ap_van_Dam, Are you still experiencing this issue, or can I mark this as solved?
Yes I am stiull experiencing this problem. In liquid we have added strip_html, but apparently the html-codes in Transcy are consider to be part of text not html. As it happens in some products and variants it would be nice to be able to see if the text of titles and variants indeed contains html coding, but as a suer we cannot look behind the 'plain’text in Shopify editing as we can in description. That would be very helpful. Using variants is a horror anyhow as Transcy translations skip those causing lots of work
Thanks for sharing that.
Is the translation issue specifically with order printer templates? The reason I ask is you should be able to get this all with liquid variables. The available variables are here.
https://help.shopify.com/en/manual/fulfillment/managing-orders/printing-orders/shopify-order-printer/liquid-variables-and-filters-reference
This I know, of course.
We’ve really tried everything! Up and down. What helps is renewing products that shows the codes in Order print from scratch, hoping it will help us out - no garantee for that, we noticed
That’s a lot of work, breaks the product-hhistory etc, meaning rather not doing that on larger scale.
Tried this one, but doesn’t work, and there is no alternative as far as I know
{{ line_item.product.title | **strip_html** }}{%if line_item.variant.title == "Default Title" %} {% else %} {{line_item.variant.title | strip_html }} {% endif %}
The actual problem is that the translation hapers and gives these codes that are not present not present in the Dutch input, even cannot be the input, Shopify says.
Explination 1: and is plain text produced by Transcy and not html, therefor not filtered (but | remove doesn’t work either)
{{ line_item.product.title | **remove: ""** }}{%if line_item.variant.title == "Default Title" %} {% else %} {{line_item.variant.title | strip_html }} {% endif %}
Explination 2 : Liquid does not support html-filtering, how bad is that !
But why is bthere html code in the English translations, but in most cases not?
Thanks for that additional clarity. At this point, I recommend contacting Transcy’s support team directly. Since these are custom tags specific to their translation system, they’ll have the best insight on how to prevent these tags from appearing in your Order Printer output. They may have a setting to disable these markers or could provide guidance on how to properly handle them in other applications.