The problem: If the FormItCountryOptions snippet is used twice within the same page/form (e.g. payment address + delivery address), the second snippet call selects the wrong country when the option tags are listed. It always selects the country from the first snippet call.
I tested the correct placeholder content with a hidden field. The placeholder data is correct - only the FormItCountryOptions snippet selects the wrong country.
before this line in the snippet “FormItCountryOptions”.
This should fix this issue.
The problem is that for the second call to $fi->loadModule(...) the code determines that the class is already loaded and all the new settings are never used.
If you had different values for other properties (like &prioritized or &limited etc.) these would be ignored too. So someone with more knowledge of the code has to come up with a real solution.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.