Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In our uCommerce site we only have one Shipping method, that is using a custom IShippingMethodService as we calculate pricing based on weight. The shipping service is correctly calculating the price, however for some reason the customer basket has 2 Shipment objects, with different ShipmentId values but the same ShippingMethod.ShippingMethodId values
This is my code, with some comments
var currentShippingMethod = TransactionLibrary.GetShippingMethod();
//The currentShippingMethod.ShippingMethodId is 9
TransactionLibrary.CreateShipment(currentShippingMethod.ShippingMethodId, overwriteExisting: true);
//At this point the basket has 2 Shipment objects, even though I'm passing the overwriteExisting = true;
I think if you just use EditShippingInformation like you do in the first block, then you're good to go. It will create a shipment if it doesn't exist based on the information you pass into it.
However can you try to post data related to the two shipments you have? I'd like to see if there's some data that deffer from each other!
Write your reply to:
Image will be uploaded when post is submitted