I've set up several shipping methods - 2 custom methods, and 4 from USPS - Priority Mail, Express Mail, Priority Mail International, and Express Mail International
This is my code snippet.
Code: Select all
ICollection<ShipRateQuote> rateQuotes = ShipRateQuoteDataSource.QuoteForShipment(shipment.ApplicableShipMethods);
foreach (ShipRateQuote quote in rateQuotes)
{
if (quote.ShipMethodId == shipment.ShipMethodId)
{
if (quote.Warnings == null)
quote.Warnings = new List<string>();
quote.Warnings.Add("selected");
}
}
ShipMethodGrid.DataSource = rateQuotes;
ShipMethodGrid.DataBind();
if (rateQuotes.Count == 0)
{
ContinueButton.Visible = false;
}
else
{
// IN CASE WE HAVE DISABLED THE CONTINUE BUTTON BEFORE
ContinueButton.Visible = true;
}
}
I'm ordering an item whose weight is 0.5lbs, and I've tried changing the quantity, ranging from 1 to 15, with no difference.
Anything obvious to anybody?