Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

UStd Feld bei Registrierung nur für Auslandsbestellungen

$
0
0

Hallo zusammen,

ich würde gerne das UStd Feld für Auslandsbestellungen als Pflichtfeld setzen. Vom Standard her ist dies ja anscheinend nicht machbar (?). Zumindest habe ich es bis jetzt noch nicht gefunden.

Daher würde ich die Bare Template-Datei anpassen. (Narülich im eigenen Template). 
Weiß jemand vielleicht, wie ich abfragen kann auf welchem Wert das Country Field Select steht?

 

{block name='frontend_register_billing_fieldset_input_country'}
            <div class="register--country field--select">
                <select name="register[billing][country]"
                        data-address-type="billing"
                        id="country"
                        required="required"
                        aria-required="true"
                        class="select--country is--required{if isset($error_flags.country)} has--error{/if}">

                    <option disabled="disabled"
                            value=""
                            selected="selected">
                        {s name='RegisterBillingPlaceholderCountry'}{/s}
                        {s name="RequiredField" namespace="frontend/register/index"}{/s}
                    </option>

                    {foreach $country_list as $country}
                        <option value="{$country.id}" {if $country.id eq $form_data.country}selected="selected"{/if} {if $country.states}stateSelector="country_{$country.id}_states"{/if}>
                            {$country.countryname}
                        </option>
                    {/foreach}
                </select>
            </div>
        {/block}

 

Freue mich über Anregungen :-) 

 

Grüße,

chrisen


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>