There are two addresses: The mandatory invoice address and the optional delivery address. In the following case, there is a conflict. Hope to find a workaround.
If two delivery methods apply to different countries, the actual delivery method is decided upon once you submit the customer address data and move on to payment methods.
Based on your chosen country, the applicable delivery methods are listed.
However, if you only fill out payment address - let's say an address in Mexico - then the suggested delivery method will be that matching Andorra (the first on the list of countries) because the method is made to match that of the delivery country - even if the delivery fields are not used.
A workaround would be a script setting the delivery country equal to the invoice country, in case the delivery address is not used.
Does anyone have a solution or a suggestion for this?