Hi there,
What's the proper way to preselect the country for an order inside a loop for the countries? We're trying something like this:
<select name="EcomOrderCustomerCountry" id="EcomOrderCustomerCountry" class="input-xlarge"> <!--@LoopStart(Countries)--> <option value="<!--@Ecom:Country.Code2-->" <!--@If(Ecom:Country.Code2==Ecom:Order.Customer.Country.Code)-->selected="selected"<!--@EndIf-->> <!--@Ecom:Country.Name--> </option> <!--@LoopEnd(Countries)--> </select>
However, this does not select the country. When we output <!--@Ecom:Order.Customer.Country.Code--> we do get the proper value.
In the Industry Solutions set I see Ecom:Country.Code2==Server:Request.ecomordercustomercountry but ecomordercustomercountry is empty in our case.
Any suggestions? This should be supported out of the box, shouldn't it? I don't want to go the "JavaScript way" and preselect the item with some code.
Thanks,
Imar