brandonseydel / 5IVE

5IVE Star Website Design
0 stars 0 forks source link

Carts UpdateAsync #2

Open SergeyKotyushkin opened 8 years ago

SergeyKotyushkin commented 8 years ago

Hi,

Please check why cart's lines do not change on ECommerceStores.Carts(storeId).UpdateAsync(cartId, cart);

brandonseydel commented 8 years ago

I can see that one would need to null out some properties. I am investigating this currently.

SushiGuy commented 8 years ago

Was getting odd results as well. Running the following with 2 Lines in cart would upload 2, and occasionally the response would have 3! The third was our QA tester's favorite book. This may be a problem with MailChimp's API.

await mailChimpManager.ECommerceStores.Carts(gStoreId).UpdateAsync(cartid.ToString(), McCart);

As a workaround @SergeyKotyushkin our code does a Delete and re-Add each time we upload a Cart, instead of an update.

SergeyKotyushkin commented 8 years ago

@SushiGuy, thanks for advise, I have already been using combination of delete and re-add.