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

Shipping Method #47

Closed MoeezChohan1089 closed 7 months ago

MoeezChohan1089 commented 8 months ago

Hy sir, I hope you are doing well, i just want to inform you that you should implement also shipping method API (object, mutations and queries). sometimes user can change shipping method so i want to add shipping method please add it also in your code Thanks for your cooperation

asadamatic commented 8 months ago

@MoeezChohan1089 Shipping methods are available in the Checkout object as availableShippingRates. If you have set shippingAddress for a checkout using shippingAddressUpdate, you'll get a list of ShippingRates ( Shipping Method ) in availableShippingRates.

The provided shipping address region must be supported by the store.

MoeezChohan1089 commented 8 months ago

ok thanks for it

MoeezChohan1089 commented 8 months ago

sir i checked it i added custom shipping method and also region defined then still not showing availableshipping rates but i checked in shoppify webview here its showing shipping method which i selected now tell me how i can show shipping method in app section

imsujan276 commented 8 months ago

Can you provide the minimal code showing what you are doing to achieve it?

MoeezChohan1089 commented 8 months ago

Ok sir I will send you a code with screenshot tomorrow I think you will better understand with reference of screenshot

MoeezChohan1089 commented 8 months ago

Screenshot_20240313-094516 Screenshot_20240313-094519

here you can check i am getting this shipping method when i will checkout then should be change shipping method but its not showing data this is the dummy data which you can see in these screenshoots. so according to your talk i used availableshippingrates but its showing null list so please tell me how i can get these shipping rates

MoeezChohan1089 commented 8 months ago

if you say that we should update shippingaddress first then will show shippingrates then i am updating shippingaddress (address, full name, phone number, country, city, postal code) after add shipping fields then still showing null availableshippingrates

imsujan276 commented 8 months ago

It would really be helpful if you could provide me with the minimal reproducible code.

It is difficult to understand the cause from the UI only

imsujan276 commented 7 months ago

It was closed because the issue had been idle for over a week.