Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi everyone,
I have a question about the orders GraphQL query. How can we retrieve the market ID using this query? The order object doesn't include the market_id field.
I know that we can find the market using the country code, but it seems that the order doesn't have the correct country code. The only parameter that could contain the country code is customerLocale, but this is a strange parameter. For example, if I place my first order using the email abc@gmail.com from the "Germany" market, the order has "de-DE" as expected. However, if I place a second order from the "French" market using the same email abc@gmail.com, the value of customerLocale is still "de-DE". Furthermore, I can change this value for future orders using "Language" in the customer settings. In this case, the new value doesn't have a country code but only a language code, such as "en". How you can see this param can't be used for the searching order market ID.
I can't figure out why there seems to be no way to determine a market after an order has been placed, its not even visible on the order manager either
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