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
I'm using packageBasket method to get shipment and to get the shipment rates. But for some reason the returning shipment is always null (ie the returning ienumerable is empty).
What are the conditions so it returns a not null shipment?
What I've done:
var shipAddress = _checkoutManager.Customer.GetShipToAddress();
var shipment = _basket.PackageBasket(shipAddress).FirstOrDefault();
var shipmentRateQuotes = shipment.ShipmentRateQuotes();
THANK YOU! :)
did you do:
yes I did
public void SetDummyShippingAddress()
var shippingAddress = new AddressModel();
shippingAddress.Address1 = ...
What does Create Address look like?
It just converts my AddressModel to one Merchello.Core.Models.IAddress address.
private IAddress CreateAddress(AddressModel model)
var address = new Address();
address.Address1 = model.Address1;
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted