What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Getting standardizedProductType in another language

Getting standardizedProductType in another language

antonioreale
Shopify Partner
19 1 3

Hello I am trying to get standardized product type in another language, the data is only in english.

This is the code:

 

 

query = """
query GetProductsById($id: ID!) {
product(id: $id) {
standardizedProductType {
productTaxonomyNode {
name
}
}
}
}
"""

 

This is the output:

 

{'data': {'product': {'standardizedProductType': {'productTaxonomyNode': {'name': 'Lighters & Matches'}}}}, 'extensions': {'cost': {'requestedQueryCost': 3, 'actualQueryCost': 3, 'throttleStatus': {'maximumAvailable': 1000.0, 'currentlyAvailable': 997, 'restoreRate': 50.0}}}}

 

As you can see the data returned is in english, for example look at productTaxonomyNode and name.

How to get it in another language, for example in italian?

Reply 1 (1)

HerculesApps
Shopify Partner
20 1 14

 

Ciao Antonio,

 

did you found a solution?