imsujan276 / shopify_flutter

A flutter package that works as a bridge between your Shopify Store and Flutter Application
https://pub.dev/packages/shopify_flutter
MIT License
26 stars 27 forks source link

Sorry, I made a mistake. The currency unit of the shopping cart can only be changed by cartBuyerIdentity, not in the graphql parameter. #92

Closed WangXiaoRi closed 1 month ago

WangXiaoRi commented 1 month ago

It is invalid to use countryCode.

cartBuyerIdentityUpdate mutation Updates customer information associated with a cart. Buyer identity is used to determine international pricing and should match the customer's shipping address.

WangXiaoRi commented 1 month ago

When a cart is created in a country context, the resulting response is in the specified country’s currency. https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets/international-pricing

imsujan276 commented 1 month ago

Sorry, I am not getting what exactly is the issue here.

Would you like to make it brief?

WangXiaoRi commented 1 month ago

I mean that countryCode can only take effect when the shopping cart interface is created in the shopping cart, and other interfaces of the shopping cart are useless, so there is no need to add internationalization. So you may need to add a note to countryCode to explain this situation.

imsujan276 commented 1 month ago

This is an optional function to display the currency is specified country code. So it won't make much affect in the app.

Also, tou have an option to pass in the country code in cart under buyer identity attribute.

On Mon, 23 Sep 2024, 12:47 pm WangXiaoRi, @.***> wrote:

I mean that countryCode can only take effect when the shopping cart interface is created in the shopping cart, and other interfaces of the shopping cart are useless, so there is no need to add internationalization.

— Reply to this email directly, view it on GitHub https://github.com/imsujan276/shopify_flutter/issues/92#issuecomment-2367376091, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVH7MLBDY73KBDF2DXK6ZDZX64INAVCNFSM6AAAAABOVF7EWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRXGM3TMMBZGE . You are receiving this because you commented.Message ID: @.***>

WangXiaoRi commented 1 month ago

ok