""Deutschland"vorausgewählt im MOBILE Theme

Hallo,

da ich nur innerhalb Deutschland versende, möchte ich gerne, das Deutschland auch vorausgewählt ist bei der Registrierung und Lieferadresse.
Beim Azure Theme war das alles kein Problem, aber beim Mobile Template funktioniert es nicht.
Im Grunde kann ich auch auf das ganze DropDown verzichten, da ja eh nur “-” vorausgewählt ist und als einzige Wahlmöglichkeit dann Deutschland möglich ist.

So etwas wie <option value="">-</option> steht dort zumindest nicht drin.

Dies ist der entsprechende Block der user_billing.tpl:


[{block name="form_user_billing_country"}]
        <li [{if $aErrors.oxuser__oxcountryid}]class="invalid-field"[{/if}]>
            <div id="invCountry" class="dropdown">
                <input type="hidden" id="invCountrySelected" name="invadr[oxuser__oxcountryid]" value="[{$oxcmp_user->oxuser__oxcountryid->value}]" [{if $oView->isFieldRequired(oxuser__oxcountryid) }] class="js-oxValidate js-oxValidate_notEmpty" [{/if}] />
                <div class="dropdown-toggle" data-toggle="dropdown" data-target="#">
                    <a id="invCountryLabel" role="button" href="#">
                        <span id="countrySelected">[{oxmultilang ident="COUNTRY"}][{if $oView->isFieldRequired(oxuser__oxcountryid) }]*[{/if}]</span>
                        <i class="glyphicon-chevron-down"></i>
                    </a>
                </div>
                <ul class="dropdown-menu" role="menu" aria-labelledby="invCountryLabel">
                    [{foreach from=$oViewConf->getCountryList() item=country key=country_id }]
                        [{assign var=sCountryName value=$country->oxcountry__oxtitle->value}]
                        [{assign var=sCountryID value=$country->oxcountry__oxid->value}]
                        <li class="dropdown-option">
                            <a tabindex="-1" data-selection-id="[{$sCountryID}]">[{$sCountryName}]</a>
                        </li>
                        [{if (isset($invadr.oxuser__oxcountryid) && $invadr.oxuser__oxcountryid == $sCountryID) ||
                            (!isset($invadr.oxuser__oxcountryid) && $oxcmp_user->oxuser__oxcountryid->value == $sCountryID)}]
                        [{oxscript add="$('#invCountrySelected').val('$sCountryID');"}]
                        [{/if}]
                    [{/foreach}]
                </ul>
            </div>
            [{if $oView->isFieldRequired(oxuser__oxcountryid) }]
                <p class="validation-error">
                    <span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
                    [{include file="message/inputvalidation.tpl" aErrors=$aErrors.oxuser__oxcountryid}]
                </p>
            [{/if}]
        </li>
        <li class="stateBox">
            [{include file="form/fieldset/state.tpl"
            countryDropDown="invCountry"
            countrySelected="invCountrySelected"
            stateSelectName="invadr[oxuser__oxstateid]"
            selectedStateIdPrim=$invadr.oxuser__oxstateid
            selectedStateId=$oxcmp_user->oxuser__oxstateid->value
            }]
        </li>
        [{oxscript add="$('#invCountry.dropdown').oxDropDown();"}]
    [{/block}]


An der state.tpl habe ich noch nichts geändert

Hi Kanuddel,

eine Lösung für das mobile Template suche ich auch. Ist es dir schon gelungen?

Grüße, kiwi

So wie hier? http://496.foxido.de/konto-eroeffnen/ (nur mobile). Das ist z.B. im CountryChecker drin.

Cooles Modul foxido, aber das ist mir zu overdoszed. Gibt es eine Lösung wir haben einen Shop, dass ist nur für ein Land mit einer Länderdomain, dort kann man auch nur ein Land auswählen, eine Möglichkeit für das mobile Template?

Das heisst in Deutschland haben wir mehrere Länder zu Auswahl, da bräuchten wir Deutschland vorausgewählt und in einem anderen Shop gibt es nur ein Land zur Auswahl da müßte das Dropdown weg.

Grüße,