http://www.pneumaticon.pl/presta/authentic....php%3Fstep%3D1 Aby zobaczyć koszyk musicie jakiś produkt dać do koszyka. Po tym jak to wykonacie ukaże wam się "Dane do wysyłki" i poniżej opcja "firma" po kliknięciu w niego wyskoczy reszta formularzu. Chciałby aby po kliknięciu w osoba prywatna wyskoczyło wszystko to samo ale bez "nipu" i "Firma"
<input type="radio" name="nazwa" value="wartość" onclick="document.getElementById('identyfikator').style.display = this.checked ? 'block' : 'none'; this.form.elements['nazwa2'].disabled = !this.checked" /> <b> Firma </b> <input type="radio" /> <b> Osoba Prywatna </b> <div id="identyfikator" style="display: none"> <h3>{l s='Delivery address'}</h3> {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company"} <p class="text"> <label for="company">{l s='Company'}</label> <input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> {elseif $field_name eq "vat_number"} <div id="vat_number" style="display:none;"> <p class="text"> <label for="vat_number">{l s='VAT number'}</label> <input type="text" class="text" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" /> </p> </div> {elseif $field_name eq "address1"} <p class="required text"> <label for="address1">{l s='Address'}</label> <input type="text" class="text" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}"> <sup>*</sup> </p> {elseif $field_name eq "postcode"} <p class="required postcode text"> <label for="postcode">{l s='Zip / Postal Code'}</label> <input type="text" class="text" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onblur="$('#postcode').val($('#postcode').val().toUpperCase());"> <sup>*</sup> </p> {elseif $field_name eq "city"} <p class="required text"> <label for="city">{l s='City'}</label> <input type="text" class="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}"> <sup>*</sup> </p> <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated --> {elseif $field_name eq "Country:name" || $field_name eq "country"} <p class="required select"> <label for="id_country">{l s='Country'}</label> <select name="id_country" id="id_country"> <option value="">-</option> {foreach from=$countries item=v} <option value="{$v.id_country}" {if ($sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> <sup>*</sup> </p> {elseif $field_name eq "State:name"} {assign var='stateExist' value=true} <p class="required id_state select"> <label for="id_state">{l s='State'}</label> <select name="id_state" id="id_state"> <option value="">-</option> </select> <sup>*</sup> </p> {elseif $field_name eq "phone"} <p class="text"> <label for="phone">{l s='Phone'}</label> <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}"> <sup style="color:red;">*</sup> </p> {/if} {/foreach} {if $stateExist eq false} <p class="required id_state select"> <label for="id_state">{l s='State'}</label> <select name="id_state" id="id_state"> <option value="">-</option> </select> <sup>*</sup> </p> {/if} <input type="hidden" name="alias" id="alias" value="{l s='My address'}"> <input type="hidden" name="is_new_customer" id="is_new_customer" value="0"> </div> </fieldset> <fieldset class="account_creation dni"> <h3>{l s='Tax identification'}</h3> <p class="required text"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> <sup>*</sup> </p> </fieldset> <p class="cart_navigation required submit"> <span><sup>*</sup>{l s='Required field'}</span> <input type="submit" class="button" name="submitGuestAccount" id="submitGuestAccount" style="float:right" value="{l s='Continue'}"> </p> </form> {/if} {else} <form action="{$link->getPageLink('authentication.php', true)}" method="post" id="account-creation_form" class="std"> {$HOOK_CREATE_ACCOUNT_TOP} <fieldset class="account_creation">