nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
734 stars 305 forks source link

How Can I Add New Shipping method #903

Open vazirimohsen opened 1 year ago

vazirimohsen commented 1 year ago

Hello

I need a add new shipping method to checkout page, this methos get from my api. how to use shopifysharp for this work?

vazirimohsen commented 1 year ago

anyone can help me?

nozzlegear commented 1 year ago

Hey Mohsen! I’ve done this but it’s been a long time. I’m on mobile right now so I can’t easily search for my old code, but I think you need to use the FulfillmentServiceService (poorly named) class in ShopifySharp to create a new fulfillment service on the store. There’s an option to give Shopify a url to call for it to calculate shipping rates for whatever products are included in your fulfillment service, and they’ll call it almost like a webhook.

I’ll try to find some example code to post later today once I’m back at my computer.

-- Joshua Harms

On Fri, Jul 21, 2023, at 02:28, Mohsen Vaziri wrote:

anyone can help me?

— Reply to this email directly, view it on GitHub https://github.com/nozzlegear/ShopifySharp/issues/903#issuecomment-1645112965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASOE7EBNELWICGIPG4VQIDXRIVSHANCNFSM6AAAAAA2RENH3A. You are receiving this because you are subscribed to this thread.Message ID: @.***>