Towards full disclosure, I have customized some of the basket recalculation code lines in my one page checkout. Even so, however, I'm hoping someone can give me an idea what to look for in figuring out the following problem.
If an anonymous user proceeds to checkout, enters their billing address and then presses continue, the Shipping Method section (trShowRates) is displayed and my two shipping methods are displayed in the drop down.
If an anonymous user proceeds to checkout, logs into the site using their username / password then presses continue, the Shipping Method section (trShowRates) is still displayed but no dropdown list is displayed. When I check it in code and the database, there are no shipments attached to the basket which means ShipmentList.DataBind never causes ShipMethodList to be created.
For some reason, logging the user in from one page checkout is clearing the basket shipment. When I look at the database for this user account, there is a basket entry and basket item entries but no basket shipment entry. I assume one page checkout would handle that situation normally but perhaps I've screwed up the test data.
AC 7.0.2
Shipping Methods List Not Populated
Re: Shipping Methods List Not Populated
I found the cause. I bypass InitializeBasket if the basket hasn't changed. There was a bug in the code for when there are no shipments.