Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey, I'm wondering if someone has any idea how to approach this.
Let's say my store's locale is currently set to French but I would like to display the product title on PDP in English (so the 'en' locale), how do I go about it? Is there a liquid syntax for getting the title in a particular locale?
Hi @chideraa,
Can you explain more about 'product title on PDP'?
I will check it
Hello @chideraa,
You can refer https://help.shopify.com/en/manual/markets/languages to solve your issue.
Hi Chideraa, did you manage to work this out? I'm trying to achieve the same thing. Basically with the below code, but not sure where/how to get the English product.title
{% if localization.language.iso_code == 'ja' %}
<span class="product-subtitle">{{ product.title }}</span>
{% endif %}
Unfortunately not! I asked tech support too and no dice 😞
Damn, that's unfortunate. We've gone the route of using a metafield for the Japanese title. So the product has an English title (primary language), but no Japanese title on the product itself.
Code example for anyone that is interested
{% if localization.language.iso_code == 'ja' and product.metafields.translation.title_ja %}
<span class="product-subtitle">{{ product.metafields.translation.title_ja }}</span>
{%- endif -%}
Thanks, this is the only way I can think of that will work, too.
Looking to solve the same problem. Has someone found way to do this?
I need this. Any update?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024