Files
oscop/index.xslt
2023-12-22 09:11:18 +01:00

1337 lines
85 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><iai:component><iai:componentsdata><cdata-start/>
<iaixsl:variable name="client_new_mode"><iaixsl:choose><iaixsl:when test="/shop/page/client-data/@edit='true' and not(/shop/client_data/@signin='cookie')">edit</iaixsl:when><iaixsl:when test="/shop/page/client-data/@register='true'">register</iaixsl:when><iaixsl:when test="not(/shop/page/client-data/@edit='true')">onceorder</iaixsl:when></iaixsl:choose></iaixsl:variable>
<iaixsl:variable name="is_firm"><iaixsl:choose><iaixsl:when test="(/shop/page/client-data/client_type/@type = 'firm') or (page/client-data/@operation = 'register-wholesale-add') or (page/client-data/@operation = 'edit-wholesale-add') or (page/client-data/@operation = 'edit-wholesale-edit')">true</iaixsl:when><iaixsl:otherwise>false</iaixsl:otherwise></iaixsl:choose></iaixsl:variable>
<iaixsl:variable name="zaloguj_przez"><iai:variable vid="Zaloguj się"/> </iaixsl:variable>
<iaixsl:variable name="returns_agree_control"></iaixsl:variable>
<iaixsl:if test="not(/shop/page/client-data/@edit='true')">
<div id="signin-form-ajax" class="signin-form_box">
<div class="signin-form_box_sub">
<h2>
<iai:variable vid="Moje konto"/>
</h2>
<div class="signin-form_box_text">
<p></p>
<form action="signin.php" method="post" class="f-group">
<input type="hidden" name="operation" value="login"/>
<div class="signin_inputs f-feedback">
<input autocomplete="off" class="signin_login_input f-control" type="text" name="login" size="20"/>
<label class="f-label"> <iai:variable vid="Login / Nr karty stałego klienta / E-mail"/> </label>
</div>
<div class="signin_inputs f-feedback">
<input autocomplete="off" class="signin_pass_input f-control" type="password" name="password" size="15"/>
<label class="f-label"> <iai:variable vid="Hasło / Pin karty stałego klienta"/> </label>
</div>
<button class="signin_button" type="submit">
<iaixsl:attribute name="class">btn signin_button</iaixsl:attribute>
<iai:variable vid="Zaloguj się"/>
</button>
<a class="password_reminder" href="/password-recover.php"><iai:variable vid="Nie pamiętam hasła"/></a>
</form>
</div>
</div>
</div>
</iaixsl:if>
<!--jak pusty koszyk to przekieruj-->
<iaixsl:if test="/shop/basket/@count='0'">
<script>window.location.href="/return.php?status=basket_empty"</script>
</iaixsl:if>
<iaixsl:if test="(number(/shop/basket/@cost) = 0) and (number(/shop/basket/@points_used) = 0)">
<script>window.location.href="/return.php?status=order_minimum"</script>
</iaixsl:if>
<iaixsl:if test="number(/shop/basket/@points_used) &gt; number(/shop/basket/@client_points)">
<script>window.location.href="/return.php?status=order_notenoughpoints"</script>
</iaixsl:if>
<iaixsl:if test="/shop/order_edit">
<input type="hidden" id="edit-number">
<iaixsl:attribute name="value">
<iaixsl:value-of select="/shop/order_edit/@order_number"></iaixsl:value-of>
</iaixsl:attribute>
</input>
</iaixsl:if>
<a class="go__shopping">
<iaixsl:attribute name="href">
<iaixsl:value-of select="/shop/@sslurl"></iaixsl:value-of>
</iaixsl:attribute>
<iai:variable vid="Kontynuuj zakupy w sklepie"/>
</a>
<div class="ajax_cop" id="place-order">
<div class="form_data">
<!-- DANE KLIENTA -->
<div class="cop_seection clearfix" id="cop_seection1">
<div class="cop_seectio_sub">
<div class="client_section step1">
<div class="step1_sub cop_box" id="ajax_cop_step1">
<div class="cop_box_sub">
<h2>
<span>
1. <iai:variable vid="Dane kontaktowe"/>
</span>
</h2>
<!--OPCJE LOGOWANIA-->
<iaixsl:if test="not(/shop/basket/@login)">
<div class="signin">
<span class="signin_header">
<iai:variable vid="Masz już u nas konto"/>?
<a class="btn-large get_signin"><iai:variable vid="Zaloguj się"/></a>
<iai:variable vid="lub połącz konto"/>
</span>
<iaixsl:if test="$zaloguj_przez and count(login_options/service)>1">
<ul class="client_new_social">
<iaixsl:for-each select="login_options/service[not(@name='shop_register')][@login_url]">
<li>
<iaixsl:attribute name="class">login_options_<iaixsl:value-of select="translate (@name, '+ ', '')"/> </iaixsl:attribute>
<iaixsl:choose>
<iaixsl:when test="@login_url">
<a>
<iaixsl:attribute name="href"><iaixsl:value-of select="@login_url"/></iaixsl:attribute>
<img>
<iaixsl:attribute name="src">
<iaixsl:value-of select="@gfx_big"></iaixsl:value-of>
</iaixsl:attribute>
<iaixsl:attribute name="alt">
<iaixsl:value-of select="@name"></iaixsl:value-of>
</iaixsl:attribute>
</img>
<span>
<iaixsl:value-of select="$zaloguj_przez"/>
<iaixsl:value-of select="@name"/>
</span>
</a>
</iaixsl:when>
</iaixsl:choose>
</li>
</iaixsl:for-each>
</ul>
</iaixsl:if>
</div>
<!--EMAIL I TELEFON-->
<form id="client_contact_info" onsubmit="return false" class="f-group">
<div class="form-group">
<div class="has-feedback f-feedback">
<input id="client_email" type="email" class="form-control validate f-control" name="client_email">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/contact_data/@email"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/contact_data/@mandatory_email = 'true'">
<iaixsl:attribute name="required">required</iaixsl:attribute>
</iaixsl:if>
</input>
<label for="client_email" class="f-label">
<iai:variable vid="E-mail"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group">
<div class="has-feedback f-feedback">
<input id="client_phone" type="tel" class="form-control validate f-control" name="client_phone" data-serialize="#client_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/contact_data/@phone"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/contact_data/@mandatory_phone = 'true'">
<iaixsl:attribute name="required">required</iaixsl:attribute>
</iaixsl:if>
<iaixsl:attribute name="data-copy">delivery_phone</iaixsl:attribute>
</input>
<label for="client_phone" class="f-label">
<iai:variable vid="Numer telefonu"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</form>
<!--OKNO REJESTRACJI-->
<div class="register">
<div class="register__option">
<input type="checkbox" name="register_client" id="register_client_checkbox"/>
<label for="register_client_checkbox"><iai:variable vid="Załóż konto w sklepie"/><span><iai:variable vid="Opcjonalnie"/></span></label>
</div>
<form class="register__form f-group" onsubmit="return false">
<div class="register__item has-feedback f-feedback">
<input type="text" class="register__login form-control f-control" required="required" name="client_login">
</input>
<label class="f-label"><iai:variable vid="Login"/></label>
</div>
<div class="register__item has-feedback f-feedback">
<input type="password" class="register__password form-control f-control" required="required" name="client_password">
<iaixsl:attribute name="maxlength">
<iaixsl:choose>
<iaixsl:when test="/shop/page/client-data/profile_data/@max_password_length">
<iaixsl:value-of select="/shop/page/client-data/profile_data/@max_password_length"></iaixsl:value-of>
</iaixsl:when>
<iaixsl:otherwise>30</iaixsl:otherwise>
</iaixsl:choose>
</iaixsl:attribute>
</input>
<label class="f-label"><iai:variable vid="Hasło"/></label>
<input type="hidden" id="repeat_password" name="repeat_password" required="required"></input>
<div id="toggle_password" class="register__show-password"><iai:variable vid="Pokaż hasło"/></div>
</div>
</form>
</div>
</iaixsl:if>
</div>
</div>
</div>
<div class="clearfix"/>
<!-- KLIENT NIE ZALOGOWANY-->
<iaixsl:choose>
<iaixsl:when test="not(/shop/basket/@login)">
<div id="client_new_form">
<form id="client_new_client" onsubmit="return false" class="f-group">
<div class="client_box cn_wrapper">
<iaixsl:if test="not((page/client-data/@operation = 'register-wholesale-add') or (page/client-data/@operation = 'edit-wholesale-add') or (page/client-data/@operation = 'edit-wholesale-edit')) or (page/client-data/@disallow_change_company_data = 'false')">
<div class="form-group firm_switcher">
<div class="firm-form form-control-static">
<span class="client_type-text"><iai:variable vid="Zamawiasz jako"/>:</span>
<label class="radio-inline">
<input type="radio" id="client_type2" value="private" name="client_type">
<iaixsl:if test="$is_firm = 'false'">
<iaixsl:attribute name="checked">checked</iaixsl:attribute>
</iaixsl:if>
</input>
<span for="client_type2"/>
<span class="radio-desc"><iai:variable vid="Osoba prywatna"/></span>
</label>
<label class="radio-inline">
<input type="radio" id="client_type1" value="firm" name="client_type">
<iaixsl:if test="$is_firm = 'true'">
<iaixsl:attribute name="checked">checked</iaixsl:attribute>
</iaixsl:if>
</input>
<span for="client_type1"/>
<span class="radio-desc"><iai:variable vid="Firma"/></span>
</label>
</div>
</div>
<div class="form-group firm-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group firm-group readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input type="text" class="form-control validate f-control" name="client_firm" id="client_firm">
<iaixsl:attribute name="required">required</iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@additional"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@firm"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_additional</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
</input>
<label for="client_firm" class="f-label">
<iai:variable vid="Firma"/>
</label>
</div>
</div>
<iaixsl:if test="/shop/page/client-data/nip/@active != 'hide'">
<div class="form-group firm-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group firm-group readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input type="text" class="form-control validate f-control" name="client_nip" id="client_nip" data-serialize="#client_region">
<iaixsl:if test="/shop/page/client-data/nip/@active = 'required'">
<iaixsl:attribute name="required">required</iaixsl:attribute>
</iaixsl:if>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@tax_number"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@nip"/></iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
</input>
<label for="client_nip" class="f-label">
<iai:variable vid="NIP"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</iaixsl:if>
</iaixsl:if>
<div class="form-group move_is_firm">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group move_is_firm readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input id="client_firstname" type="text" class="form-control validate f-control" name="client_firstname">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@name"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@firstname"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_firstname</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="client_firstname" class="f-label">
<iai:variable vid="Imię"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group move_is_firm">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group move_is_firm readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input id="client_lastname" type="text" class="form-control validate f-control" name="client_lastname">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@lastname"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@lastname"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_lastname</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="/shop/page/client-data/profile_data/@mandatory_lastname = 'true'"><iaixsl:attribute name="required">required</iaixsl:attribute></iaixsl:if>
</input>
<label for="client_lastname" class="f-label">
<iai:variable vid="Nazwisko"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<iaixsl:if test="/shop/page/client-data/birth_date/@active != 'hide'">
<div class="form-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input id="birth_date" type="text" class="form-control validate f-control" name="birth_date">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@birthdate"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/birth_date/@date != '0000-00-00'"><iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/birth_date/@date"/></iaixsl:attribute></iaixsl:if>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="/shop/page/client-data/birth_date/@active='required'"><iaixsl:attribute name="required">required</iaixsl:attribute></iaixsl:if>
</input>
<label for="birth_date" class="f-label">
<iai:variable vid="Data urodzenia"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</iaixsl:if>
<div class="form-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group readonly</iaixsl:attribute></iaixsl:if>
<div class="has-feedback f-feedback">
<input id="client_street" type="text" class="form-control validate f-control" name="client_street" data-serialize="#client_region">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@addres"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@street"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_street</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="client_street" class="f-label">
<iai:variable vid="Adres"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group readonly</iaixsl:attribute></iaixsl:if>
<div class="row">
<div class="zipcode_wrapper col-md-5 has-feedback f-feedback">
<input id="client_zipcode" type="text" class="form-control validate f-control" name="client_zipcode" data-serialize="#client_region">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_zipcode</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="client_zipcode" class="f-label">
<iai:variable vid="Kod pocztowy"/>
</label>
<span class="form-control-feedback"/>
</div>
<div class="city_wrapper col-md-7 has-feedback f-feedback">
<input id="client_city" type="text" class="form-control validate f-control" name="client_city">
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@city"/></iaixsl:attribute>
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@city"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_city</iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="client_city" class="f-label">
<iai:variable vid="Miasto"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</div>
<iaixsl:choose>
<iaixsl:when test="count(/shop/page/options/countries/country) = 1 and (/shop/page/options/countries/country/@id = 1143020003)">
<input id="client_region" type="hidden" name="client_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/options/countries/country/@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="/shop/page/options/countries/country/@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="/shop/page/options/countries/country/@vat"/></iaixsl:attribute>
</input>
</iaixsl:when>
<iaixsl:otherwise>
<div class="form-group">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group readonly</iaixsl:attribute></iaixsl:if>
<label for="client_region" class="control-label" style="display: none;">
<iai:variable vid="Kraj"/>
</label>
<div>
<select class="form-control delivery_countries" id="client_region" name="client_region" data-revalidate="#client_street,#client_zipcode">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="data-copy">delivery_region</iaixsl:attribute>
<iaixsl:for-each select="/shop/page/options/countries/country">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="@vat"/></iaixsl:attribute>
<iaixsl:choose>
<iaixsl:when test="/shop/page/client-data/invoice_data/@region > 0">
<iaixsl:if test="@id = /shop/page/client-data/invoice_data/@region">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
</iaixsl:when>
<iaixsl:when test="@id = /shop/page/options/countries/@delivery_active">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:when>
</iaixsl:choose>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:for-each select="/shop/page/options/countries/country">
<iaixsl:if test="provinces/province">
<div class="form-group client_provinces" style="display: none;">
<iaixsl:if test="@selected = 'true'"><iaixsl:attribute name="style">display: block;</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="id">client_region_<iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="class">form-group client_provinces readonly</iaixsl:attribute></iaixsl:if>
<label for="client_province" class="control-label" style="display: none;">
<iaixsl:attribute name="class">control-label</iaixsl:attribute>
<iaixsl:for-each select="province_types/type">
<iaixsl:choose>
<iaixsl:when test="text() = 'state'"><iai:variable vid="Stan"/></iaixsl:when>
<iaixsl:when test="text() = 'province'"><iai:variable vid="Prowincja"/></iaixsl:when>
<iaixsl:when test="text() = 'territory'"><iai:variable vid="Terytorium"/></iaixsl:when>
<iaixsl:otherwise><iai:variable vid="Region"/></iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:if test="not(position() = last())">/</iaixsl:if>
</iaixsl:for-each>:
</label>
<div>
<select class="form-control" name="client_province">
<iaixsl:if test="page/client-data/@disallow_change_company_data = 'true'"><iaixsl:attribute name="readonly">readonly</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="not(@selected = 'true')"><iaixsl:attribute name="disabled">disabled</iaixsl:attribute></iaixsl:if>
<iaixsl:attribute name="id">client_province_<iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-copy">delivery_province</iaixsl:attribute>
<iaixsl:for-each select="provinces/province">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:choose>
<iaixsl:when test="/shop/page/client-data/invoice_data/@province > 0">
<iaixsl:if test="@id = /shop/page/client-data/invoice_data/@province">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
</iaixsl:when>
<iaixsl:otherwise>
<iaixsl:if test="@selected = 'true'">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
</iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:if>
</iaixsl:for-each>
</div>
</form>
<!-- INNY ADRES DOSTAWY (KLIENT NIE ZALOGOWANY) -->
<div id="client_new_additional">
<iaixsl:if test="not(/shop/page/client-data/@edit = 'true') and (/shop/page/client-data/delivery_data/@use != 'hide')">
<div class="form-group" id="delivery_box_switcher">
<label class="control-label" for="deliver_to_billingaddr">
<input type="checkbox" name="deliver_to_billingaddr" id="deliver_to_billingaddr" value="0"></input>
<iai:variable vid="Dostawa na inny adres"/>
</label>
<!--<div class="delivery-form form-control-static">-->
<!-- <label class="radio-inline">-->
<!-- <input type="checkbox" name="deliver_to_billingaddr" id="deliver_to_billingaddr" value="0"></input>-->
<!--<span for="deliver_to_billingaddr1"/>-->
<!--<span class="radio-desc"><iai:variable vid="Nie"/></span>-->
<!--<input type="radio" name="deliver_to_billingaddr" id="deliver_to_billingaddr1" value="1">-->
<!-- <iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'no')"><iaixsl:attribute name="checked">checked</iaixsl:attribute></iaixsl:if>-->
<!--</input>-->
<!--<span for="deliver_to_billingaddr1"/>-->
<!--<span class="radio-desc"><iai:variable vid="Nie"/></span>-->
<!--</label>-->
<!--<label class="radio-inline">-->
<!--<input type="radio" name="deliver_to_billingaddr" id="deliver_to_billingaddr2" value="0">-->
<!-- <iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'yes')"><iaixsl:attribute name="checked">checked</iaixsl:attribute></iaixsl:if>-->
<!--</input>-->
<!--<span for="deliver_to_billingaddr2"/>-->
<!--<span class="radio-desc"><iai:variable vid="Tak"/></span>-->
<!--</label>-->
<!--</div>-->
</div>
</iaixsl:if>
<iaixsl:if test="not(/shop/page/client-data/@edit = 'true') and (/shop/page/client-data/delivery_data/@use != 'hide')">
<form class="delivery_box cn_wrapper f-group" onsubmit="return false">
<iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'yes')"><iaixsl:attribute name="style">display:block;</iaixsl:attribute></iaixsl:if>
<iaixsl:for-each select="/shop/page/client-data/delivery_data">
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_firstname" type="text" class="form-control validate f-control" name="delivery_firstname">
<iaixsl:attribute name="value"><iaixsl:value-of select="@firstname"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@name"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_firstname" class="f-label">
<iai:variable vid="Imię"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_lastname" type="text" class="form-control validate f-control" name="delivery_lastname">
<iaixsl:attribute name="value"><iaixsl:value-of select="@lastname"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@name"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/profile_data/@mandatory_lastname = 'true'"><iaixsl:attribute name="required">required</iaixsl:attribute></iaixsl:if>
</input>
<label for="delivery_lastname" class="f-label">
<iai:variable vid="Nazwisko"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide f-feedback">
<div class="has-feedback f-feedback">
<input id="delivery_additional" type="text" class="form-control validate f-control" name="delivery_additional">
<iaixsl:attribute name="value"><iaixsl:value-of select="@additional"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@additional"/></iaixsl:attribute>
</input>
<label for="delivery_additional" class="f-label">
<iai:variable vid="Nazwa firmy"/>
</label>
</div>
</div>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_street" type="text" class="form-control validate f-control" name="delivery_street" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@street"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@addres"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_street" class="f-label">
<iai:variable vid="Adres"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide">
<div class="row">
<div class="zipcode_wrapper col-md-5 has-feedback f-feedback">
<input id="delivery_zipcode" type="text" class="form-control validate f-control" name="delivery_zipcode" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_zipcode" class="f-label">
<iai:variable vid="Kod pocztowy"/>
</label>
<span class="form-control-feedback"/>
</div>
<div class="city_wrapper col-md-7 has-feedback f-feedback">
<input id="delivery_city" type="text" class="form-control validate f-control" name="delivery_city">
<iaixsl:attribute name="value"><iaixsl:value-of select="@city"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@city"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_city" class="f-label">
<iai:variable vid="Miasto"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</div>
<iaixsl:choose>
<iaixsl:when test="count(/shop/page/options/countries/country) = 1 and (/shop/page/options/countries/country/@id = 1143020003)">
<input id="delivery_region" type="hidden" name="delivery_region" class="--hide">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/options/countries/country/@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="/shop/page/options/countries/country/@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="/shop/page/options/countries/country/@vat"/></iaixsl:attribute>
</input>
</iaixsl:when>
<iaixsl:otherwise>
<div class="form-group --hide">
<label for="delivery_region" class="control-label" style="display:none;">
<iai:variable vid="Kraj"/>
</label>
<div>
<select class="form-control delivery_countries" id="delivery_region" name="delivery_region" data-revalidate="#delivery_street,#delivery_zipcode">
<iaixsl:for-each select="/shop/page/options/countries/country">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="@vat"/></iaixsl:attribute>
<iaixsl:if test="(@id = /shop/page/client-data/delivery_data/@region) or (@id = /shop/page/options/countries/@delivery_active)">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:for-each select="/shop/page/options/countries/country">
<iaixsl:if test="provinces/province">
<div class="form-group client_provinces --hide" style="display: none;">
<iaixsl:attribute name="id">delivery_region_<iaixsl:value-of select="@id"/></iaixsl:attribute>
<label for="delivery_province" class="control-label" style="display:none;">
<iaixsl:for-each select="province_types/type">
<iaixsl:choose>
<iaixsl:when test="text() = 'state'"><iai:variable vid="Stan"/></iaixsl:when>
<iaixsl:when test="text() = 'province'"><iai:variable vid="Prowincja"/></iaixsl:when>
<iaixsl:when test="text() = 'territory'"><iai:variable vid="Terytorium"/></iaixsl:when>
<iaixsl:otherwise><iai:variable vid="Region"/></iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:if test="not(position() = last())">/</iaixsl:if>
</iaixsl:for-each>:
</label>
<div>
<select class="form-control" name="delivery_province">
<iaixsl:for-each select="provinces/province">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:if test="(@id = /shop/page/client-data/invoice_data/@province) or (@selected = 'true')">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:if>
</iaixsl:for-each>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_phone" type="text" class="form-control validate f-control" name="delivery_phone" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@phone"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@phone"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/contact_data/@mandatory_phone = 'true'">
<iaixsl:attribute name="required">required</iaixsl:attribute>
</iaixsl:if>
</input>
<label for="delivery_phone" class="f-label">
<iai:variable vid="Numer telefonu"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</iaixsl:for-each>
</form>
</iaixsl:if>
</div>
</div>
<script type="text/javascript" class="ajaxLoad">
<iaixsl:if test="/shop/page/client-data/profile_data/@min_password_length and /shop/page/client-data/profile_data/@max_password_length">
var ClNewPasswordLengthMin ="<iaixsl:value-of select="/shop/page/client-data/profile_data/@min_password_length"/>";
var ClNewPasswordLengthMax ="<iaixsl:value-of select="/shop/page/client-data/profile_data/@max_password_length"/>";
</iaixsl:if>
var is_firm = <iaixsl:value-of select="$is_firm"/>;
var client_new_mode = "<iaixsl:value-of select="$client_new_mode"/>";
</script>
<script type="text/javascript" class="ajaxLoad">
client_new.init();
</script>
</iaixsl:when>
<!-- KLIENT ZALOGOWANY -->
<iaixsl:otherwise>
<div class="client_biling_data billing_data_tabb">
<input type="hidden" name="client_type_logg">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/client_type/@type"/></iaixsl:attribute>
</input>
<input type="hidden" name="client_firm_additional_logg">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/delivery_data/@additional"/></iaixsl:attribute>
</input>
<input type="hidden" name="client_mailing_logg">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/contact_data/@mailing"/></iaixsl:attribute>
</input>
<input type="hidden" name="client_send_sms_logg">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/contact_data/@mandatory_phone"/></iaixsl:attribute>
</input>
<iaixsl:if test="/shop/page/client-data/invoice_data/@firstname != ''">
<div>
<b><iai:variable vid="Imię"/>: </b>
<span class="client_firstname_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@firstname"/></span>
</div>
</iaixsl:if>
<iaixsl:if test="/shop/page/client-data/invoice_data/@lastname != ''">
<div>
<b><iai:variable vid="Nazwisko"/>: </b>
<span class="client_lastname_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@lastname"/></span>
</div>
</iaixsl:if>
<iaixsl:if test="/shop/page/client-data/invoice_data/@firm != ''">
<div>
<b><iai:variable vid="Nazwa firmy"/>: </b>
<span class="client_firm_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@firm"/></span>
</div>
</iaixsl:if>
<iaixsl:if test="/shop/page/client-data/invoice_data/@nip != ''">
<div>
<b><iai:variable vid="NIP"/>: </b>
<span class="client_nip_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@nip"/></span>
</div>
</iaixsl:if>
<div>
<b><iai:variable vid="Ulica i numer"/>: </b>
<span class="client_street_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@street"/></span>
</div>
<div>
<b><iai:variable vid="Kod pocztowy"/> <iai:variable vid="i"/> <iai:variable vid="Miasto"/>: </b>
<span><span class="client_zipcode_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@zipcode"/></span>&#160;<span class="client_city_logg"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@city"/></span></span>
</div>
<div>
<b><iai:variable vid="Kraj"/>: </b>
<span class="client_region_logg">
<iaixsl:for-each select="/shop/page/options/countries/country">
<iaixsl:if test="@id = /shop/page/client-data/invoice_data/@region">
<iaixsl:value-of select="@name"/>
</iaixsl:if>
</iaixsl:for-each>
<input type="hidden" name="client_region_logg">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/client-data/invoice_data/@region"/></iaixsl:attribute>
</input>
</span>
</div>
<iaixsl:if test="/shop/page/client-data/contact_data/@phone != ''">
<div>
<b><iai:variable vid="Numer telefonu"/>: </b>
<span class="client_phone_logg"><iaixsl:value-of select="/shop/page/client-data/contact_data/@phone"/></span>
</div>
</iaixsl:if>
<iaixsl:if test="/shop/page/client-data/contact_data/@email != ''">
<div>
<b><iai:variable vid="Adres e-mail"/>: </b>
<span class="client_email_logg"><iaixsl:value-of select="/shop/page/client-data/contact_data/@email"/></span>
</div>
</iaixsl:if>
</div>
<div id="client_new_additional">
<iaixsl:if test="not(/shop/page/client-data/@edit = 'true') and (/shop/page/client-data/delivery_data/@use != 'hide')">
<div class="form-group" id="delivery_box_switcher">
<label class="control-label" for="deliver_to_billingaddr">
<input type="checkbox" name="deliver_to_billingaddr" id="deliver_to_billingaddr" value="0"></input>
<iai:variable vid="Dostawa na inny adres"/>:
</label>
<!--<div class="delivery-form form-control-static">-->
<!--<label class="radio-inline">-->
<!--<input type="checkbox" name="deliver_to_billingaddr" id="deliver_to_billingaddr" value="0"></input>-->
<!--<span for="deliver_to_billingaddr1"/>-->
<!--<span class="radio-desc"><iai:variable vid="Nie"/></span>-->
<!--<input type="radio" name="deliver_to_billingaddr" id="deliver_to_billingaddr1" value="1">-->
<!-- <iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'no')"><iaixsl:attribute name="checked">checked</iaixsl:attribute></iaixsl:if>-->
<!--</input>-->
<!--<span for="deliver_to_billingaddr1"/>-->
<!--<span class="radio-desc"><iai:variable vid="Nie"/></span>-->
<!--</label>-->
<!--<label class="radio-inline">-->
<!--<input type="radio" name="deliver_to_billingaddr" id="deliver_to_billingaddr2" value="0">-->
<!-- <iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'yes')"><iaixsl:attribute name="checked">checked</iaixsl:attribute></iaixsl:if>-->
<!--</input>-->
<!--<span for="deliver_to_billingaddr2"/>-->
<!--<span class="radio-desc"><iai:variable vid="Tak"/></span>-->
<!--</label>-->
<!--</div>-->
<iaixsl:if test="/shop/page/client-data/addresses-list/@count &gt; 0">
<button class="delivery__address-list-button" style="display:none;">
<iai:variable vid="Wybierz z listy adresów"/>
</button>
<div class="delivery__address-list-container">
<h2><iai:variable vid="Lista adresów"/></h2>
<span><iai:variable vid="Wybierz z listy adresów"/></span>
<ul class="delivery__address-list">
<iaixsl:for-each select="/shop/page/client-data/addresses-list/address">
<li>
<iaixsl:attribute name="data-firstname"><iaixsl:value-of select="@firstname"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-lastname"><iaixsl:value-of select="@lastname"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-city"><iaixsl:value-of select="@city"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-street"><iaixsl:value-of select="@street"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-zipcode"><iaixsl:value-of select="@zipcode"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-country_name"><iaixsl:value-of select="@country_name"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-region_id"><iaixsl:value-of select="@region_id"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:attribute name="data-phone"><iaixsl:value-of select="@phone"></iaixsl:value-of></iaixsl:attribute>
<iaixsl:if test="@additional">
<iaixsl:attribute name="data-additional"><iaixsl:value-of select="@additional"></iaixsl:value-of></iaixsl:attribute>
</iaixsl:if>
<span>
<iaixsl:attribute name="class">delivery__address-list-firstname</iaixsl:attribute>
<iaixsl:value-of select="@firstname"></iaixsl:value-of>
</span>
<span>
<iaixsl:attribute name="class">delivery__address-list-lastname</iaixsl:attribute>
<iaixsl:value-of select="@lastname"></iaixsl:value-of>
</span>
<iaixsl:if test="@additional">
<span>
<iaixsl:attribute name="class">delivery__address-list-additional</iaixsl:attribute>
<iaixsl:value-of select="@additional"></iaixsl:value-of>
</span>
</iaixsl:if>
<span>
<iaixsl:attribute name="class">delivery__address-list-street</iaixsl:attribute>
<iaixsl:value-of select="@street"></iaixsl:value-of>
</span>
<span>
<iaixsl:attribute name="class">delivery__address-list-city</iaixsl:attribute>
<iaixsl:value-of select="@city"></iaixsl:value-of>
</span>
<span>
<iaixsl:attribute name="class">delivery__address-list-zipcode</iaixsl:attribute>
<iaixsl:value-of select="@zipcode"></iaixsl:value-of>
</span>
<span>
<iaixsl:attribute name="class">delivery__address-list-phone</iaixsl:attribute>
<iaixsl:value-of select="@phone"></iaixsl:value-of>
</span>
<span>
<iaixsl:attribute name="class">delivery__address-country_name</iaixsl:attribute>
<iaixsl:value-of select="@country_name"></iaixsl:value-of>
</span>
</li>
</iaixsl:for-each>
</ul>
</div>
</iaixsl:if>
</div>
</iaixsl:if>
<iaixsl:if test="not(/shop/page/client-data/@edit = 'true') and (/shop/page/client-data/delivery_data/@use != 'hide')">
<div class="delivery_box cn_wrapper f-group">
<iaixsl:if test="(/shop/page/client-data/delivery_data/@use = 'yes')"><iaixsl:attribute name="style">display:block;</iaixsl:attribute>
</iaixsl:if>
<iaixsl:for-each select="/shop/page/client-data/delivery_data">
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_firstname" type="text" class="form-control validate f-control" name="delivery_firstname">
<iaixsl:attribute name="value"><iaixsl:value-of select="@firstname"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@name"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_firstname" class="f-label">
<iai:variable vid="Imię"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_lastname" type="text" class="form-control validate f-control" name="delivery_lastname">
<iaixsl:attribute name="value"><iaixsl:value-of select="@lastname"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@name"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/profile_data/@mandatory_lastname = 'true'"><iaixsl:attribute name="required">required</iaixsl:attribute></iaixsl:if>
</input>
<label for="delivery_lastname" class="f-label">
<iai:variable vid="Nazwisko"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_additional" type="text" class="form-control validate f-control" name="delivery_additional">
<iaixsl:attribute name="value"><iaixsl:value-of select="@additional"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@additional"/></iaixsl:attribute>
</input>
<label for="delivery_additional" class="f-label">
<iai:variable vid="Nazwa firmy"/>
</label>
</div>
</div>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_street" type="text" class="form-control validate f-control" name="delivery_street" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@street"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@addres"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_street" class="f-label">
<iai:variable vid="Adres"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
<div class="form-group --hide">
<div class="row" style="padding-left:0.5rem;">
<div class="zipcode_wrapper col-md-5 has-feedback f-feedback">
<input id="delivery_zipcode" type="text" class="form-control validate f-control" name="delivery_zipcode" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@zipcode"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_zipcode" class="f-label">
<iai:variable vid="Kod pocztowy"/>
</label>
<span class="form-control-feedback"/>
</div>
<div class="city_wrapper col-md-7 has-feedback f-feedback">
<input id="delivery_city" type="text" class="form-control validate f-control" name="delivery_city">
<iaixsl:attribute name="value"><iaixsl:value-of select="@city"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@city"/></iaixsl:attribute>
<iaixsl:attribute name="required">required</iaixsl:attribute>
</input>
<label for="delivery_city" class="f-label">
<iai:variable vid="Miasto"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</div>
<iaixsl:choose>
<iaixsl:when test="count(/shop/page/options/countries/country) = 1 and (/shop/page/options/countries/country/@id = 1143020003)">
<input id="delivery_region" type="hidden" name="delivery_region" class="--hide">
<iaixsl:attribute name="value"><iaixsl:value-of select="/shop/page/options/countries/country/@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="/shop/page/options/countries/country/@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="/shop/page/options/countries/country/@vat"/></iaixsl:attribute>
</input>
</iaixsl:when>
<iaixsl:otherwise>
<div class="form-group --hide">
<label for="delivery_region" class="control-label" style="display:none;">
<iai:variable vid="Kraj"/>
</label>
<div>
<select class="form-control delivery_countries" id="delivery_region" name="delivery_region" data-revalidate="#delivery_street,#delivery_zipcode">
<iaixsl:for-each select="/shop/page/options/countries/country">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat_company"><iaixsl:value-of select="@vat_company"/></iaixsl:attribute>
<iaixsl:attribute name="data-vat"><iaixsl:value-of select="@vat"/></iaixsl:attribute>
<iaixsl:if test="(@id = /shop/page/client-data/delivery_data/@region) or (@id = /shop/page/options/countries/@delivery_active)">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:for-each select="/shop/page/options/countries/country">
<iaixsl:if test="provinces/province">
<div class="form-group client_provinces --hide" style="display: none;">
<iaixsl:attribute name="id">delivery_region_<iaixsl:value-of select="@id"/></iaixsl:attribute>
<label for="delivery_province" class="control-label" style="display:none;">
<iaixsl:for-each select="province_types/type">
<iaixsl:choose>
<iaixsl:when test="text() = 'state'"><iai:variable vid="Stan"/></iaixsl:when>
<iaixsl:when test="text() = 'province'"><iai:variable vid="Prowincja"/></iaixsl:when>
<iaixsl:when test="text() = 'territory'"><iai:variable vid="Terytorium"/></iaixsl:when>
<iaixsl:otherwise><iai:variable vid="Region"/></iaixsl:otherwise>
</iaixsl:choose>
<iaixsl:if test="not(position() = last())">/</iaixsl:if>
</iaixsl:for-each>:
</label>
<div>
<select class="form-control" name="delivery_province">
<iaixsl:for-each select="provinces/province">
<option>
<iaixsl:attribute name="value"><iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:if test="(@id = /shop/page/client-data/invoice_data/@province) or (@selected = 'true')">
<iaixsl:attribute name="selected">selected</iaixsl:attribute>
</iaixsl:if>
<iaixsl:value-of select="@name"/>
</option>
</iaixsl:for-each>
</select>
</div>
</div>
</iaixsl:if>
</iaixsl:for-each>
<div class="form-group --hide">
<div class="has-feedback f-feedback">
<input id="delivery_phone" type="text" class="form-control validate f-control" name="delivery_phone" data-serialize="#delivery_region">
<iaixsl:attribute name="value"><iaixsl:value-of select="@phone"/></iaixsl:attribute>
<iaixsl:attribute name="maxlength"><iaixsl:value-of select="/shop/page/input_option/@phone"/></iaixsl:attribute>
<iaixsl:if test="/shop/page/client-data/contact_data/@mandatory_phone = 'true'">
<iaixsl:attribute name="required">required</iaixsl:attribute>
</iaixsl:if>
</input>
<label for="delivery_phone" class="f-label">
<iai:variable vid="Numer telefonu"/>
</label>
<span class="form-control-feedback"/>
</div>
</div>
</iaixsl:for-each>
</div>
</iaixsl:if>
</div>
</iaixsl:otherwise>
</iaixsl:choose>
</div>
<!-- FAKTURY -->
<div id="FBS_faktura">
<span><iai:variable vid="Chcę otrzymać"/>:</span>
<input type="hidden" name="checkinvoice" value="true"/>
<div class="order2_terms_wrapper_sub newsletter fbs_inpfaktura">
<label>
<input type="radio" class="order2_radio_document" name="invoice" id="order2_document_confirmation" value="0" checked=""/>
<label for="order2_document_confirmation"></label>
<span><iai:variable vid="Potwierdzenie zakupu"/></span>
</label>
</div>
<div class="order2_terms_wrapper_sub newsletter fbs_inpfaktura">
<label>
<input type="radio" class="order2_radio_document" name="invoice" id="order2_document_e-invoice" value="2"/>
<label for="order2_document_e-invoice"></label>
<span><iai:variable vid="Fakturę w formie elektronicznej"/></span>
</label>
</div>
<div class="order2_terms_wrapper_sub newsletter fbs_inpfaktura">
<label>
<input type="radio" class="order2_radio_document" name="invoice" id="order2_document_invoice" value="1"/>
<label for="order2_document_invoice"></label>
<span>
<iaixsl:choose>
<iaixsl:when test="/shop/contact/owner/@vat_registered = 'false' and $n68313_order2_document_invoice !=''">
<iaixsl:value-of select="$n68313_order2_document_invoice"/>
</iaixsl:when>
<iaixsl:otherwise><iai:variable vid="Fakturę drukowaną"/></iaixsl:otherwise>
</iaixsl:choose>
</span>
</label>
</div>
<div id="e-invoice_dialog">
<span class="big_label"><iai:variable vid="Elektroniczne dostarczanie faktur"/></span>
<div>
<span class="e-invoice_dialog"><font><iai:variable vid="Chroń środowisko"/></font><iai:variable vid="i przyspiesz otrzymanie faktury"/></span>
<p><iai:variable vid="W trosce o środowisko oraz Twoją wygodę dajemy Ci możliwość wyboru elektronicznej wysyłki faktur. Teraz szybko i bezpiecznie możesz otrzymywać faktury na swoją skrzynkę mailową. Elektroniczne dostarczanie faktur jest cyfrowym odpowiednikiem faktury papierowej. Zawiera dokładnie te same dane i ma taką samą wartość prawną jak tradycyjny dokument w formie papierowej. Korzystanie z faktury przekazanej w formie elektronicznej jest bezpłatne"/>.</p>
<button class="btn --solid --medium"><iai:variable vid="Tak, chcę otrzymać fakturę elektronicznie"/></button>
</div>
</div>
</div>
</div>
<!-- DOSTAWY I PŁATNOŚCI -->
<div class="cop_seection clearfix" id="cop_seection2">
<div id="checkout_step3_1" class="cop_seectio_sub">
<div class="step3 cop_box">
<div class="step3_sub cop_box_sub">
<h2><span>2. <iai:variable vid="Płatności"/></span></h2>
</div>
</div>
</div>
<div id="checkout_step2_1" class="cop_seectio_sub">
<div class="step2 cop_box">
<div class="step2_sub cop_box_sub">
<h2><span>3. <iai:variable vid="Dostawa"/></span></h2>
</div>
</div>
</div>
<div id="checkout_step2_2" class="cop_seectio_sub">
<div class="step3 cop_box">
<h3><i class="icon-pencil"></i> <iai:variable vid="Uwagi do zamówienia"/><span><iai:variable vid="Opcjonalnie"/></span></h3>
<div class="step3_sub cop_box_sub">
<div>
<span><iai:variable vid="Uwagi dla sklepu"/></span>
<textarea id="order_comment_field" name="remarks"/>
</div>
<div>
<span><iai:variable vid="Uwagi dla kuriera"/></span>
<textarea id="order_comment2_field" name="deliverer_remarks"/>
</div>
</div>
</div>
</div>
</div>
</div>
<!--PODSUMOWANIE-->
<div class="cop_seection clearfix" id="cop_seection3">
<div id="checkout_step3_3" class="cop_seectio_sub">
<h2><span><i class="icon-list1"></i> <iai:variable vid="Podsumowanie"/></span></h2>
<!--Produkty-->
<iaixsl:for-each select="basket/product">
<div class="cop_product_wrap">
<iaixsl:if test="position() &gt; 2"><iaixsl:attribute name="class">cop_product_wrap --hide</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="position() = '2' and not(position() = last())"><iaixsl:attribute name="class">cop_product_wrap --last-visible</iaixsl:attribute></iaixsl:if>
<iaixsl:if test="position() = last() and not(position() &lt; 3)"><iaixsl:attribute name="class">cop_product_wrap --hide --last-hidden</iaixsl:attribute></iaixsl:if>
<a class="cop_icon">
<iaixsl:attribute name="href">
<iaixsl:value-of select="@link"/></iaixsl:attribute>
<iaixsl:attribute name="title">
<iaixsl:value-of select="name/text()"/></iaixsl:attribute>
<img class="cop_icon">
<iaixsl:attribute name="src">
<iaixsl:value-of select="icon/text()"/></iaixsl:attribute>
<iaixsl:attribute name="alt">
<iaixsl:value-of select="name/text()"/></iaixsl:attribute>
</img>
</a>
<div class="cop_product_wrap_r">
<iaixsl:if test="size/@ordered or size/@ordered_points">
<span class="cop_quantity">
<strong class="quant">
<iaixsl:choose>
<iaixsl:when test="size/@ordered">
<iaixsl:value-of select="size/@ordered"/>
</iaixsl:when>
<iaixsl:when test="size/@ordered_points">
<iaixsl:value-of select="size/@ordered_points"/>
</iaixsl:when>
</iaixsl:choose>
</strong>x
</span>
</iaixsl:if>
<a class="cop_product_name">
<iaixsl:attribute name="href">
<iaixsl:value-of select="@link"/></iaixsl:attribute>
<iaixsl:attribute name="title">
<iaixsl:value-of select="name/text()"/></iaixsl:attribute>
<iaixsl:attribute name="id_product">
<iaixsl:value-of select="@id"/></iaixsl:attribute>
<iaixsl:value-of select="name/text()"/>
</a>
<span class="cop_price">
<iaixsl:choose>
<iaixsl:when test="number(price/@value) &gt; 0">
<iaixsl:value-of select="price/@worth_formatted"/>
</iaixsl:when>
<iaixsl:when test="number(price/@points) &gt; 0">
<iaixsl:value-of select="price/@points_sum"/> <iai:variable vid="pkt"/>.
</iaixsl:when>
</iaixsl:choose>
</span>
</div>
</div>
</iaixsl:for-each>
<iaixsl:if test="count(basket/product) &gt; 2">
<div class="order_products_action"><span><iai:variable vid="Pokaż pozostałe produkty"/></span></div>
</iaixsl:if>
<!-- Informacje o koszcie-->
<div class="order_pay_wrapper">
<div id="order2_products_worth">
<span><iai:variable vid="Wartość zamówienia"/>: </span>
<span class="operation_value"></span>
</div>
<div id="order2_products_points">
<span><iai:variable vid="Wartość zamówienia w punktach"/>: </span>
<span class="operation_value --points"></span>
</div>
<div id="order2_shipping_value">
<span><iai:variable vid="Koszt przesyłki"/>: </span>
<span class="operation_value"></span>
</div>
<div id="order2_paymentcost_value">
<span><iai:variable vid="Koszt formy płatności"/>: </span>
<span class="operation_value"></span>
</div>
<div id="order2_insurance_value">
<span><iai:variable vid="Koszt ubezpieczenia"/>:</span>
<span class="operation_value"></span>
</div>
<div id="order2_total_rebate">
<span><iai:variable vid="Rabat"/>:</span>
<span class="operation_value minus_sign"></span>
</div>
<div id="order2_saldo_value">
<span><iai:variable vid="Opłacone z salda:(nadpłaty na koncie klienta)"/></span>
<span class="operation_value"></span>
</div>
</div>
</div>
<div id="checkout_step3_2" class="cop_seectio_sub">
<div class="step5 cop_box">
<div class="step5_sub cop_box_sub">
<div class="order2_summary">
<div id="order2_summaryprice">
<span><iai:variable vid="Do zapłaty"/>: </span>
<strong>
<div id="summary-cost"></div>
<div id="summary-points" class="--points"></div>
</strong>
</div>
<div id="order2_shiptime">
<span><iai:variable vid="Przesyłka będzie u Ciebie w ciągu"/> </span>
<span class="operation_value"></span>
</div>
</div>
<!-- Kod rabatowy -->
<div class="rebate">
<div class="rebate__active">
<iaixsl:if test="not(/shop/rebatecode)">
<iaixsl:attribute name="style">display:none;</iaixsl:attribute>
</iaixsl:if>
<div class="rebate__active-code"><iai:variable vid="Aktywny kod rabatowy"/>:
<span id="active-code">
<iaixsl:if test="/shop/rebatecode">
<iaixsl:value-of select="/shop/rebatecode/@code"></iaixsl:value-of>
</iaixsl:if>
</span>
</div>
<div class="rebate__active-options">
<button class="rebate__active_change"><iai:variable vid="Zmień"/></button>
<button class="rebate__active_remove"><iai:variable vid="Dezaktywuj"/></button>
</div>
</div>
<div class="rebate__options">
<iaixsl:if test="/shop/rebatecode">
<iaixsl:attribute name="style">display:none;</iaixsl:attribute>
</iaixsl:if>
<input type="checkbox" id="rebate_option" name="rebate_option"></input>
<label for="rebate_option"><iai:variable vid="Posiadasz kod rabatowy?"/></label>
</div>
<div class="rebate__code has-feedback">
<div class="rebate__code-container">
<input type="text" id="rebate_code" name="rebate_code" class="form-control">
<iaixsl:attribute name="placeholder"><iai:variable vid="Wpisz kod rabatowy"/></iaixsl:attribute>
</input>
<span class="form-control-feedback"></span>
<button class="rebate__code-realize"><iai:variable vid="Zrealizuj"/></button>
</div>
</div>
</div>
<div class="order2_terms_wrapper">
<!-- Okienko przy kliknięciu faktura drukowana -->
<div id="FBS_faktura">
<div id="e-invoice_dialog">
<span class="big_label"><iai:variable vid="Elektroniczne dostarczanie faktur"/></span>
<div>
<span class="e-invoice_dialog"><font><iai:variable vid="Chroń środowisko"/></font><iai:variable vid="i przyspiesz otrzymanie faktury"/></span>
<p> <iai:variable vid="W trosce o środowisko oraz Twoją wygodę dajemy Ci możliwość wyboru elektronicznej wysyłki faktur. Teraz szybko i bezpiecznie możesz otrzymywać faktury na swoją skrzynkę mailową. Elektroniczne dostarczanie faktur jest cyfrowym odpowiednikiem faktury papierowej. Zawiera dokładnie te same dane i ma taką samą wartość prawną jak tradycyjny dokument w formie papierowej. Korzystanie z faktury przekazanej w formie elektronicznej jest bezpłatne"/>.</p>
<button class="btn --solid --medium"><iai:variable vid="Tak, chcę otrzymać fakturę elektronicznie"/></button>
</div>
</div>
</div>
<!-- Regulamin -->
<div class="order2_terms_wrapper_sub">
<label class="order2_terms_conditions" for="order2_terms_conditions">
<input id="order2_terms_conditions" type="checkbox" name="order2_terms_conditions" value="yes"/>
<span><i class="icon-need"></i> <iai:variable vid="Akceptuję warunki"/>
<a target="_blank">
<iaixsl:attribute name="title"><iai:variable vid="Regulamin"/>
</iaixsl:attribute>
<iaixsl:attribute name="href">
<iaixsl:value-of select="/shop/action/terms/@url"/>
</iaixsl:attribute>
<iai:variable vid="regulaminu"/>
</a>
</span>
</label>
</div>
<iaixsl:if test="not($returns_agree_control)">
<div class="order2_terms_wrapper_sub">
<label class="order2_cancel" for="order2_cancel">
<input id="order2_cancel" type="checkbox" name="order2_cancel" value="yes"/>
<span><i class="icon-need"></i> <iai:variable vid="Zapoznałem się z moim"/>
<a target="_blank">
<iaixsl:attribute name="title"><iai:variable vid="Odstąpienie od umowy"/>
</iaixsl:attribute>
<iaixsl:attribute name="href">
<iaixsl:value-of select="/shop/action/order_cancel/@url"/>
</iaixsl:attribute>
<iai:variable vid="prawem do odstąpienia od umowy"/>
</a>
</span>
</label>
</div>
</iaixsl:if>
<iaixsl:if test="not(/shop/basket/@login)">
<div class="order2_terms_wrapper_sub newsletter email">
<label for="client_mailing">
<input id="client_mailing" type="checkbox" name="client_mailing" value="1">
<iaixsl:if test="/shop/page/client-data/contact_data/@mailing != '0'"><iaixsl:attribute name="checked">checked</iaixsl:attribute></iaixsl:if>
</input>
<span>
<iai:variable vid="Chcę otrzymywać E-mail Newsletter (możliwość późniejszej rezygnacji)"/>
</span>
</label>
</div>
<iaixsl:if test="/shop/page/client-data/contact_data/@send_sms">
<div class="order2_terms_wrapper_sub newsletter sms">
<label for="client_sms">
<input id="client_sms" type="checkbox" name="client_sms" value="1">
<iaixsl:if test="/shop/page/client-data/contact_data/@send_sms = 'y' or /shop/page/client-data/contact_data/@send_sms = 'd' or /shop/page/client-data/contact_data/@send_sms = '1'"><iaixsl:attribute name="checked"><![CDATA[checked]]></iaixsl:attribute></iaixsl:if>
</input>
<span>
<iai:variable vid="Chcę otrzymywać SMS Newsletter (możliwość późniejszej rezygnacji)"/>
</span>
</label>
</div>
</iaixsl:if>
</iaixsl:if>
<iaixsl:if test="page/order2/ordersproducts//product[@product_type = 'product_virtual']">
<div class="order2_terms_wrapper_sub virtual">
<label class="order2_virtual">
<input id="order2_virtual" type="checkbox" name="order2_virtual" value="yes"/>
<label for="order2_virtual"></label>
<span><iai:variable vid="Wyrażam zgodę i proszę zarazem o spełnienie świadczenia przed upływem terminu do odstąpienia od umowy. Jestem świadomy/a, że udzielając niniejszej zgody tracę moje prawo do odstąpienia od umowy wraz z momentem rozpoczęcia świadczenia"/>.</span>
</label>
</div>
</iaixsl:if>
<iaixsl:if test="page/order2/ordersproducts//product[@product_type = 'product_service']">
<div class="order2_terms_wrapper_sub service">
<label class="order2_service">
<input id="order2_service" type="checkbox" name="order2_service" value="yes"/>
<label for="order2_service"> </label>
<span><iai:variable vid="Wyrażam zgodę i proszę zarazem o rozpoczęcie świadczenia usługi przed upływem terminu do odstąpienia od umowy. Jestem świadomy/a, że w przypadku pełnego wykonania usługi tracę moje prawo do odstąpienia od umow"/>.</span>
</label>
</div>
</iaixsl:if>
<div class="order2_terms_wrapper_sub needed-text"><i class="icon-need"/> <iai:variable vid="Pola oznaczone gwiazdką są wymagane"/></div>
<label class="order2_terms_checkall" for="checkall-terms">
<input type="checkbox" id="checkall-terms"/>
<iai:variable vid="Zaznacz wszystkie"/>
</label>
</div>
<!--Przycisk złożenia zamówienia-->
<div class="order_button_wrapper">
<div class="btn-large order2_button_order">
<iaixsl:choose>
<iaixsl:when test="/shop/order_edit">
<iai:variable vid="Zmień zamówienie"/>
</iaixsl:when>
<iaixsl:otherwise>
<iai:variable vid="Zamawiam i płacę"/>
</iaixsl:otherwise>
</iaixsl:choose>
</div>
</div>
<div class="cop_button_txt"></div>
</div>
</div>
</div>
</div>
</div>
<cdata-end/></iai:componentsdata></iai:component>