Developer forum

Forum » Development » Change delivery method in API

Change delivery method in API

Dimitrij Jazel
Reply

Hi everyone,

I am trying to change delivery method in API.

All I could find so far is that Shipping Method - is just a string

http://www.screencast.com/t/svO2SC41eLuv

Was hoping it could be much easyer to change.

 

/Dmitrij

 


Replies

 
Nicolai Pedersen
Reply

Ah, not easy.

Do something like this:

Dim shipping As Shipping = shippings.Item(0)
order.ShippingMethod = shipping.Name
order.ShippingMethodID = shipping.ID
order.ShippingMethodDescription = shipping.Description

Maybe you need to clear the prices also:

order.ClearCachedPrices()

 
Dimitrij Jazel
Reply

hi Nicolai thanks for the info.

First was expecting something more simmilar to PriceInfo object.

But that is also OK :) will give it a try :)

 

You must be logged in to post in the forum