first commit
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<?php use_helper('Validation', 'Object') ?>
|
||||
<?php $user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser'); ?>
|
||||
|
||||
<?php $smarty->assign('show_region', $show_region);?>
|
||||
<?php $smarty->assign('show_pesel', $show_pesel);?>
|
||||
<?php $smarty->assign('show_address_more', $show_address_more);?>
|
||||
|
||||
|
||||
<?php if ($userData->getIsBilling()==1): ?>
|
||||
<?php $smarty->assign('billing_data', $userData->getIsBilling()==1) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $smarty->assign('label_customer_type1', __('Klient indywidualny')) ?>
|
||||
<?php $smarty->assign('radio_customer_type1', radiobutton_tag('user_data[customer_type]', 1, $type1_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_customer_type2', __('Firma')) ?>
|
||||
<?php $smarty->assign('radio_customer_type2', radiobutton_tag('user_data[customer_type]', 2, $type2_checker)) ?>
|
||||
|
||||
|
||||
<?php
|
||||
if($user_config->get('validate_phone')==1){
|
||||
$smarty->assign('label_phone', label_for('phone',"* ".__('Telefon')));
|
||||
}else{
|
||||
$smarty->assign('label_phone', label_for('phone',__('Telefon')));
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($showMessage == true): ?>
|
||||
<?php $smarty->assign('show_message', $showMessage) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $user_config->get('validate_phone')==1 ? $phone_label = "* ".__('Telefon') : $phone_label = __('Telefon'); ?>
|
||||
|
||||
<!-- billing -->
|
||||
<?php $smarty->assign('input_company', input_tag('user_data[company]', $userData->getCompany(), array('id'=>'company', 'placeholder'=> '* '.__("Firma"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_nip', input_tag('user_data[vat_number]', $userData->getVatNumber(), array('id'=>'nip','placeholder'=> "* ".__($sf_user->hasVatEu() ? "Numer VAT UE" : "NIP"), 'maxlength'=>'255', 'class'=>'form-control'))) ?>
|
||||
<?php $smarty->assign('input_full_name', input_tag('user_data[full_name]', $userData->getFullName(), array('id'=>'full_name', 'placeholder'=> "* ".__('Imię i nazwisko'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address', input_tag('user_data[address]', $userData->getAddress(), array('id'=>'address', 'placeholder'=> '* '.__("Adres"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address_more', input_tag('user_data[address_more]', $userData->getAddressMore(), array('id'=>'address_more', 'placeholder'=>__("Adres ciąg dalszy"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_region', input_tag('user_data[region]', $userData->getRegion(), array('id'=>'region', 'placeholder'=>__("Województwo"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_code', input_tag('user_data[code]', $userData->getCode(), array('id'=>'code', 'placeholder'=> '* '.__("Kod"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_town', input_tag('user_data[town]', $userData->getTown(), array('id'=>'town', 'placeholder'=> '* '.__("Miasto"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_phone', input_tag('user_data[phone]', $userData->getPhone(), array('id'=>'phone', 'placeholder'=> $phone_label, 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_pesel', input_tag('user_data[pesel]', $userData->getPesel(), array('id'=>'billing-pesel', 'placeholder'=>__('PESEL'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('is_default', $userData->getIsDefault()) ?>
|
||||
<?php $smarty->assign('checkbox_set_as_default', checkbox_tag('user_data[isDefault]', 1, $userData->getIsDefault(), array('id'=>'st_form-user-default'))) ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('save_submit', submit_tag(__('Zapisz'),array('name'=>'submit_save'))) ?>
|
||||
<?php $smarty->assign('hidden_show_edit_profile_form', input_hidden_tag('showEditProfileForm', $showEditProfileForm)) ?>
|
||||
|
||||
<?php if ($userData->getIsBilling()==1): ?>
|
||||
<?php $smarty->assign('hidden_uderdata_type', input_hidden_tag('userDataType', "billing")) ?>
|
||||
<?php $smarty->assign('delete_url', '/stUserData/deleteProfile?userDataType=billing&userDataId='.$userData->getId()) ?>
|
||||
<?php else: ?>
|
||||
<?php $smarty->assign('hidden_uderdata_type', input_hidden_tag('userDataType', "delivery")) ?>
|
||||
<?php $smarty->assign('delete_url', '/stUserData/deleteProfile?userDataType=delivery&userDataId='.$userData->getId()) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php if ($userData->getIsBilling()!=1): ?>
|
||||
|
||||
<?php if ($userData->getAddress()==""): ?>
|
||||
|
||||
<?php $smarty->assign('select_country', st_get_component('stUserData', 'deliveryCountriesSelect', array('id'=>'user_data_country', 'class'=>'form-control', 'force_default_country_id' => $userData->getCountriesId()))) ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'class'=>'form-control', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'class'=>'form-control', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('hidden_user_data_id', input_hidden_tag('user_data[id]', $userData->getId())) ?>
|
||||
<?php $smarty->assign('hidden_user_data_is_billing', input_hidden_tag('user_data[isBilling]', $userData->getIsBilling())) ?>
|
||||
<?php $smarty->assign('hidden_userdata_id', input_hidden_tag('userDataId', $userData->getId())) ?>
|
||||
|
||||
<?php $smarty->display('userdata_ajax_edit_profile.html') ?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php use_helper('Object') ?>
|
||||
<?php use_javascript('stUser.js', 'last') ?>
|
||||
<div id="st_form-user_delivery-country">
|
||||
<?php echo select_tag('user_data_delivery[country]', options_for_select(_get_options_from_objects($delivery_countries), $default_delivery_country_id) ,array('id'=>'st_form-user_delivery-country-select', 'class'=>'form-control')) ?>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('st_form-user_delivery-country-select').observe('change', function()
|
||||
{
|
||||
var params = new Hash();
|
||||
|
||||
params.set('disable_user_form_update', true);
|
||||
|
||||
$('st_basket-delivery-form').scrollTo();
|
||||
|
||||
stDelivery.executeAjaxUpdate(this, '<?php echo url_for('stDeliveryFrontend/ajaxDeliveryCountryUpdate') ?>', params);
|
||||
|
||||
});
|
||||
|
||||
<?php if (isset($update_delivery_view)): ?>
|
||||
stUser.updateUserDeliveryView();
|
||||
<?php endif ?>
|
||||
</script>
|
||||
167
apps/frontend/modules/stUserData/templates/_editProfileForm.php
Normal file
167
apps/frontend/modules/stUserData/templates/_editProfileForm.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php use_helper('Validation', 'Object') ?>
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
<?php use_javascript('jquery.infieldlabel.js', 'last') ?>
|
||||
<?php $user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser'); ?>
|
||||
|
||||
<?php $smarty->assign('show_region', $show_region);?>
|
||||
<?php $smarty->assign('show_pesel', $show_pesel);?>
|
||||
<?php $smarty->assign('show_address_more', $show_address_more);?>
|
||||
|
||||
<?php $smarty->assign('form_start', form_tag('stUserData/saveProfile', array('class' => 'st_form_ver6', 'name'=>'register'))) ?>
|
||||
<?php $smarty->assign('error_message', form_error('user_data[message]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_company', form_error('user_data[company]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_full_name', form_error('user_data[full_name]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_address', form_error('user_data[address]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_address_more', form_error('user_data[address_more]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_region', form_error('user_data[region]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_code', form_error('user_data[code]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_town', form_error('user_data[town]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_phone', form_error('user_data[phone]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_vat', form_error('user_data[vat_number]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_company', $sf_request->getError('user_data{company}')); ?>
|
||||
<?php $smarty->assign('error_nip', $sf_request->getError('user_data{vat_number}')); ?>
|
||||
<?php $smarty->assign('error_full_name', $sf_request->getError('user_data{full_name}')); ?>
|
||||
<?php $smarty->assign('error_address', $sf_request->getError('user_data{address}')); ?>
|
||||
<?php $smarty->assign('error_region', $sf_request->getError('user_data{region}')); ?>
|
||||
<?php $smarty->assign('error_code_town', $sf_request->getError('user_data{code}').$sf_request->getError('user_data{town}')); ?>
|
||||
<?php $smarty->assign('error_code', $sf_request->getError('user_data{code}')); ?>
|
||||
<?php $smarty->assign('error_town', $sf_request->getError('user_data{town}')); ?>
|
||||
<?php $smarty->assign('error_phone', $sf_request->getError('user_data{phone}')); ?>
|
||||
|
||||
|
||||
<?php if ($userData->getIsBilling()==1): ?>
|
||||
<?php $smarty->assign('billing_data', $userData->getIsBilling()==1) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $smarty->assign('label_customer_type1', __('Klient indywidualny')) ?>
|
||||
<?php $smarty->assign('radio_customer_type1', radiobutton_tag('user_data[customer_type]', 1, $type1_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_customer_type2', __('Firma')) ?>
|
||||
<?php $smarty->assign('radio_customer_type2', radiobutton_tag('user_data[customer_type]', 2, $type2_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_company', label_for('company',"* ".__('Firma'))) ?>
|
||||
<?php $smarty->assign('input_company', input_tag('user_data[company]', $userData->getCompany(), array('id'=>'company', 'maxlength'=>'255', 'class'=>form_has_error('user_data{company}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_full_name', label_for('full_name',"* ".__('Imię i nazwisko'), array('id'=>'full_name_label'))) ?>
|
||||
<?php $smarty->assign('label_full_name_text', __('Imię i nazwisko')); ?>
|
||||
<?php $smarty->assign('input_full_name', input_tag('user_data[full_name]', $userData->getFullName(), array('id'=>'full_name', 'maxlength'=>'255', 'class'=>form_has_error('user_data{full_name}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_address', label_for('address',"* ".__('Ulica nr domu / nr lokalu'))) ?>
|
||||
<?php $smarty->assign('input_address', input_tag('user_data[address]', $userData->getAddress(), array('id'=>'address', 'maxlength'=>'255', 'class'=>form_has_error('user_data{address}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_address_more', label_for('address_more',__('Adres ciąg dalszy'))) ?>
|
||||
<?php $smarty->assign('input_address_more', input_tag('user_data[address_more]', $userData->getAddressMore(), array('id'=>'address_more', 'maxlength'=>'255', 'class'=>form_has_error('user_data{address_more}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_region', label_for('region',__('Województwo'))) ?>
|
||||
<?php $smarty->assign('input_region', input_tag('user_data[region]', $userData->getRegion(), array('id'=>'region', 'maxlength'=>'255'))) ?>
|
||||
|
||||
<?php $smarty->assign('label_pesel', label_for('pesel',__('PESEL'))) ?>
|
||||
<?php $smarty->assign('input_pesel', input_tag('user_data[pesel]', $userData->getPesel(), array('id'=>'pesel', 'maxlength'=>'255'))) ?>
|
||||
|
||||
<?php $smarty->assign('label_code', label_for('code',"* ".__('Kod'))) ?>
|
||||
<?php $smarty->assign('input_code', input_tag('user_data[code]', $userData->getCode(), array('id'=>'code', 'maxlength'=>'255', 'class'=>form_has_error('user_data{code}') ? 'st_form-error code' : 'code'))) ?>
|
||||
|
||||
<?php $smarty->assign('label_town', label_for('town',"* ".__('Miasto'))) ?>
|
||||
<?php $smarty->assign('input_town', input_tag('user_data[town]', $userData->getTown(), array('id'=>'town', 'maxlength'=>'255', 'class'=>form_has_error('user_data{town}') ? 'st_form-error town' : 'town'))) ?>
|
||||
|
||||
<?php $smarty->assign('label_country', label_for('st_form-userData-field6',__('Kraj'))) ?>
|
||||
|
||||
<?php if ($userData->getIsBilling()!=1): ?>
|
||||
|
||||
<?php if ($userData->getAddress()==""): ?>
|
||||
|
||||
<?php $smarty->assign('select_country', st_get_component('stUserData', 'deliveryCountriesSelect', array('id'=>'user_data_country','force_default_country_id' => $userData->getCountriesId()))) ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if($user_config->get('validate_phone')==1){
|
||||
$smarty->assign('label_phone', label_for('phone',"* ".__('Telefon')));
|
||||
}else{
|
||||
$smarty->assign('label_phone', label_for('phone',__('Telefon')));
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $smarty->assign('input_phone', input_tag('user_data[phone]', $userData->getPhone(), array('id'=>'phone', 'maxlength'=>'255', 'class'=>form_has_error('user_data{phone}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_nip', label_for('nip',"* ".__($sf_user->hasVatEu() ? 'VAT UE' : 'NIP'))) ?>
|
||||
<?php $smarty->assign('input_nip', input_tag('user_data[vat_number]', $userData->getVatNumber(), array('id'=>'nip', 'maxlength'=>'255', 'class'=>form_has_error('user_data{vat_number}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('hidden_is_default', input_hidden_tag('user_data[isDefault]', $userData->getIsDefault())) ?>
|
||||
|
||||
<?php if(stTheme::is_responsive()): ?>
|
||||
|
||||
<?php if ($userData->getIsBilling()==1): ?>
|
||||
<?php $smarty->assignComponent('edit_profiles', 'stUserData', 'profileList', array('type' => 'user_edit_profile_billing', 'selected' => $sf_request->getParameter('user_billing_profile'))); ?>
|
||||
<?php else: ?>
|
||||
<?php $smarty->assignComponent('edit_profiles', 'stUserData', 'profileList', array('type' => 'user_edit_profile_delivery', 'selected' => $sf_request->getParameter('user_delivery_profile'))); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($showMessage == true): ?>
|
||||
<?php $smarty->assign('show_message', $showMessage) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $user_config->get('validate_phone')==1 ? $phone_label = "* ".__('Telefon') : $phone_label = __('Telefon'); ?>
|
||||
|
||||
<!-- billing -->
|
||||
<?php $smarty->assign('input_company', input_tag('user_data[company]', $userData->getCompany(), array('id'=>'company', 'placeholder'=> '* '.__("Firma"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_nip', input_tag('user_data[vat_number]', $userData->getVatNumber(), array('id'=>'nip','placeholder'=> "* ".__($sf_user->hasVatEu() ? "Numer VAT UE" : "NIP"), 'maxlength'=>'255', 'class'=>'form-control'))) ?>
|
||||
<?php $smarty->assign('input_full_name', input_tag('user_data[full_name]', $userData->getFullName(), array('id'=>'full_name', 'placeholder'=> "* ".__('Imię i nazwisko'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address', input_tag('user_data[address]', $userData->getAddress(), array('id'=>'address', 'placeholder'=> '* '.__("Ulica nr domu / nr lokalu"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address_more', input_tag('user_data[address_more]', $userData->getAddressMore(), array('id'=>'address_more', 'placeholder'=>__("Adres ciąg dalszy"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_region', input_tag('user_data[region]', $userData->getRegion(), array('id'=>'region', 'placeholder'=>__("Województwo"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_code', input_tag('user_data[code]', $userData->getCode(), array('id'=>'code', 'placeholder'=> '* '.__("Kod"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_town', input_tag('user_data[town]', $userData->getTown(), array('id'=>'town', 'placeholder'=> '* '.__("Miasto"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_phone', input_tag('user_data[phone]', $userData->getPhone(), array('id'=>'phone', 'placeholder'=> $phone_label, 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_pesel', input_tag('user_data[pesel]', $userData->getPesel(), array('id'=>'billing-pesel', 'placeholder'=>__('PESEL'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
|
||||
<?php $smarty->assign('show_add', $userData->getAddress()); ?>
|
||||
|
||||
|
||||
<?php if ($userData->getIsBilling()!=1): ?>
|
||||
|
||||
<?php if ($userData->getAddress()==""): ?>
|
||||
|
||||
<?php $smarty->assign('select_country', st_get_component('stUserData', 'deliveryCountriesSelect', array('id'=>'user_data_country','force_default_country_id' => $userData->getCountriesId()))) ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'class' => 'form-control', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userData->getCountriesId(), 'getId', array('id'=>'user_data_country', 'class' => 'form-control', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data[country]'))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php $smarty->assign('is_default', $userData->getIsDefault()) ?>
|
||||
<?php $smarty->assign('checkbox_set_as_default', checkbox_tag('user_data[isDefault]', 1, $userData->getIsDefault(), array('id'=>'st_form-user-default'))) ?>
|
||||
|
||||
<?php $smarty->assign('delete_url', 'stUserData/deleteProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId()) ?>
|
||||
|
||||
<?php $smarty->assign('save_submit', submit_tag(__('Zapisz'),array('name'=>'submit_save'))) ?>
|
||||
<?php $smarty->assign('hidden_show_edit_profile_form', input_hidden_tag('showEditProfileForm', $showEditProfileForm)) ?>
|
||||
<?php $smarty->assign('hidden_uderdata_type', input_hidden_tag('userDataType', $userDataType)) ?>
|
||||
<?php $smarty->assign('hidden_user_data_id', input_hidden_tag('user_data[id]', $userData->getId())) ?>
|
||||
<?php $smarty->assign('hidden_user_data_is_billing', input_hidden_tag('user_data[isBilling]', $userData->getIsBilling())) ?>
|
||||
<?php $smarty->assign('hidden_userdata_id', input_hidden_tag('userDataId', $userData->getId())) ?>
|
||||
|
||||
<?php $smarty->display('userdata_edit_profile_form.html') ?>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
|
||||
<?php
|
||||
if($userDatas){
|
||||
$results=array();
|
||||
}
|
||||
|
||||
?>
|
||||
<?php foreach ($userDatas as $userData):?>
|
||||
|
||||
<?php if($userData->getAddress()!=""): ?>
|
||||
|
||||
|
||||
<?php $row['style']=$style='' ?>
|
||||
|
||||
<?php $row['default']=$userData->getIsDefault() ?>
|
||||
|
||||
<?php if($userData->getIsDefault()==1): ?>
|
||||
<?php $row['is_default']="true"; ?>
|
||||
<?php else: ?>
|
||||
<?php $row['is_default']="false"; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($userDataId==$userData->getId()): ?>
|
||||
<?php $row['style']=$style='default' ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(!stTheme::is_responsive()): ?>
|
||||
<?php if($userData->getIsDefault()==1): ?>
|
||||
<?php $row['remove_tooltip']=__('Domyślne dane nie mogą być usunięte'); ?>
|
||||
<?php $row['remove_image']=""; ?>
|
||||
<?php else: ?>
|
||||
<?php $row['remove_tooltip']=__('Usuń dane') ?>
|
||||
<?php $row['remove_image']=link_to(image_tag('/images/frontend/theme/default2/delete_user.png', array('title' => __('Usuń dane'))), 'stUserData/deleteProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId()) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $row['edit_tooltip']=__('Edytuj dane'); ?>
|
||||
<?php $row['edit_image']=link_to(image_tag('/images/frontend/theme/default/icon_edit.png'), 'stUserData/editProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId().'&showEditProfileForm=true') ?>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if($userData->getIsDefault()==1): ?>
|
||||
<?php $row['remove_url']=""; ?>
|
||||
<?php else: ?>
|
||||
<?php $row['remove_url']= '/stUserData/deleteProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $row['edit_url']='/stUserData/editProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId().'&showEditProfileForm=true'; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $row['full_name']=$userData->getFullName() ?>
|
||||
<?php $row['address']=$userData->getAddress() ?>
|
||||
<?php $row['address_more']=$userData->getAddressMore() ?>
|
||||
<?php $row['region']=$userData->getRegion() ?>
|
||||
<?php $row['pesel']=$userData->getPesel() ?>
|
||||
<?php $row['code']=$userData->getCode() ?>
|
||||
<?php $row['town']=$userData->getTown() ?>
|
||||
|
||||
|
||||
<?php if($userData->getStreet()!="" || $userData->getHouse()!="" || $userData->getCode()!="" || $userData->getTown()!=""): ?>
|
||||
<?php $row['make_it_deafult_data']='stUserData/editProfile?userDataType='.$userDataType.'&userDataId='.$userData->getId(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php $row['has_vat']=$userData->getIsBilling() ?>
|
||||
|
||||
<?php $row['company']=$userData->getCompany() ?>
|
||||
|
||||
<?php $row['vat']=$userData->getVatNumber() ?>
|
||||
|
||||
<?php $row['flat']=$userData->getFlat() ?>
|
||||
|
||||
<?php $row['country']=$userData->getCountries() ?>
|
||||
|
||||
<?php $row['phone_image']=image_tag('/images/frontend/theme/default/icon_phone.png') ?>
|
||||
|
||||
<?php $row['phone']=$userData->getPhone() ?>
|
||||
|
||||
<?php $results[]=$row;?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php $smarty->assign('results',$results); ?>
|
||||
<?php $smarty->assign('user_data_type', $userDataType) ?>
|
||||
<?php $smarty->display('userdata_edit_profile_list.html') ?>
|
||||
295
apps/frontend/modules/stUserData/templates/_orderForm.php
Normal file
295
apps/frontend/modules/stUserData/templates/_orderForm.php
Normal file
@@ -0,0 +1,295 @@
|
||||
<?php
|
||||
use_helper('Validation', 'Object', 'stCaptchaGD', 'stUrl', 'stUserPassValidation', 'stDelivery');
|
||||
st_theme_use_stylesheet('stUser.css');
|
||||
use_javascript('stUser.js', 'last');
|
||||
use_javascript('jquery.infieldlabel.js', 'last');
|
||||
$user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser');
|
||||
|
||||
$smarty->assign('error_billing_company', form_error('user_data_billing[company]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_vat', form_error('user_data_billing[vat_number]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_full_name', form_error('user_data_billing[full_name]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_address', form_error('user_data_billing[address]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_region', form_error('user_data_billing[region]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_code', form_error('user_data_billing[code]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_town', form_error('user_data_billing[town]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_phone', form_error('user_data_billing[phone]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_email', form_error('user_data_billing[email]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_email_exist', form_error('user_data_billing[email_exist]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_password1', form_error('user_data_billing[password1]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_password2', form_error('user_data_billing[password2]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_billing_password_parse', form_error('user_data_billing[password_parse]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
|
||||
$smarty->assign('error_billing_password1', $sf_request->getError('user_data_billing{password1}'));
|
||||
$smarty->assign('error_billing_password2', $sf_request->getError('user_data_billing{password2}'));
|
||||
|
||||
$smarty->assign('error_billing_privacy', $sf_request->getError('error_privacy'));
|
||||
$smarty->assign('error_billing_terms', $sf_request->getError('error_terms'));
|
||||
|
||||
$smarty->assign('error_billing_company', $sf_request->getError('user_data_billing{company}'));
|
||||
$smarty->assign('error_billing_vat', $sf_request->getError('user_data_billing{vat_number}'));
|
||||
$smarty->assign('error_billing_full_name', $sf_request->getError('user_data_billing{full_name}'));
|
||||
$smarty->assign('error_billing_address', $sf_request->getError('user_data_billing{address}'));
|
||||
$smarty->assign('error_billing_region', $sf_request->getError('user_data_billing{region}'));
|
||||
$smarty->assign('error_billing_code_town', $sf_request->getError('user_data_billing{code}') . $sf_request->getError('user_data_billing{town}'));
|
||||
$smarty->assign('error_billing_code', $sf_request->getError('user_data_billing{code}'));
|
||||
$smarty->assign('error_billing_town', $sf_request->getError('user_data_billing{town}'));
|
||||
|
||||
$smarty->assign('error_billing_phone', $sf_request->getError('user_data_billing{phone}'));
|
||||
$smarty->assign('error_billing_email', $sf_request->getError('user_data_billing{email}') . $sf_request->getError('user_data_billing{email_exist}'));
|
||||
$smarty->assign('error_billing_country', $sf_request->getError('user_data_billing{country}'));
|
||||
|
||||
$smarty->assign('error_delivery_company', form_error('user_data_delivery[company]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_vat', form_error('user_data_delivery[vat_number]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_full_name', form_error('user_data_delivery[full_name]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_address', form_error('user_data_delivery[address]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_region', form_error('user_data_delivery[region]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_code', form_error('user_data_delivery[code]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_town', form_error('user_data_delivery[town]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
$smarty->assign('error_delivery_phone', form_error('user_data_delivery[phone]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error error_label')));
|
||||
|
||||
$smarty->assign('error_delivery_company', $sf_request->getError('user_data_delivery{company}'));
|
||||
$smarty->assign('error_delivery_full_name', $sf_request->getError('user_data_delivery{full_name}'));
|
||||
$smarty->assign('error_delivery_address', $sf_request->getError('user_data_delivery{address}'));
|
||||
$smarty->assign('error_delivery_region', $sf_request->getError('user_data_delivery{region}'));
|
||||
$smarty->assign('error_delivery_code_town', $sf_request->getError('user_data_delivery{code}') . $sf_request->getError('user_data_delivery{town}'));
|
||||
$smarty->assign('error_delivery_code', $sf_request->getError('user_data_delivery{code}'));
|
||||
$smarty->assign('error_delivery_town', $sf_request->getError('user_data_delivery{town}'));
|
||||
$smarty->assign('error_delivery_phone', $sf_request->getError('user_data_delivery{phone}'));
|
||||
$smarty->assign('error_delivery_country', $sf_request->getError('user_data_delivery{country}'));
|
||||
|
||||
if ($sf_request->getErrors() && $user_basket_form_error) {
|
||||
$smarty->assign('errors', __('Uzupełnij zaznaczone pola.'));
|
||||
}
|
||||
|
||||
$smarty->assign('show_region', $show_region);
|
||||
$smarty->assign('show_address_more', $show_address_more);
|
||||
$smarty->assign('show_pesel', $show_pesel);
|
||||
|
||||
$smarty->assign('label_billing_customer_type1', __('Klient indywidualny'));
|
||||
$smarty->assign('radio_billing_customer_type1', radiobutton_tag('user_data_billing[customer_type]', 1, $user_data_billing['customer_type'] == 1, array('disabled' => $sf_user->hasVatEu())));
|
||||
|
||||
$smarty->assign('label_billing_customer_type2', __('Firma'));
|
||||
$smarty->assign('radio_billing_customer_type2', radiobutton_tag('user_data_billing[customer_type]', 2, $user_data_billing['customer_type'] == 2));
|
||||
|
||||
$smarty->assign('label_billing_company', label_for('company_billing', "* " . __('Firma')));
|
||||
$smarty->assign('input_billing_company', input_tag('user_data_billing[company]', $user_data_billing['company'], array('id' => 'company_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{company}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_nip', label_for('nip_billing', "* " . __($sf_user->hasVatEu() ? 'Numer VAT UE' : 'NIP')));
|
||||
$smarty->assign('input_billing_nip', input_tag('user_data_billing[vat_number]', $user_data_billing['vat_number'], array('id' => 'nip_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{vat_number}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_email', label_for('email_billing', "* " . __('E-mail')));
|
||||
$smarty->assign('input_billing_email', input_tag('user_data_billing[email]', $user_data_billing['email'], array('id' => 'email_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{email}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('checkbox_create_account', checkbox_tag('user_data_billing[create_account]', 1, $user_data_billing['create_account'], array('id' => 'create_account', 'class' => 'checkobox')));
|
||||
|
||||
$smarty->assign('label_billing_password1', label_for('password1_billing', "* " . __('Hasło'), array('id' => 'label-password1')));
|
||||
$smarty->assign('input_billing_password1', input_password_tag('user_data_billing[password1]', $user_data_billing['password1'], array('id' => 'password1_billing', 'maxlength' => '255', 'autocomplete' => 'off', 'class' => form_has_error('user_data_billing{password1}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_password2', label_for('password2_billing', "* " . __('Powtórz hasło'), array('id' => 'label-password2')));
|
||||
$smarty->assign('input_billing_password2', input_password_tag('user_data_billing[password2]', $user_data_billing['password2'], array('id' => 'password2_billing', 'maxlength' => '255', 'autocomplete' => 'off', 'class' => form_has_error('user_data_billing{password2}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_full_name', label_for('full_name_billing', "* " . __('Imię i nazwisko'), array('id' => 'full_name_billing_label')));
|
||||
$smarty->assign('label_billing_full_name_text', __('Imię i nazwisko'));
|
||||
$smarty->assign('input_billing_full_name', input_tag('user_data_billing[full_name]', $user_data_billing['full_name'], array('id' => 'full_name_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{full_name}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_address', label_for('address_billing', "* " . __('Ulica nr domu / nr lokalu')));
|
||||
$smarty->assign('input_billing_address', input_tag('user_data_billing[address]', $user_data_billing['address'], array('id' => 'address_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{address}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_address_more', label_for('address_more_billing', __('Adres ciąg dalszy')));
|
||||
$smarty->assign('input_billing_address_more', input_tag('user_data_billing[address_more]', $user_data_billing['address_more'], array('id' => 'address_more_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{address_more}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_region', label_for('region_billing', __('Województwo')));
|
||||
$smarty->assign('input_billing_region', input_tag('user_data_billing[region]', $user_data_billing['region'], array('id' => 'region_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{region}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_code', label_for('code_billing', "* " . __('Kod')));
|
||||
$smarty->assign('input_billing_code', input_tag('user_data_billing[code]', $user_data_billing['code'], array('id' => 'code_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{code}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_town', label_for('town_billing', "* " . __('Miasto')));
|
||||
$smarty->assign('input_billing_town', input_tag('user_data_billing[town]', $user_data_billing['town'], array('id' => 'town_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{town}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_country', label_for('country_billing', __('Kraj')));
|
||||
$smarty->assign('select_billing_country', countries_select_tag('user_data_billing[country]', isset($user_data_billing['country']) ? $user_data_billing['country'] : $delivery_country_id));
|
||||
|
||||
|
||||
if ($user_config->get('validate_phone') == 1) {
|
||||
$smarty->assign('label_billing_phone', label_for('phone_billing', "* " . __('Telefon')));
|
||||
} else {
|
||||
$smarty->assign('label_billing_phone', label_for('phone_billing', __('Telefon')));
|
||||
}
|
||||
|
||||
$smarty->assign('input_billing_phone', input_tag('user_data_billing[phone]', $user_data_billing['phone'], array('id' => 'phone_billing', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{phone}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_pesel', label_for('billing-pesel', __('PESEL')));
|
||||
$smarty->assign('input_billing_pesel', input_tag('user_data_billing[pesel]', $user_data_billing['pesel'], array('id' => 'billing-pesel', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{pesel}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('checkbox_different_delivery', checkbox_tag('user_data_billing[different_delivery]', 1, $user_data_billing['different_delivery'], array('id' => 'different_delivery', 'class' => 'checkobox')));
|
||||
|
||||
|
||||
$smarty->assign('label_delivery_customer_type1', __('Klient indywidualny'));
|
||||
$smarty->assign('label_delivery_customer_type1', __('Klient indywidualny'));
|
||||
$smarty->assign('radio_delivery_customer_type1', radiobutton_tag('user_data_delivery[customer_type]', 1, $user_data_delivery['customer_type'] == 1));
|
||||
|
||||
$smarty->assign('label_delivery_customer_type2', __('Firma'));
|
||||
$smarty->assign('radio_delivery_customer_type2', radiobutton_tag('user_data_delivery[customer_type]', 2, $user_data_delivery['customer_type'] == 2));
|
||||
|
||||
$smarty->assign('label_delivery_company', label_for('company_delivery', "* " . __('Firma')));
|
||||
$smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $user_data_delivery['company'], array('id' => 'company_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{company}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_full_name', label_for('full_name_delivery', "* " . __('Imię i nazwisko'), array('id' => 'full_name_delivery_label')));
|
||||
$smarty->assign('label_delivery_full_name_text', __('Imię i nazwisko'));
|
||||
$smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $user_data_delivery['full_name'], array('id' => 'full_name_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{full_name}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_address', label_for('address_delivery', "* " . __('Ulica nr domu / nr lokalu')));
|
||||
$smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $user_data_delivery['address'], array('id' => 'address_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{address}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_address_more', label_for('address_more_delivery', __('Adres ciąg dalszy')));
|
||||
$smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $user_data_delivery['address_more'], array('id' => 'address_more_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{address_more}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_region', label_for('region_delivery', __('Województwo')));
|
||||
$smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $user_data_delivery['region'], array('id' => 'region_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{region}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_code', label_for('code_delivery', "* " . __('Kod')));
|
||||
$smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $user_data_delivery['code'], array('id' => 'code_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{code}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_town', label_for('town_delivery', "* " . __('Miasto')));
|
||||
$smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $user_data_delivery['town'], array('id' => 'town_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{town}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_delivery_country', label_for('country_delivery', __('Kraj')));
|
||||
$smarty->assign('select_delivery_country', delivery_countries_select_tag('user_data_delivery[country]', $delivery_country_id));
|
||||
|
||||
if ($user_config->get('validate_phone') == 1) {
|
||||
$smarty->assign('label_delivery_phone', label_for('phone_delivery', "* " . __('Telefon')));
|
||||
} else {
|
||||
$smarty->assign('label_delivery_phone', label_for('phone_delivery', __('Telefon')));
|
||||
}
|
||||
|
||||
$smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $user_data_delivery['phone'], array('id' => 'phone_delivery', 'maxlength' => '255', 'class' => form_has_error('user_data_delivery{phone}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('checkbox_privacy', checkbox_tag('user_data_billing[privacy]', 1, $user_data_billing['privacy'], array('id' => 'user_data_billing_privacy', 'class' => 'checkobox')));
|
||||
|
||||
$smarty->assign('checkbox_terms', checkbox_tag('user_data_billing[terms]', 1, $user_data_billing['terms'], array('id' => 'user_data_billing_terms', 'class' => 'checkobox')));
|
||||
|
||||
if (stConfig::getInstance('stOrder')->get('show_not_professional_purchase'))
|
||||
{
|
||||
$smarty->assign('not_professional_purchase_checkbox', checkbox_tag('user_data_billing[not_professional_purchase]', 1, $user_data_billing['not_professional_purchase']));
|
||||
}
|
||||
|
||||
$smarty->assignPartial('link_to_privacy', 'stUser', 'privacy');
|
||||
|
||||
$compatibility_config = stConfig::getInstance('stCompatibilityBackend');
|
||||
|
||||
$terms_shop_text = $compatibility_config->get('terms_shop_text', null, true);
|
||||
|
||||
$terms_text = $terms_shop_text;
|
||||
|
||||
$terms_text = preg_replace('/{LINK_TO_PRIVACY}/', '$', $terms_text);
|
||||
$terms_text = preg_replace('/{\/LINK_TO_PRIVACY}/', '$', $terms_text);
|
||||
$terms_text = preg_replace('/{LINK_TO_TERMS}/', '%', $terms_text);
|
||||
$terms_text = preg_replace('/{\/LINK_TO_TERMS}/', '%', $terms_text);
|
||||
|
||||
$tmp_string_terms_privacy = explode("$", $terms_text);
|
||||
$tmp_string_terms_shop = explode("%", $terms_text);
|
||||
|
||||
$terms_privacy = $tmp_string_terms_privacy[1];
|
||||
$terms_shop = $tmp_string_terms_shop[1];
|
||||
$terms_text = $terms_shop_text;
|
||||
|
||||
$terms_text = preg_replace('/{LINK_TO_PRIVACY}/', '%', $terms_text);
|
||||
$terms_text = preg_replace('/{\/LINK_TO_PRIVACY}/', '%', $terms_text);
|
||||
$terms_text = preg_replace('/{LINK_TO_TERMS}/', '%', $terms_text);
|
||||
$terms_text = preg_replace('/{\/LINK_TO_TERMS}/', '%', $terms_text);
|
||||
|
||||
$tmp_string = explode("%", $terms_text);
|
||||
|
||||
$string = '';
|
||||
|
||||
foreach ($tmp_string as $value) {
|
||||
if ($value == $terms_privacy) {
|
||||
$string .= st_get_component('stWebpageFrontend', 'linkterms', array('state' => 'PRIVACY', 'label' => $terms_privacy));
|
||||
} elseif ($value == $terms_shop) {
|
||||
$string .= st_get_component('stWebpageFrontend', 'linkterms', array('state' => 'TERMS', 'label' => $terms_shop));
|
||||
} else {
|
||||
$string .= $value;
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign("terms_shop_text", $string);
|
||||
|
||||
if ($config->get('captcha_on', stConfig::INT) == 1 && sfContext::getInstance()->getUser()->getAttribute('captcha_off') != 1) {
|
||||
|
||||
$smarty->assign('captcha_mod', $config->get('captcha_mod'));
|
||||
|
||||
$smarty->assign('captcha_on', $config->get('captcha_on', stConfig::INT) == 1);
|
||||
|
||||
$smarty->assign('error_captcha', form_error('captcha', array('suffix' => '', 'prefix' => '', 'class' => 'st_error red')));
|
||||
|
||||
$smarty->assign('error_captcha', $sf_request->getError('captcha'));
|
||||
|
||||
$smarty->assign('get_captcha', get_captcha('270'));
|
||||
|
||||
$smarty->assign('label_captcha', label_for('captcha_img', "* " . __('Cyfry z obrazka')));
|
||||
|
||||
$smarty->assign('input_captcha', input_tag('captcha', '', array('id' => 'captcha_img', 'class' => form_has_error('captcha') ? 'st_form-error' : '')));
|
||||
|
||||
if($config->get('captcha_mod')=="recaptcha3")
|
||||
{
|
||||
$smarty->assign('re_captcha_key', $config->get('recaptcha_key'));
|
||||
$smarty->assign('re_captcha_badge_position', $config->get('recaptcha_badge_position'));
|
||||
$smarty->assign('re_captcha_badge_margin', $config->get('recaptcha_badge_margin'));
|
||||
|
||||
$smarty->assign('badscore', sfContext::getInstance()->getUser()->getAttribute('badscore'));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign('label_description', label_for('order_description', __('Uwagi do zamówienia')));
|
||||
|
||||
$smarty->assign('description', input_hidden_tag('user_data_billing[description]', $user_data_billing['description'], array('id' => 'order_description')));
|
||||
|
||||
if (stTheme::is_responsive()) {
|
||||
|
||||
$user_config->get('validate_phone') == 1 ? $phone_label = "* " . __('Telefon') : $phone_label = __('Telefon');
|
||||
|
||||
$smarty->assign('input_billing_email', input_tag('user_data_billing[email]', $user_data_billing['email'], array('id' => 'email_billing', 'placeholder' => '* ' . __("E-mail"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_password1', input_password_tag('user_data_billing[password1]', $user_data_billing['password1'], array('id' => 'password1_billing', 'maxlength' => '255', 'placeholder' => '* ' . __("Hasło"), 'autocomplete' => 'off', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_password2', input_password_tag('user_data_billing[password2]', $user_data_billing['password2'], array('id' => 'password2_billing', 'maxlength' => '255', 'placeholder' => '* ' . __("Powtórz hasło"), 'autocomplete' => 'off', 'class' => 'form-control')));
|
||||
$smarty->assign('input_captcha', input_tag('captcha', '', array('id' => 'captcha_img', 'placeholder' => '* ' . __("Cyfry z obrazka"), 'class' => 'form-control')));
|
||||
|
||||
$smarty->assign('input_billing_company', input_tag('user_data_billing[company]', $user_data_billing['company'], array('id' => 'company_billing', 'placeholder' => '* ' . __("Firma"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_nip', input_tag('user_data_billing[vat_number]', $user_data_billing['vat_number'], array('id' => 'nip_billing', 'placeholder' => "* " . __($sf_user->hasVatEu() ? "Numer VAT UE" : "NIP"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_full_name', input_tag('user_data_billing[full_name]', $user_data_billing['full_name'], array('id' => 'full_name_billing', 'placeholder' => "* " . __('Imię i nazwisko'), 'maxlength' => '255', 'class' => $user_config->get('require_billing_fullname') ? 'form-control required' : 'form-control')));
|
||||
$smarty->assign('input_billing_address', input_tag('user_data_billing[address]', $user_data_billing['address'], array('id' => 'address_billing', 'placeholder' => '* ' . __("Ulica nr domu / nr lokalu"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_address_more', input_tag('user_data_billing[address_more]', $user_data_billing['address_more'], array('id' => 'address_more_billing', 'placeholder' => __("Adres ciąg dalszy"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_region', input_tag('user_data_billing[region]', $user_data_billing['region'], array('id' => 'region_billing', 'placeholder' => __("Województwo"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_code', input_tag('user_data_billing[code]', $user_data_billing['code'], array('id' => 'code_billing', 'placeholder' => '* ' . __("Kod"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_town', input_tag('user_data_billing[town]', $user_data_billing['town'], array('id' => 'town_billing', 'placeholder' => '* ' . __("Miasto"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('select_billing_country', countries_select_tag('user_data_billing[country]', isset($user_data_billing['country']) ? $user_data_billing['country'] : $delivery_country_id));
|
||||
$smarty->assign('input_billing_phone', input_tag('user_data_billing[phone]', $user_data_billing['phone'], array('id' => 'phone_billing', 'placeholder' => $phone_label, 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_pesel', input_tag('user_data_billing[pesel]', $user_data_billing['pesel'], array('id' => 'billing-pesel', 'placeholder' => __('PESEL'), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
|
||||
$smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $user_data_delivery['company'], array('id' => 'company_delivery', 'placeholder' => '* ' . __("Firma"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $user_data_delivery['full_name'], array('id' => 'full_name_delivery', 'placeholder' => "* " . __('Imię i nazwisko'), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $user_data_delivery['address'], array('id' => 'address_delivery', 'placeholder' => '* ' . __("Ulica nr domu / nr lokalu"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $user_data_delivery['address_more'], array('id' => 'address_more_delivery', 'placeholder' => __("Adres ciąg dalszy"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $user_data_delivery['region'], array('id' => 'region_delivery', 'placeholder' => __("Województwo"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $user_data_delivery['code'], array('id' => 'code_delivery', 'placeholder' => '* ' . __("Kod"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $user_data_delivery['town'], array('id' => 'town_delivery', 'placeholder' => '* ' . __("Miasto"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $user_data_delivery['phone'], array('id' => 'phone_delivery', 'placeholder' => $phone_label, 'maxlength' => '255', 'class' => 'form-control')));
|
||||
}
|
||||
|
||||
$smarty->assign('under_basket_socket', stSocketView::openComponents('under_basket_socket') . stSocketView::openPartials('under_basket_socket'));
|
||||
|
||||
$delivery = stDeliveryFrontend::getInstance($sf_context->getUser()->getBasket());
|
||||
|
||||
$defaultDelivery = $delivery->getDefaultDelivery();
|
||||
|
||||
$hidden_fields = [
|
||||
'payment_channel' => $sf_request->getParameter('payment_channel') ? htmlspecialchars($sf_request->getParameter('payment_channel')) : null,
|
||||
'payment_id' => $defaultDelivery ? $defaultDelivery->getDefaultPayment()->getId() : null,
|
||||
'delivery_id' => $defaultDelivery ? $defaultDelivery->getId() : null,
|
||||
'delivery_country_id' => $delivery->getDefaultDeliveryCountry() ? $delivery->getDefaultDeliveryCountry()->getId() : null,
|
||||
];
|
||||
|
||||
$smarty->assign('hidden_fields', $hidden_fields);
|
||||
|
||||
$smarty->display('userdata_order_form.html');
|
||||
123
apps/frontend/modules/stUserData/templates/_orderFormBilling.php
Normal file
123
apps/frontend/modules/stUserData/templates/_orderFormBilling.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
use_helper('Validation', 'Object');
|
||||
st_theme_use_stylesheet('stUser.css');
|
||||
use_javascript('jquery.infieldlabel.js', 'last');
|
||||
$user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser');
|
||||
|
||||
$smarty->assign('show_region', $show_region);
|
||||
$smarty->assign('show_pesel', $show_pesel);
|
||||
$smarty->assign('show_address_more', $show_address_more);
|
||||
|
||||
$smarty->assign('error_billing_message', form_error('user_data_billing[message]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_full_name', form_error('user_data_billing[full_name]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_address', form_error('user_data_billing[address]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_code', form_error('user_data_billing[code]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_town', form_error('user_data_billing[town]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_phone', form_error('user_data_billing[phone]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
$smarty->assign('error_billing_vat', form_error('user_data_billing[vat_number]', array('suffix' => '', 'prefix' => '', 'class' => 'st_error')));
|
||||
|
||||
$smarty->assign('error_billing_company', $sf_request->getError('user_data_billing{company}'));
|
||||
$smarty->assign('error_billing_full_name', $sf_request->getError('user_data_billing{full_name}'));
|
||||
$smarty->assign('error_billing_address', $sf_request->getError('user_data_billing{address}'));
|
||||
$smarty->assign('error_billing_region', $sf_request->getError('user_data_billing{region}'));
|
||||
$smarty->assign('error_billing_code_town', $sf_request->getError('user_data_billing{code}') . $sf_request->getError('user_data_billing{town}'));
|
||||
$smarty->assign('error_billing_code', $sf_request->getError('user_data_billing{code}'));
|
||||
$smarty->assign('error_billing_town', $sf_request->getError('user_data_billing{town}'));
|
||||
$smarty->assign('error_billing_phone', $sf_request->getError('user_data_billing{phone}'));
|
||||
$smarty->assign('error_billing_vat', $sf_request->getError('user_data_billing{vat_number}'));
|
||||
$smarty->assign('error_billing_country', $sf_request->getError('user_data_billing{country}'));
|
||||
|
||||
$smarty->assign('label_billing_customer_type1', __('Klient indywidualny'));
|
||||
$smarty->assign('radio_billing_customer_type1', radiobutton_tag('user_data_billing[customer_type]', 1, $user_data_billing['customer_type'] == 1, array('disabled' => $sf_user->hasVatEu())));
|
||||
|
||||
$smarty->assign('label_billing_customer_type2', __('Firma'));
|
||||
$smarty->assign('radio_billing_customer_type2', radiobutton_tag('user_data_billing[customer_type]', 2, $user_data_billing['customer_type'] == 2));
|
||||
|
||||
$smarty->assign('label_billing_company', label_for('billing-company', "* " . __('Firma')));
|
||||
$smarty->assign('input_billing_company', input_tag('user_data_billing[company]', $user_data_billing['company'], array('id' => 'billing-company', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{company}') ? 'st_form-error billing-company' : 'billing-company')));
|
||||
|
||||
$smarty->assign('label_billing_full_name', label_for('billing-full_name', "* " . __('Imię i nazwisko'), array('id' => 'full_name_billing_label', 'class' => $user_config->get('require_billing_fullname') ? 'required' : '')));
|
||||
$smarty->assign('label_billing_full_name_text', __('Imię i nazwisko'));
|
||||
$smarty->assign('input_billing_full_name', input_tag('user_data_billing[full_name]', $user_data_billing['full_name'], array('id' => 'billing-full_name', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{full_name}') ? 'st_form-error billing-full-name' : 'billing-full-name')));
|
||||
|
||||
$smarty->assign('label_billing_address', label_for('billing-address', "* " . __('Ulica nr domu / nr lokalu')));
|
||||
$smarty->assign('input_billing_address', input_tag('user_data_billing[address]', $user_data_billing['address'], array('id' => 'billing-address', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{address}') ? 'st_form-error billing-address' : 'billing-address')));
|
||||
|
||||
$smarty->assign('label_billing_address_more', label_for('billing-address_more', __('Adres ciąg dalszy')));
|
||||
$smarty->assign('input_billing_address_more', input_tag('user_data_billing[address_more]', $user_data_billing['address_more'], array('id' => 'billing-address_more', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{address_more}') ? 'st_form-error billing-address-more' : 'billing-address-more')));
|
||||
|
||||
$smarty->assign('label_billing_region', label_for('billing-region', __('Województwo')));
|
||||
$smarty->assign('input_billing_region', input_tag('user_data_billing[region]', $user_data_billing['region'], array('id' => 'billing-region', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{region}') ? 'st_form-error billing-region' : 'billing-region')));
|
||||
|
||||
$smarty->assign('label_billing_code', label_for('billing-code', "* " . __('Kod')));
|
||||
$smarty->assign('input_billing_code', input_tag('user_data_billing[code]', $user_data_billing['code'], array('id' => 'billing-code', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{code}') ? 'st_form-error billing-code' : 'billing-code')));
|
||||
|
||||
$smarty->assign('label_billing_town', label_for('billing-town', "* " . __('Miasto')));
|
||||
$smarty->assign('input_billing_town', input_tag('user_data_billing[town]', $user_data_billing['town'], array('id' => 'billing-town', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{town}') ? 'st_form-error billing-town' : 'billing-town')));
|
||||
|
||||
$smarty->assign('label_billing_country', label_for('billing-country', __('Kraj')));
|
||||
$smarty->assign('select_billing_country', object_select_tag($userDataBilling->getCountriesId(), 'getId', array('id' => 'billing-country', 'related_class' => 'Countries', 'control_name' => 'user_data_billing[country]')));
|
||||
|
||||
if (stConfig::getInstance('stOrder')->get('show_not_professional_purchase'))
|
||||
{
|
||||
$smarty->assign('not_professional_purchase_checkbox', checkbox_tag('user_data_billing[not_professional_purchase]', 1, $user_data_billing['not_professional_purchase']));
|
||||
}
|
||||
|
||||
if ($user_config->get('validate_phone') == 1) {
|
||||
$smarty->assign('label_billing_phone', label_for('billing-phone', "* " . __('Telefon')));
|
||||
} else {
|
||||
$smarty->assign('label_billing_phone', label_for('billing-phone', __('Telefon')));
|
||||
}
|
||||
|
||||
|
||||
$smarty->assign('input_billing_phone', input_tag('user_data_billing[phone]', $user_data_billing['phone'], array('id' => 'billing-phone', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{phone}') ? 'st_form-error billing-phone' : 'billing-phone')));
|
||||
|
||||
$smarty->assign('label_billing_nip', label_for('billing-vat_number', "* " . __($sf_user->hasVatEu() ? 'Numer VAT UE' : 'NIP')));
|
||||
$smarty->assign('input_billing_nip', input_tag('user_data_billing[vat_number]', $user_data_billing['vat_number'], array('id' => 'billing-vat_number', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{vat_number}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('label_billing_pesel', label_for('billing-pesel', __('PESEL')));
|
||||
$smarty->assign('input_billing_pesel', input_tag('user_data_billing[pesel]', $user_data_billing['pesel'], array('id' => 'billing-pesel', 'maxlength' => '255', 'class' => form_has_error('user_data_billing{pesel}') ? 'st_form-error' : '')));
|
||||
|
||||
$smarty->assign('description', input_hidden_tag('user_data_billing[description]', $user_data_billing['description'], array('id' => 'order_description')));
|
||||
|
||||
$smarty->assign('under_basket_socket', stSocketView::openComponents('under_basket_socket').stSocketView::openPartials('under_basket_socket'));
|
||||
|
||||
$delivery = stDeliveryFrontend::getInstance($sf_context->getUser()->getBasket());
|
||||
$defaultDelivery = $delivery->getDefaultDelivery();
|
||||
|
||||
$hidden_fields = [
|
||||
'payment_channel' => $sf_request->getParameter('payment_channel') ? htmlspecialchars($sf_request->getParameter('payment_channel')) : null,
|
||||
'payment_id' => $defaultDelivery ? $defaultDelivery->getDefaultPayment()->getId() : null,
|
||||
'delivery_id' => $defaultDelivery ? $defaultDelivery->getId() : null,
|
||||
'delivery_country_id' => $delivery->getDefaultDeliveryCountry() ? $delivery->getDefaultDeliveryCountry()->getId() : null,
|
||||
];
|
||||
|
||||
$smarty->assign('hidden_fields', $hidden_fields);
|
||||
|
||||
if (stTheme::is_responsive()) {
|
||||
$user_config->get('validate_phone') == 1 ? $phone_label = "* " . __('Telefon') : $phone_label = __('Telefon');
|
||||
|
||||
$smarty->assign('input_billing_company', input_tag('user_data_billing[company]', $user_data_billing['company'], array('id' => 'company_billing', 'placeholder' => '* ' . __("Firma"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_nip', input_tag('user_data_billing[vat_number]', $user_data_billing['vat_number'], array('id' => 'nip_billing', 'placeholder' => "* " . __($sf_user->hasVatEu() ? "Numer VAT UE" : "NIP"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_full_name', input_tag('user_data_billing[full_name]', $user_data_billing['full_name'], array('id' => 'full_name_billing', 'placeholder' => "* " . __('Imię i nazwisko'), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_address', input_tag('user_data_billing[address]', $user_data_billing['address'], array('id' => 'address_billing', 'placeholder' => '* ' . __("Ulica nr domu / nr lokalu"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_address_more', input_tag('user_data_billing[address_more]', $user_data_billing['address_more'], array('id' => 'address_more_billing', 'placeholder' => __("Adres ciąg dalszy"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_region', input_tag('user_data_billing[region]', $user_data_billing['region'], array('id' => 'region_billing', 'placeholder' => __("Województwo"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_code', input_tag('user_data_billing[code]', $user_data_billing['code'], array('id' => 'code_billing', 'placeholder' => '* ' . __("Kod"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_town', input_tag('user_data_billing[town]', $user_data_billing['town'], array('id' => 'town_billing', 'placeholder' => '* ' . __("Miasto"), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('select_billing_country', object_select_tag($userDataBilling->getCountriesId(), 'getId', array('id' => 'billing-country', 'class' => 'form-control', 'related_class' => 'Countries', 'control_name' => 'user_data_billing[country]')));
|
||||
$smarty->assign('input_billing_phone', input_tag('user_data_billing[phone]', $user_data_billing['phone'], array('id' => 'phone_billing', 'placeholder' => $phone_label, 'maxlength' => '255', 'class' => 'form-control')));
|
||||
$smarty->assign('input_billing_pesel', input_tag('user_data_billing[pesel]', $user_data_billing['pesel'], array('id' => 'billing-pesel', 'placeholder' => __('PESEL'), 'maxlength' => '255', 'class' => 'form-control')));
|
||||
|
||||
$smarty->assign('is_authenticated', $sf_user->isAuthenticated());
|
||||
$smarty->assign('username', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getUsername() : "");
|
||||
$smarty->assign('external_account', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getExternalAccount() : "");
|
||||
}
|
||||
|
||||
$smarty->assign('is_authenticated', $sf_user->isAuthenticated());
|
||||
|
||||
$smarty->assign('username', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getUsername() : "");
|
||||
|
||||
$smarty->assign('external_account', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getExternalAccount() : "");
|
||||
|
||||
$smarty->display('userdata_order_form_billing.html');
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php use_helper('Validation', 'Object', 'stCaptchaGD', 'stUrl', 'stUserPassValidation', 'stDelivery') ?>
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
<?php use_javascript('stUser.js', 'last') ?>
|
||||
<?php use_javascript('jquery.infieldlabel.js', 'last') ?>
|
||||
<?php $user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser'); ?>
|
||||
|
||||
<?php $smarty->assign('error_company', form_error('user_data_delivery[company]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_full_name', form_error('user_data_delivery[full_name]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_address', form_error('user_data_delivery[address]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_region', form_error('user_data_delivery[region]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_code', form_error('user_data_delivery[code]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_town', form_error('user_data_delivery[town]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
<?php $smarty->assign('error_phone', form_error('user_data_delivery[phone]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error error_label'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_delivery_company', $sf_request->getError('user_data_delivery{company}')); ?>
|
||||
<?php $smarty->assign('error_delivery_full_name', $sf_request->getError('user_data_delivery{full_name}')); ?>
|
||||
<?php $smarty->assign('error_delivery_address', $sf_request->getError('user_data_delivery{address}')); ?>
|
||||
<?php $smarty->assign('error_delivery_region', $sf_request->getError('user_data_delivery{region}')); ?>
|
||||
<?php $smarty->assign('error_delivery_code_town', $sf_request->getError('user_data_delivery{code}').$sf_request->getError('user_data_delivery{town}')); ?>
|
||||
<?php $smarty->assign('error_delivery_code', $sf_request->getError('user_data_delivery{code}')); ?>
|
||||
<?php $smarty->assign('error_delivery_town', $sf_request->getError('user_data_delivery{town}')); ?>
|
||||
<?php $smarty->assign('error_delivery_phone', $sf_request->getError('user_data_delivery{phone}')); ?>
|
||||
<?php $smarty->assign('error_delivery_vat', $sf_request->getError('user_data_delivery{vat_number}')); ?>
|
||||
<?php $smarty->assign('error_delivery_country', $sf_request->getError('user_data_delivery{country}')); ?>
|
||||
|
||||
<?php
|
||||
if ($sf_request->getErrors() && $user_basket_form_error):
|
||||
$smarty->assign('errors', __('Uzupełnij zaznaczone pola.'));
|
||||
endif;
|
||||
?>
|
||||
<?php $smarty->assign('show_region', $show_region);?>
|
||||
<?php $smarty->assign('show_address_more', $show_address_more);?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_customer_type1', __('Klient indywidualny')) ?>
|
||||
<?php $smarty->assign('radio_delivery_customer_type1', radiobutton_tag('user_data_delivery[customer_type]', 1, $user_data_delivery['customer_type'] == 1)) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_customer_type2', __('Firma')) ?>
|
||||
<?php $smarty->assign('radio_delivery_customer_type2', radiobutton_tag('user_data_delivery[customer_type]', 2, $user_data_delivery['customer_type'] == 2)) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_company', label_for('company',"* ".__('Firma'))) ?>
|
||||
<?php $smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $user_data_delivery['company'], array('id'=>'company', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{company}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_full_name', label_for('full_name',"* ".__('Imię i nazwisko'), array('id'=>'full_name_delivery_label'))) ?>
|
||||
<?php $smarty->assign('label_delivery_full_name_text', __('Imię i nazwisko')); ?>
|
||||
<?php $smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $user_data_delivery['full_name'], array('id'=>'full_name', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{full_name}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_address', label_for('address',"* ".__('Ulica nr domu / nr lokalu'))) ?>
|
||||
<?php $smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $user_data_delivery['address'], array('id'=>'address', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{address}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_address_more', label_for('address_more',__('Adres ciąg dalszy'))) ?>
|
||||
<?php $smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $user_data_delivery['address_more'], array('id'=>'address_more', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{address_more}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_region', label_for('region',__('Województwo'))) ?>
|
||||
<?php $smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $user_data_delivery['region'], array('id'=>'region', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{region}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_code', label_for('code',"* ".__('Kod'), array('id'=>'label_code'))) ?>
|
||||
<?php $smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $user_data_delivery['code'], array('id'=>'code', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{code}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_town', label_for('town',"* ".__('Miasto'), array('id'=>'label_town'))) ?>
|
||||
<?php $smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $user_data_delivery['town'], array('id'=>'town', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{town}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_country', label_for('country',__('Kraj'))) ?>
|
||||
<?php $smarty->assign('select_delivery_country', delivery_countries_select_tag('user_data_delivery[country]', $delivery_country_id)) ?>
|
||||
|
||||
|
||||
<?php
|
||||
if($user_config->get('validate_phone')==1){
|
||||
$smarty->assign('label_delivery_phone', label_for('phone',"* ".__('Telefon')));
|
||||
}else{
|
||||
$smarty->assign('label_delivery_phone', label_for('phone',__('Telefon')));
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $user_data_delivery['phone'], array('id'=>'phone', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{phone}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php if(stTheme::is_responsive()): ?>
|
||||
|
||||
<?php $user_config->get('validate_phone')==1 ? $phone_label = "* ".__('Telefon') : $phone_label = __('Telefon'); ?>
|
||||
|
||||
<!-- delivery -->
|
||||
<?php $smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $user_data_delivery['company'], array('id'=>'company_delivery', 'placeholder'=> '* '.__("Firma"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $user_data_delivery['full_name'], array('id'=>'full_name_delivery', 'placeholder'=> "* ".__('Imię i nazwisko'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $user_data_delivery['address'], array('id'=>'address_delivery', 'placeholder'=> '* '.__("Ulica nr domu / nr lokalu"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $user_data_delivery['address_more'], array('id'=>'address_more_delivery', 'placeholder'=>__("Adres ciąg dalszy"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $user_data_delivery['region'], array('id'=>'region_delivery', 'placeholder'=>__("Województwo"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $user_data_delivery['code'], array('id'=>'code_delivery', 'placeholder'=> '* '.__("Kod"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $user_data_delivery['town'], array('id'=>'town_delivery', 'placeholder'=> '* '.__("Miasto"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $user_data_delivery['phone'], array('id'=>'phone_delivery', 'placeholder'=> $phone_label, 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $smarty->assign('is_authenticated', $sf_user->isAuthenticated()); ?>
|
||||
<?php $smarty->assign('hidden_is_authenticated', input_hidden_tag('user_data_delivery[is_authenticated]', $sf_user->isAuthenticated())); ?>
|
||||
|
||||
<?php $smarty->display('userdata_order_form_delivery.html') ?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php $smarty->display('userdata_profile_list.html') ?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
st_theme_use_stylesheet('stUser.css');
|
||||
$smarty->assign('user_email', sfContext::getInstance()->getUser()->getUsername());
|
||||
$smarty->assign('active_tab', $active_tab);
|
||||
$smarty->assign('order_number', $order_number);
|
||||
|
||||
$newsletter_config = stConfig::getInstance(sfContext::getInstance(), 'stNewsletterBackend');
|
||||
|
||||
if($newsletter_config->get('newsletter_enabled')==1){
|
||||
$smarty->assign('newsletter_enabled', 0);
|
||||
}else{
|
||||
$smarty->assign('newsletter_enabled', 1);
|
||||
}
|
||||
|
||||
|
||||
$smarty->display('userdata_responsive_user_panel_menu.html');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
|
||||
<?php $results=array(); ?>
|
||||
|
||||
<?php foreach ($panel_navigator->getTabs() as $tab): ?>
|
||||
|
||||
<?php $row['is_tab']=$panel_navigator->isFirst($tab) ?>
|
||||
|
||||
<?php if ($panel_navigator->isFirst($tab)): ?>
|
||||
|
||||
<?php $row['selected_tab']=$panel_navigator->isSelected($tab) ? ' st_selected' : '' ?>
|
||||
<?php $row['link_to_module']=link_to(__($tab->getLabel(), '', $tab->getModuleName()), $tab->getParamsForUrl()); ?>
|
||||
|
||||
<?php elseif ($panel_navigator->isFirst($tab)): ?>
|
||||
|
||||
<?php $row['selected_tab']=$panel_navigator->isSelected($tab) ? ' st_selected' : '' ?>
|
||||
<?php $row['link_to_module']=link_to(__($tab->getLabel(), '', $tab->getModuleName()), $tab->getParamsForUrl()); ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php $row['selected_tab']=$panel_navigator->isSelected($tab) ? ' st_selected' : '' ?>
|
||||
<?php $row['link_to_module']=link_to(__($tab->getLabel(), '', $tab->getModuleName()), $tab->getParamsForUrl()); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $results[]=$row;?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php $smarty->assign('results',$results); ?>
|
||||
|
||||
<?php $smarty->display('userdata_user_panel_menu.html') ?>
|
||||
28
apps/frontend/modules/stUserData/templates/_user_form.php
Normal file
28
apps/frontend/modules/stUserData/templates/_user_form.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
use_helper('stUrl');
|
||||
|
||||
st_theme_use_stylesheet('stUser.css');
|
||||
|
||||
$delivery = stDeliveryFrontend::getInstance($sf_user->getBasket());
|
||||
|
||||
$smarty = new stSmarty('stUserData');
|
||||
|
||||
$smarty->assign('description', $sf_request->getParameter('user_data_billing[description]'));
|
||||
|
||||
$smarty->assign('is_authenticated', $sf_user->isAuthenticated());
|
||||
|
||||
$smarty->assign('username', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getUsername() : "");
|
||||
|
||||
$smarty->assign('external_account', $sf_user->isAuthenticated() ? $sf_user->getGuardUser()->getExternalAccount() : "");
|
||||
|
||||
$smarty->assign('action', st_secure_url_for('stUserData/addBasketUser'));
|
||||
|
||||
$smarty->assignComponent('billing_profiles', 'stUserData', 'profileList', array('type' => 'billing', 'selected' => $sf_request->getParameter('user_billing_profile')));
|
||||
|
||||
$default_country = $delivery->getDefaultDeliveryCountry();
|
||||
|
||||
$smarty->assignComponent('delivery_profiles', 'stUserData', 'profileList', array('type' => 'delivery', 'country_id' => $default_country ? $default_country->getId(): null, 'selected' => $sf_request->getParameter('user_delivery_profile')));
|
||||
|
||||
|
||||
$smarty->display('user_form.html');
|
||||
?>
|
||||
@@ -0,0 +1,185 @@
|
||||
<?php use_helper('Validation', 'Object') ?>
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
<?php use_javascript('jquery.infieldlabel.js', 'last') ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('show_region', $show_region);?>
|
||||
<?php $smarty->assign('show_pesel', $show_pesel);?>
|
||||
<?php $smarty->assign('show_address_more', $show_address_more);?>
|
||||
|
||||
<?php $user_config = stConfig::getInstance(sfContext::getInstance(), 'stUser'); ?>
|
||||
|
||||
<?php
|
||||
if ($sf_request->getErrors()):
|
||||
$smarty->assign('errors', __('Uzupełnij zaznaczone pola.'));
|
||||
endif;
|
||||
?>
|
||||
|
||||
<?php $smarty->assign('form_start', form_tag('stUserData/createFirstUserData', array('class' => 'st_form_ver6', 'name'=>'register'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_billing_message', form_error('user_data_billing[message]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_full_name', form_error('user_data_billing[full_name]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_address', form_error('user_data_billing[address]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_address_more', form_error('user_data_billing[address_more]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?><?php $smarty->assign('error_billing_code', form_error('user_data_billing[code]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_region', form_error('user_data_billing[region]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_town', form_error('user_data_billing[town]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_phone', form_error('user_data_billing[phone]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_billing_vat', form_error('user_data_billing[vatNumber]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_company', $sf_request->getError('user_data_billing{company}')); ?>
|
||||
<?php $smarty->assign('error_nip', $sf_request->getError('user_data_billing{vat_number}')); ?>
|
||||
<?php $smarty->assign('error_full_name', $sf_request->getError('user_data_billing{full_name}')); ?>
|
||||
<?php $smarty->assign('error_address', $sf_request->getError('user_data_billing{address}')); ?>
|
||||
<?php $smarty->assign('error_code_town', $sf_request->getError('user_data_billing{code}').$sf_request->getError('user_data_billing{town}')); ?>
|
||||
<?php $smarty->assign('error_code', $sf_request->getError('user_data_billing{code}')); ?>
|
||||
<?php $smarty->assign('error_town', $sf_request->getError('user_data_billing{town}')); ?>
|
||||
<?php $smarty->assign('error_phone', $sf_request->getError('user_data_billing{phone}')); ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('label_billing_customer_type1', __('Klient indywidualny')) ?>
|
||||
<?php $smarty->assign('radio_billing_customer_type1', radiobutton_tag('user_data_billing[customer_type]', 1, $type1_billing_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_billing_customer_type2', __('Firma')) ?>
|
||||
<?php $smarty->assign('radio_billing_customer_type2', radiobutton_tag('user_data_billing[customer_type]', 2, $type2_billing_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_company', label_for('billing_company',"* ".__('Firma'))) ?>
|
||||
<?php $smarty->assign('input_company', input_tag('user_data_billing[company]', $userDataBilling->getCompany(), array('id'=>'billing_company', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{company}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_full_name', label_for('billing_full_name',"* ".__('Imię i nazwisko'), array('id'=>'full_name_label'))) ?>
|
||||
<?php $smarty->assign('label_full_name_text', __('Imię i nazwisko')); ?>
|
||||
<?php $smarty->assign('input_full_name', input_tag('user_data_billing[full_name]', $userDataBilling->getFullName(), array('id'=>'billing_full_name', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{full_name}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_address', label_for('billing_address',"* ".__('Ulica nr domu / nr lokalu'))) ?>
|
||||
<?php $smarty->assign('input_address', input_tag('user_data_billing[address]', $userDataBilling->getAddress(), array('id'=>'billing_address', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{address}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_address_more', label_for('billing_address_more',__('Adres ciąg dalszy'))) ?>
|
||||
<?php $smarty->assign('input_address_more', input_tag('user_data_billing[address_more]', $userDataBilling->getAddressMore(), array('id'=>'billing_address_more', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{address_more}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_region', label_for('billing_region',__('Województwo'))) ?>
|
||||
<?php $smarty->assign('input_region', input_tag('user_data_billing[region]', $userDataBilling->getRegion(), array('id'=>'billing_region', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{region}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_code', label_for('billing_code',"* ".__('Kod'))) ?>
|
||||
<?php $smarty->assign('input_code', input_tag('user_data_billing[code]', $userDataBilling->getCode(), array('id'=>'billing_code', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{code}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_town', label_for('billing_town',"* ".__('Miasto'))) ?>
|
||||
<?php $smarty->assign('input_town', input_tag('user_data_billing[town]', $userDataBilling->getTown(), array('id'=>'billing_town', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{town}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('select_country', object_select_tag($userDataBilling->getCountriesId(), 'getId', array('id'=>'billing_country', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data_billing[country]'))) ?>
|
||||
|
||||
<?php
|
||||
if($user_config->get('validate_phone')==1){
|
||||
$smarty->assign('label_phone', label_for('billing_phone',"* ".__('Telefon')));
|
||||
}else{
|
||||
$smarty->assign('label_phone', label_for('billing_phone',__('Telefon')));
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $smarty->assign('input_phone', input_tag('user_data_billing[phone]', $userDataBilling->getPhone(), array('id'=>'billing_phone', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{phone}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_nip', label_for('billing_nip',"* ".__('NIP'))) ?>
|
||||
<?php $smarty->assign('input_nip', input_tag('user_data_billing[vat_number]', $userDataBilling->getVatNumber(), array('id'=>'billing_nip', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{vat_number}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_pesel', label_for('billing_pesel',__('PESEL'))) ?>
|
||||
<?php $smarty->assign('input_pesel', input_tag('user_data_billing[pesel]', $userDataBilling->getPesel(), array('id'=>'billing_pesel', 'maxlength'=>'255', 'class'=>form_has_error('user_data_billing{pesel}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('checkbox_delivery', checkbox_tag('different_delivery', 1, $different_delivery, array('id'=>'different_delivery', 'class'=>'checkobox'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_delivery_message', form_error('user_data_delivery[message]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_full_name',form_error('user_data_delivery[full_name]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_address', form_error('user_data_delivery[address]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_address_more', form_error('user_data_delivery[address_more]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_region', form_error('user_data_delivery[region]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_code', form_error('user_data_delivery[code]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_town', form_error('user_data_delivery[town]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_phone', form_error('user_data_delivery[phone]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
<?php $smarty->assign('error_delivery_vat', form_error('user_data_delivery[vatNumber]', array('suffix'=>'', 'prefix'=>'', 'class'=>'st_error'))) ?>
|
||||
|
||||
<?php $smarty->assign('error_delivery_company', $sf_request->getError('user_data_delivery{company}')); ?>
|
||||
<?php $smarty->assign('error_delivery_full_name', $sf_request->getError('user_data_delivery{full_name}')) ?>
|
||||
<?php $smarty->assign('error_delivery_address', $sf_request->getError('user_data_delivery{address}')) ?>
|
||||
<?php $smarty->assign('error_delivery_region', $sf_request->getError('user_data_delivery{region}')) ?>
|
||||
<?php $smarty->assign('error_delivery_code_town', $sf_request->getError('user_data_delivery{code}').$sf_request->getError('user_data_delivery{town}')); ?>
|
||||
<?php $smarty->assign('error_delivery_code', $sf_request->getError('user_data_delivery{code}')); ?>
|
||||
<?php $smarty->assign('error_delivery_town', $sf_request->getError('user_data_delivery{town}')); ?>
|
||||
<?php $smarty->assign('error_delivery_phone', $sf_request->getError('user_data_delivery{phone}')) ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('label_delivery_customer_type1', __('Klient indywidualny')) ?>
|
||||
<?php $smarty->assign('radio_delivery_customer_type1', radiobutton_tag('user_data_delivery[customer_type]', 1, $type1_delivery_checker)) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_customer_type2', __('Firma')) ?>
|
||||
<?php $smarty->assign('radio_delivery_customer_type2', radiobutton_tag('user_data_delivery[customer_type]', 2, $type2_delivery_checker)) ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('label_delivery_company', label_for('delivery_company',"* ".__('Firma'))) ?>
|
||||
<?php $smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $userDataDelivery->getCompany(), array('id'=>'delivery_company', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{company}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_full_name', label_for('delivery_full_name',"* ".__('Imię i nazwisko'), array('id'=>'full_name_delivery_label'))) ?>
|
||||
<?php $smarty->assign('label_delivery_full_name_text', __('Imię i nazwisko')); ?>
|
||||
<?php $smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $userDataDelivery->getFullName(), array('id'=>'delivery_full_name', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{full_name}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_address', label_for('delivery_address',"* ".__('Ulica nr domu / nr lokalu'))) ?>
|
||||
<?php $smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $userDataDelivery->getAddress(), array('id'=>'delivery_address', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{address}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_address_more', label_for('delivery_address_more',"* ".__('Adres ciąg dalszy'))) ?>
|
||||
<?php $smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $userDataDelivery->getAddressMore(), array('id'=>'delivery_address_more', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{address_more}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_region', label_for('delivery_region',__('Województwo'))) ?>
|
||||
<?php $smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $userDataDelivery->getRegion(), array('id'=>'delivery_region', 'maxlength'=>'255'))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_code', label_for('delivery_code',"* ".__('Kod'))) ?>
|
||||
<?php $smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $userDataDelivery->getCode(), array('id'=>'delivery_code', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{code}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
<?php $smarty->assign('label_delivery_town', label_for('delivery_town',"* ".__('Miasto'))) ?>
|
||||
<?php $smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $userDataDelivery->getTown(), array('id'=>'delivery_town', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{town}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
|
||||
<?php $smarty->assign('select_delivery_country', st_get_component('stUserData', 'deliveryCountriesSelect', array('force_default_country_id' => $userDataDelivery->getCountriesId()))) ?>
|
||||
|
||||
<?php
|
||||
if($user_config->get('validate_phone')==1){
|
||||
$smarty->assign('label_delivery_phone', label_for('delivery_phone',"* ".__('Telefon')));
|
||||
}else{
|
||||
$smarty->assign('label_delivery_phone', label_for('delivery_phone',__('Telefon')));
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $userDataDelivery->getPhone(), array('id'=>'delivery_phone', 'maxlength'=>'255', 'class'=>form_has_error('user_data_delivery{phone}') ? 'st_form-error' : ''))) ?>
|
||||
|
||||
|
||||
<?php if(stTheme::is_responsive()): ?>
|
||||
<?php $user_config->get('validate_phone')==1 ? $phone_label = "* ".__('Telefon') : $phone_label = __('Telefon'); ?>
|
||||
|
||||
<!-- billing -->
|
||||
<?php $smarty->assign('input_company', input_tag('user_data_billing[company]', $userDataBilling->getCompany(), array('id'=>'company_billing', 'placeholder'=> '* '.__("Firma"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_nip', input_tag('user_data_billing[vat_number]', $userDataBilling->getVatNumber(), array('id'=>'nip_billing','placeholder'=> "* ".__($sf_user->hasVatEu() ? "Numer VAT UE" : "NIP"), 'maxlength'=>'255', 'class'=>'form-control'))) ?>
|
||||
<?php $smarty->assign('input_full_name', input_tag('user_data_billing[full_name]', $userDataBilling->getFullName(), array('id'=>'full_name_billing', 'placeholder'=> "* ".__('Imię i nazwisko'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address', input_tag('user_data_billing[address]', $userDataBilling->getAddress(), array('id'=>'address_billing', 'placeholder'=> '* '.__("Ulica nr domu / nr lokalu"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_address_more', input_tag('user_data_billing[address_more]', $userDataBilling->getAddressMore(), array('id'=>'address_more_billing', 'placeholder'=>__("Adres ciąg dalszy"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_region', input_tag('user_data_billing[region]', $userDataBilling->getRegion(), array('id'=>'region_billing', 'placeholder'=>__("Województwo"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_code', input_tag('user_data_billing[code]', $userDataBilling->getCode(), array('id'=>'code_billing', 'placeholder'=> '* '.__("Kod"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_town', input_tag('user_data_billing[town]', $userDataBilling->getTown(), array('id'=>'town_billing', 'placeholder'=> '* '.__("Miasto"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('select_country', object_select_tag($userDataBilling->getCountriesId(), 'getId', array('id'=>'billing_country', 'class'=>'form-control', 'related_class' => 'Countries', 'peer_method'=>"doSelectActive", 'control_name' => 'user_data_billing[country]'))) ?>
|
||||
<?php $smarty->assign('input_phone', input_tag('user_data_billing[phone]', $userDataBilling->getPhone(), array('id'=>'phone_billing', 'placeholder'=> $phone_label, 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_pesel', input_tag('user_data_billing[pesel]', $userDataBilling->getPesel(), array('id'=>'billing-pesel', 'placeholder'=>__('PESEL'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
|
||||
<!-- delivery -->
|
||||
<?php $smarty->assign('input_delivery_company', input_tag('user_data_delivery[company]', $userDataDelivery->getCompany(), array('id'=>'company_delivery', 'placeholder'=> '* '.__("Firma"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_full_name', input_tag('user_data_delivery[full_name]', $userDataDelivery->getFullName(), array('id'=>'full_name_delivery', 'placeholder'=> "* ".__('Imię i nazwisko'), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_address', input_tag('user_data_delivery[address]', $userDataDelivery->getAddress(), array('id'=>'address_delivery', 'placeholder'=> '* '.__("Ulica nr domu / nr lokalu"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_address_more', input_tag('user_data_delivery[address_more]', $userDataDelivery->getAddressMore(), array('id'=>'address_more_delivery', 'placeholder'=>__("Adres ciąg dalszy"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_region', input_tag('user_data_delivery[region]', $userDataDelivery->getRegion(), array('id'=>'region_delivery', 'placeholder'=>__("Województwo"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_code', input_tag('user_data_delivery[code]', $userDataDelivery->getCode(), array('id'=>'code_delivery', 'placeholder'=> '* '.__("Kod"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_town', input_tag('user_data_delivery[town]', $userDataDelivery->getTown(), array('id'=>'town_delivery', 'placeholder'=> '* '.__("Miasto"), 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
<?php $smarty->assign('input_delivery_phone', input_tag('user_data_delivery[phone]', $userDataDelivery->getPhone(), array('id'=>'phone_delivery', 'placeholder'=> $phone_label, 'maxlength'=>'255', 'class'=>'form-control'))); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $smarty->assign('save_submit',submit_tag(__('Zapisz'),array('name'=>'submit_save'))) ?>
|
||||
|
||||
|
||||
|
||||
<?php $smarty->assign('hidden_delivery_id', input_hidden_tag('user_data_delivery[id]', $userDataDelivery->getId())) ?>
|
||||
<?php $smarty->assign('hidden_billing_id', input_hidden_tag('user_data_billing[id]', $userDataBilling->getId())) ?>
|
||||
|
||||
<?php $smarty->display('userdata_create_first_user_data.html') ?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php use_helper('Validation'); ?>
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
|
||||
<?php $smarty->assign('my_account', link_to(__('Moje konto'), 'stUserData/userPanel')) ?>
|
||||
<?php $smarty->assign('user_panel_menu', st_get_component('stUserData', 'userPanelMenu', array('action'=>'editAccount'))) ?>
|
||||
<?php $smarty->assign('edit_profile_list', st_get_component('stUserData', 'editProfileList', array('userDataId'=>$userDataId, 'userDataType'=>$userDataType, 'showEditProfileForm' => $showEditProfileForm))) ?>
|
||||
<?php $smarty->assign('add_new_address', link_to(__('Dodaj nowy adres'), 'stUserData/createProfile?userDataType='.$userDataType, array('class'=>'roundies'))) ?>
|
||||
|
||||
<?php if($showEditProfileForm == true): ?>
|
||||
<?php $smarty->assign('show_edit_profile_form', $showEditProfileForm == true) ?>
|
||||
<?php $smarty->assign('edit_profile_form', st_get_component('stUserData', 'editProfileForm', array('userDataId'=>$userDataId, 'userDataType'=>$userDataType, 'showEditProfileForm' => $showEditProfileForm , 'showMessage' => $showMessage))) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($showMessage == true): ?>
|
||||
<?php $smarty->assign('show_message', $showMessage) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $smarty->assign('user_data_type', $userDataType) ?>
|
||||
|
||||
<?php $smarty->display('userdata_edit_profile.html') ?>
|
||||
@@ -0,0 +1,526 @@
|
||||
<div id="order_form_billing">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{__ text="Dane płatnika"}</div>
|
||||
|
||||
|
||||
<div id="panel-billing" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type1}
|
||||
{$label_billing_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type2}
|
||||
{$label_billing_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_billing_fields">
|
||||
<div class="form-group {if $error_billing_company!=''}has-error{/if}">
|
||||
{if $error_billing_company!=""}<label class="control-label" for="company_billing">{$error_billing_company}</label>{/if}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_vat!=''}has-error{/if}">
|
||||
{if $error_billing_vat!=""}<label class="control-label" for="company_billing">{$error_billing_vat}</label>{/if}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_full_name!=''}has-error{/if}" id="form_group_full_name_billing">
|
||||
{if $error_billing_full_name!=""}<label class="control-label" for="full_name_billing">{$error_billing_full_name}</label>{/if}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_address!=''}has-error{/if}" style="visibility: hidden; height: 0;">
|
||||
{if $error_billing_address!=""}<label class="control-label" for="address_billing">{$error_billing_address}</label>{/if}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" name='street' id="street" placeholder="* Ulica" class="form-control" value="{php}echo $_POST['street'];{/php}" />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<input type="text" id="street_nr1" name='street_nr1' placeholder="* Numer budynku" class="form-control" value="{php}echo $_POST['street_nr1'];{/php}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<input type="text" id="street_nr2" name="street_nr2" placeholder="Numer lokalu" class="form-control" value="{php}echo $_POST['street_nr2'];{/php}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
<div class="form-group {if $error_billing_code!=''}has-error{/if}">
|
||||
{if $error_billing_code!=""}<label class="control-label" for="code_billing">{$error_billing_code}</label>{/if}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_billing_town!=''}has-error{/if}">
|
||||
{if $error_billing_town!=""}<label class="control-label" for="town_billing">{$error_billing_town}</label>{/if}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_billing_phone!=''}has-error{/if}">
|
||||
{if $error_billing_phone!=""}<label class="control-label" for="phone_billing">{$error_billing_phone}</label>{/if}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_email!=''}has-error{/if}">
|
||||
{if $error_billing_email!=""}<label class="control-label" for="email_billing">{$error_billing_email}</label>{/if}
|
||||
{$input_billing_email}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_create_account} {__ text="Załóż konto"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="account_fields">
|
||||
<div class="form-group {if $error_billing_password1!=''}has-error{/if}">
|
||||
{if $error_billing_password1!=""}<label class="control-label" for="password1_billing">{$error_billing_password1}</label>{/if}
|
||||
{$input_billing_password1}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_password2!=''}has-error{/if}">
|
||||
{if $error_billing_password2!=""}<label class="control-label" for="password2_billing">{$error_billing_password2}</label>{/if}
|
||||
{$input_billing_password2}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_invoice_request==1 && $auto_invoice_request!=1}
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_invoice} {__ text="Chcę otrzymać fakturę vat"}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_different_delivery} {__ text="Inne dane wysyłkowe"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="order_form_delivery" class="open panel-default">
|
||||
|
||||
<div class="panel-heading">{__ text="Dane wysyłkowe"}</div>
|
||||
|
||||
<div id="panel-delivery" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type1}
|
||||
{$label_delivery_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type2}
|
||||
{$label_delivery_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
|
||||
<div class="form-group {if $error_delivery_company!=''}has-error{/if}">
|
||||
{if $error_delivery_company!=""}<label class="control-label" for="company_delivery">{$error_delivery_company}</label>{/if}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_full_name!=''}has-error{/if}" id='delivery_full_name'>
|
||||
{if $error_delivery_full_name!=""}<label class="control-label" for="full_name_delivery">{$error_delivery_full_name}</label>{/if}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_address!=''}has-error{/if}" style="visibility: hidden; height: 0;">
|
||||
{if $error_delivery_address!=""}<label class="control-label" for="address_delivery">{$error_delivery_address}</label>{/if}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" id="delivery_street" name='delivery_street' placeholder="* Ulica" class="form-control" value="{php}echo $_POST['delivery_street'];{/php}" />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<input type="text" id="delivery_street_nr1" name='delivery_street_nr1' placeholder="* Numer budynku" class="form-control" value="{php}echo $_POST['delivery_street_nr1'];{/php}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<input type="text" id="delivery_street_nr2" name='delivery_street_nr2' placeholder="Numer lokalu" class="form-control" value="{php}echo $_POST['delivery_street_nr2'];{/php}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_delivery_code!=''}has-error{/if}">
|
||||
{if $error_delivery_code!=""}<label class="control-label" for="code_delivery">{$error_delivery_code}</label>{/if}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
|
||||
<div class="form-group {if $error_delivery_town!=''}has-error{/if}">
|
||||
{if $error_delivery_town!=""}<label class="control-label" for="town_delivery">{$error_delivery_town}</label>{/if}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_delivery_phone!=''}has-error{/if}">
|
||||
{if $error_delivery_phone!=""}<label class="control-label" for="phone_delivery">{$error_delivery_phone}</label>{/if}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="panel-order-form" class="panel-body">
|
||||
|
||||
{$description}
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
<div class="checkbox">
|
||||
<label class="{if $error_billing_privacy==1}checkbox_error{/if}">
|
||||
{$checkbox_privacy} {$link_to_privacy}
|
||||
</label>
|
||||
</div>
|
||||
<div class="required-info">* pola wymagane</div>
|
||||
|
||||
{if isset($captcha_on)}
|
||||
<div id="captcha_form">
|
||||
|
||||
{if $error_captcha!=""}<div class="has-error"><label class="control-label" for="captcha_img">{$error_captcha}</label></div>{/if}
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="captcha-img {if $error_captcha!=''}has-error{/if}">
|
||||
{$get_captcha}
|
||||
</div>
|
||||
|
||||
<div class="form-group captcha-input {if $error_captcha!=''}has-error{/if}">
|
||||
{$input_captcha}
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$hidden_is_authenticated}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($) {
|
||||
$(document).ready(function () {
|
||||
if ($('#user_data_billing_customer_type_2').is(':checked'))
|
||||
$('#form_group_full_name_billing').hide();
|
||||
else
|
||||
$('#form_group_full_name_billing').show();
|
||||
|
||||
if ($('#user_data_delivery_customer_type_2').is(':checked'))
|
||||
$('#delivery_full_name').hide();
|
||||
else
|
||||
$('#delivery_full_name').show();
|
||||
|
||||
$('#user_data_billing_privacy_content').prepend('* ');
|
||||
$('#st_form-user-compatibility-opinion-box span').prepend('* ');
|
||||
|
||||
$('body').on('click', '#st_button-user-edit_data_basket button', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if ($('#user_data_billing_customer_type_1').is(':checked')) {
|
||||
if ($.trim($('#full_name_billing').val()) == "") {
|
||||
$('#full_name_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić Imię i nazwisko');
|
||||
}
|
||||
else
|
||||
$('#full_name_billing').parent('.form-group').removeClass('has-error');
|
||||
}
|
||||
else if ($('#user_data_billing_customer_type_2').is(':checked')) {
|
||||
if ($.trim($('#company_billing').val()) == "") {
|
||||
$('#company_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić Nazwę firmy');
|
||||
}
|
||||
else
|
||||
$('#company_billing').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($.trim($('#nip_billing').val()) == "") {
|
||||
$('#nip_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić NIP');
|
||||
}
|
||||
else
|
||||
$('#nip_billing').parent('.form-group').removeClass('has-error');
|
||||
}
|
||||
|
||||
if ($.trim($('#code_billing').val()) == "") {
|
||||
$('#code_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić Kod pocztowy');
|
||||
}
|
||||
else
|
||||
$('#code_billing').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($.trim($('#town_billing').val()) == "") {
|
||||
$('#town_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić Miasto');
|
||||
}
|
||||
else
|
||||
$('#town_billing').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($.trim($('#email_billing').val()) == "") {
|
||||
$('#email_billing').parent('.form-group').addClass('has-error');
|
||||
return alert('Proszę uzupełnić Email');
|
||||
}
|
||||
else
|
||||
$('#email_billing').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if (!$('#st_form-user-compatibility-opinion').is(':checked')) {
|
||||
$('#st_form-user-compatibility-opinion-box').addClass('has-error');
|
||||
return alert('Proszę zaznaczyć zgodę na przetwarzanie danych osobowych');
|
||||
}
|
||||
else
|
||||
$('#st_form-user-compatibility-opinion-box').removeClass('has-error');
|
||||
|
||||
if (!$('#user_data_billing_privacy').is(':checked')) {
|
||||
$('#user_data_billing_privacy').parents('.checkbox').addClass('has-error');
|
||||
return alert('Proszę zaakceptować Regulamin');
|
||||
}
|
||||
else
|
||||
$('#user_data_billing_privacy').parents('.checkbox').removeClass('has-error');
|
||||
|
||||
if ($.trim($('#street').val()) == '') {
|
||||
$('#street').parent('.form-group').addClass('has-error');
|
||||
$('#street').focus();
|
||||
return alert('Proszę uzupełnić "Ulicę".');
|
||||
}
|
||||
else
|
||||
$('#street').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($.trim($('#street_nr1').val()) == '') {
|
||||
$('#street_nr1').parent('.form-group').addClass('has-error');
|
||||
$('#street_nr1').focus();
|
||||
return alert('Proszę uzupełnić "Number budynku".');
|
||||
}
|
||||
else
|
||||
$('#street_nr1').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($('#different_delivery').is(':checked') && $.trim($('#delivery_street').val()) == '') {
|
||||
$('#delivery_street').parent('.form-group').addClass('has-error');
|
||||
$('#delivery_street').focus();
|
||||
return alert('Proszę uzupełnić "Ulicę".');
|
||||
}
|
||||
else
|
||||
$('#delivery_street').parent('.form-group').removeClass('has-error');
|
||||
|
||||
if ($('#different_delivery').is(':checked') && $.trim($('#delivery_street_nr1').val()) == '') {
|
||||
$('#delivery_street_nr1').parent('.form-group').addClass('has-error');
|
||||
$('#delivery_street_nr1').focus();
|
||||
return alert('Proszę uzupełnić "Number budynku".');
|
||||
}
|
||||
else
|
||||
$('#delivery_street_nr1').parent('.form-group').removeClass('has-error');
|
||||
|
||||
$('#address_billing').val($('#street').val() + ' ' + $('#street_nr1').val());
|
||||
if ($('#street_nr2').val() != "")
|
||||
$('#address_billing').val($('#address_billing').val() + '/' + $('#street_nr2').val());
|
||||
|
||||
if ($('#delivery_street').val() !== undefined) {
|
||||
$('#address_delivery').val($('#delivery_street').val() + ' ' + $('#delivery_street_nr1').val());
|
||||
|
||||
if ($('#delivery_street_nr2').val() != "")
|
||||
$('#address_delivery').val($('#address_delivery').val() + '/' + $('#delivery_street_nr2').val());
|
||||
}
|
||||
|
||||
$('#user_delivery_form').submit();
|
||||
});
|
||||
|
||||
$('#company_billing, #company_delivery').attr('placeholder', '* Nazwa firmy');
|
||||
|
||||
$("#password1_billing").pstrength();
|
||||
|
||||
if ($('#create_account').attr('checked')) {
|
||||
$("#account_fields").show();
|
||||
} else {
|
||||
$("#account_fields").hide();
|
||||
}
|
||||
|
||||
$('#create_account').click(function () {
|
||||
$("#account_fields").toggle();
|
||||
});
|
||||
|
||||
if ($('#different_delivery').attr('checked')) {
|
||||
$("#order_form_delivery").show();
|
||||
} else {
|
||||
$("#order_form_delivery").hide();
|
||||
}
|
||||
|
||||
$('#different_delivery').click(function () {
|
||||
$("#order_form_delivery").toggle();
|
||||
});
|
||||
|
||||
var star_placeholder_billing = $("#full_name_billing").attr("placeholder");
|
||||
var no_star_placeholder_billing = star_placeholder_billing.substring(2);
|
||||
|
||||
if ($('#user_data_billing_customer_type_2').attr('checked')) {
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing").attr("placeholder", no_star_placeholder_billing);
|
||||
} else {
|
||||
$("#company_billing_fields").hide();
|
||||
$("#full_name_billing").attr("placeholder", star_placeholder_billing);
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function () {
|
||||
$('#form_group_full_name_billing').show();
|
||||
$("#company_billing_fields").hide();
|
||||
$("#full_name_billing").attr("placeholder", star_placeholder_billing);
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function () {
|
||||
$('#form_group_full_name_billing').hide();
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing").attr("placeholder", no_star_placeholder_billing);
|
||||
});
|
||||
|
||||
var star_placeholder_delivery = $("#full_name_delivery").attr("placeholder");
|
||||
var no_star_placeholder_delivery = star_placeholder_delivery.substring(2);
|
||||
|
||||
if ($('#user_data_delivery_customer_type_2').attr('checked')) {
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
} else {
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function () {
|
||||
$('#delivery_full_name').show();
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function () {
|
||||
$('#delivery_full_name').hide();
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
});
|
||||
|
||||
$('#user_data_billing_privacy').click(function () {
|
||||
$("#captcha_form").toggle();
|
||||
});
|
||||
|
||||
if ($('#user_data_billing_privacy').attr('checked')) {
|
||||
$("#captcha_form").show()
|
||||
} else {
|
||||
$("#captcha_form").hide();
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_billing_country').change(function () {
|
||||
var option = $('#user_data_delivery_country > option:selected').get(0);
|
||||
|
||||
stUser.updateAnonymousForms(option.value, false);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_country').change(function () {
|
||||
$('#delivery-country').val($(this).val()).change();
|
||||
});
|
||||
|
||||
$("#order_description_text").change(function () {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,89 @@
|
||||
{if !$is_authenticated}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div id="login-form" class="col-sm-6">
|
||||
{st_get_component module="stUser" component="basketLoginForm"}
|
||||
</div>
|
||||
|
||||
<div id="order-form" class="col-sm-6">
|
||||
<form action="{$action}#user_delivery_form" method="post" id="user_delivery_form">
|
||||
{st_get_component module="stUserData" component="orderForm"}
|
||||
|
||||
<div id="order-submit-button">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<br />
|
||||
</div>
|
||||
{else}
|
||||
{literal}
|
||||
<script>
|
||||
jQuery(function () {
|
||||
$('#st_form-user-compatibility-opinion-box').hide();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<form action="{$action}#user_delivery_form" method="post" id="user_delivery_form">
|
||||
|
||||
<div class="row" data-equalizer>
|
||||
<div class="col-sm-6">
|
||||
<div id="order_form_billing" class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
{__ text="Dane płatnika"}
|
||||
</div>
|
||||
<div class="panel-body " data-equalizer-watch>
|
||||
{if $is_authenticated && $external_account}
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<img style="vertical-align: sub; width: 16px; margin-right:4px;" src="/images/frontend/theme/responsive/{$external_account}_icon.png" alt="{$external_account}" /><a href="/user_data/userPanel" name="external_account">{$username}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{$billing_profiles}
|
||||
<div id="user_billing_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormBilling"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div id="order_form_delivery" class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
{__ text="Dane wysyłkowe"}
|
||||
</div>
|
||||
<div class="panel-body" data-equalizer-watch>
|
||||
{$delivery_profiles}
|
||||
<div id="user_delivery_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormDelivery"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div id="order-submit-button" class="user-authenticated">
|
||||
<div id="st_button-user-edit_data_basket" class="st_button-container">
|
||||
<button type="submit" name="submit_save" value="submit_save" class="btn btn-primary pull-right" {if $disabled} disabled="disabled" {/if}>
|
||||
{if $label}{__ text=$label}{else}{__ text='Przejdź do potwierdzenia'}{/if}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<br />
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
{literal}
|
||||
<script>
|
||||
jQuery(function () {
|
||||
$('#company_billing, #company_delivery').attr('placeholder', '* Nazwa firmy');
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,211 @@
|
||||
<div id="edit-profile-form" class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
{if isset($billing_data)}
|
||||
{__ text="Dane płatnika"}
|
||||
{else}
|
||||
{__ text="Dane wysyłkowe"}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
{if $show_message}
|
||||
<div class="alert alert-success" role="alert">{__ text="Dane zostały zaktualizowane."}</div>
|
||||
{/if}
|
||||
|
||||
{if $show_add!=""}
|
||||
{$edit_profiles}
|
||||
{/if}
|
||||
|
||||
{$form_start}
|
||||
|
||||
|
||||
<div id="user_edit_profile_content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type1}
|
||||
{$label_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type2}
|
||||
{$label_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="form-group {if $error_company!=''}has-error{/if}">
|
||||
{if $error_company!=""}<label class="control-label" for="company">{$error_company}</label>{/if}
|
||||
{$input_company}
|
||||
</div>
|
||||
|
||||
{if isset($billing_data)}
|
||||
<div class="form-group {if $error_nip!=''}has-error{/if}">
|
||||
{if $error_nip!=""}<label class="control-label" for="nip">{$error_nip}</label>{/if}
|
||||
{$input_nip}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_full_name!=''}has-error{/if}">
|
||||
{if $error_full_name!=""}<label class="control-label" for="full_name">{$error_full_name}</label>{/if}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_address!=''}has-error{/if}">
|
||||
{if $error_address!=""}<label class="control-label" for="address">{$error_address}</label>{/if}
|
||||
{$input_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_code!=''}has-error{/if}">
|
||||
{if $error_code!=""}<label class="control-label" for="code">{$error_code}</label>{/if}
|
||||
{$input_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_town!=''}has-error{/if}">
|
||||
{if $error_town!=""}<label class="control-label" for="town">{$error_town}</label>{/if}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_phone!=''}has-error{/if}">
|
||||
{if $error_phone!=""}<label class="control-label" for="phone">{$error_phone}</label>{/if}
|
||||
{$input_phone}
|
||||
</div>
|
||||
|
||||
{if $is_default!=1}
|
||||
|
||||
{if $show_add==""}
|
||||
|
||||
<input id="st_form-user-default" type="hidden" value="1" name="user_data[isDefault]">
|
||||
|
||||
{else}
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_set_as_default} {__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $show_add!=""}
|
||||
<a class="btn btn-default pull-left" href="{$delete_url}">{__ text="Usuń"}</a>
|
||||
{/if}
|
||||
|
||||
{else}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="1" disabled="disabled" checked="true">
|
||||
<input type="hidden" value="1" id="st_form-user-default" name="user_data[isDefault]">
|
||||
{__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
<button type="submit" class="btn btn-primary pull-right" style="width: 200px;">
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
|
||||
{$hidden_show_edit_profile_form}
|
||||
{$hidden_uderdata_type}
|
||||
{$hidden_user_data_id}
|
||||
{$hidden_user_data_is_billing}
|
||||
{$hidden_userdata_id}
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="add-user-profile" class="center-block">
|
||||
{if $show_add!=""}
|
||||
{if isset($billing_data)}
|
||||
<a href="/user_data/createProfile/userDataType/billing" class="btn btn-default pull-left">{__ text="Dodaj nowy adres"}</a>
|
||||
{else}
|
||||
<a href="/user_data/createProfile/userDataType/delivery" class="btn btn-default pull-left">{__ text="Dodaj nowy adres"}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
var star_placeholder = $("#full_name").attr("placeholder");
|
||||
var no_star_placeholder = star_placeholder.substring(2);
|
||||
|
||||
if($('#user_data_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
}else{
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
}
|
||||
|
||||
$('#user_data_customer_type_1').click(function(){
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
});
|
||||
|
||||
$('#user_data_customer_type_2').click(function(){
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
});
|
||||
|
||||
$( ".alert" ).addClass( "opacity_alert" );
|
||||
|
||||
setTimeout(function() {
|
||||
$( ".alert" ).addClass( "hidden_alert" );
|
||||
}, 3000);
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,63 @@
|
||||
{if $is_authenticated}
|
||||
|
||||
{if $external_account != ""}
|
||||
<div id="external_account">
|
||||
<h3>
|
||||
{if $external_account == "google"}<img src="{image_path image='google_icon.png'}" alt="google" />{/if}
|
||||
<a href="/user_data/userPanel" name="external_account">{$username}</a>
|
||||
{if $external_account == "google"}<span class="st_user_title">({__ text="Zalogowano z konta google"})</span>{/if}
|
||||
</h3>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form action="{$action}" class="st_form" method="post" id="st_user-login_form">
|
||||
|
||||
<div id="st_user-basket_billing_login_form">
|
||||
{st_get_component module="stUserData" component="basketLoginUserBillingForm"}
|
||||
</div>
|
||||
|
||||
<div id="st_user-basket_delivery_login_form">
|
||||
{st_get_component module="stUserData" component="basketLoginUserDeliveryForm"}
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
<div id="st_order-quastion" class="st_component" style="border: none;">
|
||||
<h5 class="st_title">
|
||||
{__ text="Uwagi do zamówienia"}
|
||||
</h5>
|
||||
<div style="margin: 5px 15px 5px 5px; padding-top: 8px;">
|
||||
<textarea name="description" id="st_user-description">{$description}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_user-order-submit-button">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{else}
|
||||
|
||||
<a name="selectUserData"></a>
|
||||
<div id="st_user-basket">
|
||||
|
||||
<div id="st_user-basket-frama1">
|
||||
|
||||
{st_get_component module="stUser" component="basketLoginForm"}
|
||||
|
||||
</div>
|
||||
|
||||
<form action="{$action}" class="st_form" method="post" id="st_user-register_form">
|
||||
{st_get_component module="stUserData" component="basketUserDataForm"}
|
||||
<div id="st_order-quastion" class="st_component" style="border: none;">
|
||||
<h5 class="st_title">
|
||||
{__ text="Uwagi do zamówienia"}
|
||||
</h5>
|
||||
<div style="margin: 5px 15px 5px 5px; padding-top: 8px;">
|
||||
<textarea name="description" id="st_user-description">{$description}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_user-order-submit-button">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,268 @@
|
||||
<div id="st_user-edit_data" class="st_component" style="border: none; width: 400px; float: right;">
|
||||
|
||||
{$form_start}
|
||||
<fieldset>
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane billingowe"}
|
||||
<span class="st_user_title">{__ text="(Dla nowych klientów)"}</span>
|
||||
</h5>
|
||||
|
||||
|
||||
<div id="st_form-user-field2" class="st_row" style="width:210px;margin-left:135px;">
|
||||
<div style="float:left;">{$radio_customer_type1} {$label_customer_type1}</div>
|
||||
|
||||
<div style="float:right;text-align:right;">{$radio_customer_type2} {$label_customer_type2}</div>
|
||||
<br class="clea">
|
||||
</div>
|
||||
|
||||
|
||||
{$error_billing_message}
|
||||
{$error_billing_email}
|
||||
{$error_billing_password1}
|
||||
{$error_billing_password2}
|
||||
{$error_billing_full_name}
|
||||
{$error_billing_address}
|
||||
{$error_billing_address_more}
|
||||
{$error_billing_region}
|
||||
{$error_billing_code}
|
||||
{$error_billing_town}
|
||||
{$error_billing_phone}
|
||||
{$error_billing_vat}
|
||||
{$error_billing_company}
|
||||
<div id="st_form-user-field1" class="st_row" style="{$display_type}; font-weight: bold;">
|
||||
{$label_company}
|
||||
<div class="st_field">
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field10" class="st_row" style="{$display_type}; font-weight: bold;">
|
||||
{$label_nip}
|
||||
<div class="st_field">
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field2" class="st_row">
|
||||
<b>{$label_email}</b>
|
||||
<div class="st_field">
|
||||
{$input_email}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="margin-left: 113px;">
|
||||
{$hidden_checkbox_create_account}
|
||||
{$checkbox_create_account}
|
||||
<span style="margin-left: 5px;">
|
||||
{__ text="Załóż konto (zarejestruj mnie)"}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{if $show_create_account}
|
||||
<div id="showCreateAccount" style="display: block;">
|
||||
{else}
|
||||
<div id="showCreateAccount" style="display: none;">
|
||||
{/if}
|
||||
<div id="st_form-user-field2" class="st_row">
|
||||
<b>{$label_password1}</b>
|
||||
<div class="st_field">
|
||||
{$input_password1}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="st_form-user-field2" class="st_row">
|
||||
<b>{$label_password2}</b>
|
||||
<div class="st_field">
|
||||
{$input_password2}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery('#st_form-user-billing-password1').pstrength();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="st_form-user-field3" class="st_row" style="font-weight: bold;">
|
||||
{$label_full_name}
|
||||
<div class="st_field">
|
||||
{$input_full_name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span>
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span>
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_region}
|
||||
<div class="st_field">
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_code}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
<b>{$label_country}</b>
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_pesel==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_pesel}
|
||||
<div class="st_field">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-left: 113px;">
|
||||
{$hidden_checkbox_different_delivery}
|
||||
{$checkbox_different_delivery}
|
||||
<span style="margin-left: 5px;">
|
||||
{__ text="Dane dostawy są inne niż dane billingowe"}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{if $show_delivery_form}
|
||||
<div id="showDeliveryData" style="display: block;">
|
||||
{else}
|
||||
<div id="showDeliveryData" style="display: none;">
|
||||
{/if}
|
||||
|
||||
<br>
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane dostawy"}
|
||||
</h5>
|
||||
{$error_delivery_message}
|
||||
{$error_delivery_full_name}
|
||||
{$error_delivery_address}
|
||||
{$error_delivery_address_more}
|
||||
{$error_delivery_region}
|
||||
{$error_delivery_code}
|
||||
{$error_delivery_town}
|
||||
{$error_delivery_phone}
|
||||
{$error_delivery_vat}
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
<label for="st_form-userData-field1">{__ text="Firma"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
<label for="st_form-userData-field3">{__ text="Imię i nazwisko"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span>
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span>
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_delivery_region}
|
||||
<div class="st_field">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_delivery_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_code}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
<b>{$label_delivery_country}</b>
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_delivery_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($captcha_on)}
|
||||
<div class="st_row">
|
||||
{$error_captcha}
|
||||
<div style="margin-left:140px; margin-bottom: 2px;">{$get_captcha}</div>
|
||||
<b>{$label_captcha}</b>
|
||||
<div class="st_field">
|
||||
{$input_captcha}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
<div class="st_row">
|
||||
{$error_privacy}
|
||||
<div class="st_field" style="margin-left: 113px;">
|
||||
{$checkbox_privacy}
|
||||
<span style="margin-left: 7px;">{$privacy_link}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="margin-left: 92px;">
|
||||
</div>
|
||||
{$hidden_show_delivery_form_checkbox}
|
||||
{$hidden_show_delivery_form_style0}
|
||||
{$hidden_user_data_delivery_id}
|
||||
{$hidden_user_data_billing_id}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
<span><b>* {__ text="Pola pogrubione są wymagane."}</b></span>
|
||||
</div>
|
||||
<div class="st_field" id="st_form-user-required-index" style="display: none;">
|
||||
<span><sup>[1]</sup> <b>{__ text="Jedno z pól jest wymagane."}</b></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
@@ -0,0 +1,95 @@
|
||||
<div id="st_user-edit_data" class="st_component" style="border: none;">
|
||||
<fieldset>
|
||||
<div id="st_user-basket-frama1">
|
||||
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane billingowe"}
|
||||
</h5>
|
||||
{$basket_user_data_profile_billing}
|
||||
{$error_billing_message}
|
||||
{$error_billing_company}
|
||||
{$error_billing_full_name}
|
||||
{$error_billing_address}
|
||||
{$error_billing_code}
|
||||
{$error_billing_town}
|
||||
{$error_billing_phone}
|
||||
{$error_billing_vat}
|
||||
|
||||
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
{$label_company}
|
||||
<div class="st_field">
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
{$label_full_name}
|
||||
<div class="st_field">
|
||||
{$input_full_name}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span>
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span><br>
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_region}
|
||||
<div class="st_field">
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_code}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
{$label_country}
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_pesel==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_pesel}
|
||||
<div class="st_field">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field10" class="st_row">
|
||||
{$label_nip}
|
||||
<div class="st_field">
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{$hidden_user_data_billing_id}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<div id="st_user-edit_data" class="st_component" style="border: none;">
|
||||
<fieldset>
|
||||
<div id="st_user-basket-frama2">
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane dostawy"}
|
||||
</h5>
|
||||
<div id="st_user-delivery_profile">{$basket_user_data_profile_delivery}</div>
|
||||
{$error_delivery_message}
|
||||
{$error_delivery_company}
|
||||
{$error_delivery_full_name}
|
||||
{$error_delivery_address}
|
||||
{$error_delivery_code}
|
||||
{$error_delivery_town}
|
||||
{$error_delivery_phone}
|
||||
{$error_delivery_vat}
|
||||
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
{$label_delivery_company}
|
||||
<div class="st_field">
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
{$label_delivery_full_name}
|
||||
<div class="st_field">
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_delivery_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span>
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_delivery_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span><br>
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_delivery_region}
|
||||
<div class="st_field">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_delivery_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_code}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
{$label_delivery_country}
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_delivery_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{$hidden_different_delivery}
|
||||
{$hidden_user_data_delivery_id}
|
||||
@@ -0,0 +1,5 @@
|
||||
{if $show_profile}
|
||||
{$select_profile}
|
||||
{else}
|
||||
<div style="margin-top:23px;"></div>
|
||||
{/if}
|
||||
@@ -0,0 +1,222 @@
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
function showDeliveryData()
|
||||
{
|
||||
if (document.register.different_delivery.checked==true)
|
||||
{
|
||||
document.getElementById('showDeliveryData').style.display='block';
|
||||
document.getElementById('showBillingData').style.marginLeft='30px';
|
||||
document.getElementById('showDataEnd').style.marginLeft='40px';
|
||||
document.getElementById('showDataEnd').style.width='660px';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('showDeliveryData').style.display='none';
|
||||
document.getElementById('showBillingData').style.marginLeft='200px';
|
||||
document.getElementById('showDataEnd').style.marginLeft='196px';
|
||||
document.getElementById('showDataEnd').style.width='325px';
|
||||
}
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<div id="st_user-first_register" class="st_application" >
|
||||
<div id="st_application-user-login-header">
|
||||
<h1 class="st_title">
|
||||
{__ text="Rejestracja"}
|
||||
</h1>
|
||||
<p>
|
||||
{__ text="Podaj dane billingowe aby dokończyć proces rejestracji."}
|
||||
</p>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
<div class="st_content">
|
||||
<div id="st_user_create_account_position">
|
||||
<div id="st_user-edit_data" class="st_component" style="width: 100%; border: none;">
|
||||
{$form_start}
|
||||
<fieldset>
|
||||
<div id="showBillingData" style="float: left; border: none; {$show_delivery_style1}">
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane billingowe"}
|
||||
</h5>
|
||||
{$error_billing_message}
|
||||
{$error_billing_full_name}
|
||||
{$error_billing_address}
|
||||
{$error_billing_address_more}
|
||||
{$error_billing_region}
|
||||
{$error_billing_code}
|
||||
{$error_billing_town}
|
||||
{$error_billing_phone}
|
||||
{$error_billing_vat}
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
<label for="st_form-userData-field1">{__ text="Firma"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
<label for="st_form-userData-field3">{__ text="Imię i nazwisko"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_full_name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span><br>
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span><br>
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
{$label_region}
|
||||
<div class="st_field">
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_code}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
<b>{$label_country}</b>
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_pesel==1}
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
{$label_pesel}
|
||||
<div class="st_field">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field10" class="st_row">
|
||||
{$label_nip}
|
||||
<div class="st_field">
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-left: 92px;">
|
||||
{$checkbox_different_delivery}
|
||||
{__ text="Dane dostawy są inne niż dane billingowe"}
|
||||
</div>
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
<span><b>* {__ text="Pola pogrubione są wymagane."}</b></span>
|
||||
</div>
|
||||
<div class="st_field">
|
||||
<span><sup>[1]</sup> <b>{__ text="Jedno z pól jest wymagane."}</b></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="showDeliveryData" style="display: {$show_delivery_style0}; float: left; margin-left:20px;">
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane dostawy"}
|
||||
</h5>
|
||||
{$error_delivery_message}
|
||||
{$error_delivery_full_name}
|
||||
{$error_delivery_address}
|
||||
{$error_delivery_address_more}
|
||||
{$error_delivery_region}
|
||||
{$error_delivery_code}
|
||||
{$error_delivery_town}
|
||||
{$error_delivery_phone}
|
||||
{$error_delivery_vat}
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
<label for="st_form-userData-field1">{__ text="Firma"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
<label for="st_form-userData-field3">{__ text="Imię i nazwisko"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_delivery_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span><br>
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_delivery_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span><br>
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
{$label_delivery_region}
|
||||
<div class="st_field">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_delivery_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_code}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
<b>{$label_delivery_country}</b>
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_delivery_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
<div id="showDataEnd" style="float: left; {$show_delivery_style2} {$show_delivery_style3}">
|
||||
<div style="margin-left: 92px;">
|
||||
</div>
|
||||
<div id="st_button-user-edit_data" class="st_button-container" >
|
||||
<div class="st_button st_align-right">
|
||||
<div class="st_button-left">
|
||||
{$save_submit}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{$hidden_delivery_checkbox}
|
||||
{$hidden_style0}
|
||||
{$hidden_style1}
|
||||
{$hidden_style3}
|
||||
{$hidden_delivery_id}
|
||||
{$hidden_billing_id}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
<div id="st_user-edit" class="st_application">
|
||||
<h1 class="st_title">
|
||||
<div id="st_user-tag">
|
||||
{$user_panel_icon}
|
||||
</div>
|
||||
{$my_account} / {$title_sufix}
|
||||
</h1>
|
||||
{$user_panel_menu}
|
||||
<div class="st_content" style="margin-left:90px;">
|
||||
<div class="st_user-edit-data">
|
||||
{$edit_profile_list}
|
||||
<br class="st_clear_all" />
|
||||
<div class="st_button st_align-right" id="st_button_create_billing" style="margin-bottom:10px; margin-right:-2px;">
|
||||
<div class="st_button-left">
|
||||
{$add_new_address}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_user-edit-data">
|
||||
{if isset($show_edit_profile_form)}
|
||||
{$edit_profile_form}
|
||||
{/if}
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,128 @@
|
||||
<div id="st_user-edit_data" class="st_component">
|
||||
{$form_start}
|
||||
<fieldset>
|
||||
{$error_message}
|
||||
{$error_company}
|
||||
{$error_full_name}
|
||||
{$error_address}
|
||||
{$error_address_more}
|
||||
{$error_region}
|
||||
{$error_code}
|
||||
{$error_town}
|
||||
{$error_phone}
|
||||
{$error_vat}
|
||||
|
||||
{if isset($billing_data)}
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane billingowe"}
|
||||
</h5>
|
||||
{else}
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane dostawy"}
|
||||
</h5>
|
||||
{/if}
|
||||
<div id="st_form-user-field1" class="st_row">
|
||||
<label for="st_form-userData-field1">{__ text="Firma"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field3" class="st_row">
|
||||
<label for="st_form-userData-field3">{__ text="Imię i nazwisko"} <sup>[1]</sup></label>
|
||||
<div class="st_field">
|
||||
{$input_full_name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
<b>{$label_address}</b>
|
||||
<div class="st_field">
|
||||
<span>{__ text="np. Nazwa ulicy nr/nr"}</span>
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_address_more}
|
||||
<div class="st_field">
|
||||
<span>{__ text="adres ciąg dalszy"}</span>
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_region==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_region}
|
||||
<div class="st_field">
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field5" class="st_row">
|
||||
<b>{$label_code_town}</b>
|
||||
<div class="st_field">
|
||||
{$input_code}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field6" class="st_row">
|
||||
<b>{$label_country}</b>
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_pesel==1}
|
||||
<div id="st_form-user-field4" class="st_row">
|
||||
{$label_pesel}
|
||||
<div class="st_field">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="st_form-user-field7" class="st_row">
|
||||
<b>{$label_phone}</b>
|
||||
<div class="st_field">
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
{if isset($billing_data)}
|
||||
<div id="st_form-user-field10" class="st_row">
|
||||
{$label_nip}
|
||||
<div class="st_field">
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{$hidden_is_default}
|
||||
{if isset($is_not_default)}
|
||||
<div id="st_form-user-field10" class="st_row" style="margin-left:105px;">
|
||||
{$checkbox_set_as_default}
|
||||
{__ text="Ustaw jako domyślne dane."}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
<span><b>* {__ text="Pola pogrubione są wymagane."}</b></span>
|
||||
</div>
|
||||
<div class="st_field">
|
||||
<span><sup>[1]</sup> <b>{__ text="Jedno z pól jest wymagane."}</b></span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_form-user-field10" class="st_row">
|
||||
<div id="st_button-user-edit_data" class="st_button-container" style="margin-right:17px;">
|
||||
<div class="st_button st_align-right">
|
||||
<div class="st_button-left">
|
||||
{$save_submit}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{$hidden_show_edit_profile_form}
|
||||
{$hidden_uderdata_type}
|
||||
{$hidden_user_data_id}
|
||||
{$hidden_user_data_is_billing}
|
||||
{$hidden_userdata_id}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
{foreach key=row item=userData from=$results}
|
||||
<div id="st_application-user-edit_profil">
|
||||
<div class="{$userData.style}">
|
||||
{if $userData.default eq 1}
|
||||
<div class="field_image1" {$userData.remove_tooltip}>{$userData.remove_image}</div>
|
||||
{else}
|
||||
<div class="field_image1" {$userData.remove_tooltip}>{$userData.remove_image}</div>
|
||||
{/if}
|
||||
<div class="field_image2" {$userData.edit_tooltip}>{$userData.edit_image}</div>
|
||||
{if $userData.default eq 1}
|
||||
<div class="field_image2" {$userData.default_data}>{$userData.default_image}</div>
|
||||
{else}
|
||||
{if $userData.full_name neq "" || $userData.address neq ""}
|
||||
<div class="field_image2" {$userData.make_it_deafult_data}>{$userData.make_it_deafult_image}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $userData.company neq ""}
|
||||
<br class="lowspace" />
|
||||
<span class="lowspace">{$userData.company}<br /></span>
|
||||
{if $userData.has_vat eq 1}
|
||||
<span class="lowspace">{__ text="NIP"} {$userData.vat}<br /></span>
|
||||
{/if}
|
||||
{/if}
|
||||
<br class="lowspace" />
|
||||
<span class="lowspace">{$userData.full_name}<br /></span>
|
||||
<span class="lowspace">{$userData.address} <br /></span>
|
||||
{if ($userData.address_more!="")}
|
||||
<span class="lowspace">{$userData.address_more} <br /></span>
|
||||
{/if}
|
||||
{if ($userData.region!="")}
|
||||
<span class="lowspace">{$userData.region} <br /></span>
|
||||
{/if}
|
||||
<span class="lowspace">{$userData.code} {$userData.town}<br /></span>
|
||||
<span class="lowspace">{$userData.country}<br /></span>
|
||||
{if ($userData.pesel!="")}
|
||||
<span class="lowspace">{__ text="PESEL"} {$userData.pesel}</span><br>
|
||||
{/if}
|
||||
<br>
|
||||
|
||||
{if $userData.phone neq ""}
|
||||
<span class="left">{$userData.phone_image} {$userData.phone} </span>
|
||||
{/if}
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,128 @@
|
||||
<div id="st_application-user-user" class="st_application">
|
||||
<h1 class="st_title">
|
||||
<div id="st_user-tag">
|
||||
{$user_panel_icon}
|
||||
</div>
|
||||
{$my_account}
|
||||
</h1>
|
||||
{$user_panel_menu}
|
||||
<div id="st_application-user-user_tab1">
|
||||
<div class="st_content">
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane billingowe"}
|
||||
</h5>
|
||||
{if isset($has_billing_address)}
|
||||
{if isset($has_billing_company)}
|
||||
<br class="lowspace" />
|
||||
<span class="lowspace">{$billing_company}<br /></span>
|
||||
{else}
|
||||
<br class="lowspace" />
|
||||
<br class="lowspace" />
|
||||
{/if}
|
||||
<span class="lowspace">{$billing_full_name}<br /></span>
|
||||
<span class="lowspace">{$billing_address}<br /></span>
|
||||
{if ($billing_address_more!="")}
|
||||
<span class="lowspace">{$billing_address_more}<br /></span>
|
||||
{/if}
|
||||
{if ($billing_region!="")}
|
||||
<span class="lowspace">{$billing_region}<br /></span>
|
||||
{/if}
|
||||
<span class="lowspace">{$billing_code} {$billing_town}<br /></span>
|
||||
<span class="lowspace">{$billing_country}<br /></span>
|
||||
{if ($billing_pesel!="")}
|
||||
<span class="lowspace">{__ text="PESEL"} {$billing_pesel}<br /></span>
|
||||
{/if}
|
||||
{if isset($has_billing_company)}
|
||||
<span class="lowspace">{__ text="NIP"} {$billing_vat_number}<br /></span>
|
||||
<br class="lowspace" />
|
||||
{else}
|
||||
<br class="lowspace" />
|
||||
<br class="lowspace" />
|
||||
{/if}
|
||||
{if isset($has_billing_phone)}
|
||||
<span>{$phone_icon} {$billing_phone}<br /></span>
|
||||
{else}
|
||||
<br />
|
||||
{/if}
|
||||
<br class="lowspace" />
|
||||
<div class="st_button st_align-left" id="st_button_create_billing">
|
||||
<div class="st_button-left">
|
||||
{$new_billing_address}
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_button st_align-right" id="st_button_edit_billing" style="margin-left:2px;">
|
||||
<div class="st_button-left">
|
||||
{$edit_billing_profile}
|
||||
</div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
{else}
|
||||
{__ text="Brak danych bilingowych, uniemożliwi dokonywanie zakupów. Proszę uzupełnij dane bilingowe."}
|
||||
<br />
|
||||
{$complete_your_data}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_application-user-user_tab2">
|
||||
<div class="st_content">
|
||||
<h5 class="st_title">
|
||||
{__ text="Dane dostawy"}
|
||||
</h5>
|
||||
{if isset($has_delivery_address)}
|
||||
{if isset($has_delivery_company)}
|
||||
<br class="lowspace" />
|
||||
<span class="lowspace">{$delivery_company}<br /></span>
|
||||
{else}
|
||||
<br class="lowspace" />
|
||||
<br class="lowspace" />
|
||||
{/if}
|
||||
<span class="lowspace">{$delivery_full_name}<br /></span>
|
||||
<span class="lowspace">{$delivery_address}<br /></span>
|
||||
{if ($delivery_address_more!="")}
|
||||
<span class="lowspace">{$delivery_address_more}<br /></span>
|
||||
{/if}
|
||||
{if ($delivery_region!="")}
|
||||
<span class="lowspace">{$delivery_region}<br /></span>
|
||||
{/if}
|
||||
<span class="lowspace">{$delivery_code} {$delivery_town}<br /></span>
|
||||
<span class="lowspace">{$delivery_country}<br /></span>
|
||||
<br class="lowspace" />
|
||||
<br class="lowspace" />
|
||||
{if isset($has_delivery_phone)}
|
||||
<span>{$phone_icon} {$delivery_phone}<br /></span>
|
||||
{else}
|
||||
<br />
|
||||
{/if}
|
||||
<br class="lowspace" />
|
||||
<div class="st_button st_align-left" id="st_button_create_delivery">
|
||||
<div class="st_button-left">
|
||||
{$new_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_button st_align-left" id="st_button_edit_delivery" style="margin-left:2px;">
|
||||
<div class="st_button-left">
|
||||
{$edit_delivery_profile}
|
||||
</div>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
{else}
|
||||
{__ text="Brak danych dostawy, uzupełnij swoje dane dostawy aby móc dokonywać zakupów w sklepie."}
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br class="lowspace" />
|
||||
<div class="st_button st_align-left" id="st_button_create_delivery">
|
||||
<div class="st_button-left">
|
||||
{$new_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div id="st_application-user-user_tab3">
|
||||
{$last_orders}
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
<br>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
{foreach key=row item=tab from=$results}
|
||||
{if isset($tab.is_tab)}
|
||||
<li class="st_first{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{elseif isset($tab.is_tab)}
|
||||
<li class="st_last{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{else}
|
||||
<li class="none{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,70 @@
|
||||
<form>
|
||||
<fieldset style="border: none;">
|
||||
<div id="order_form_description" class="roundies box_form">
|
||||
<h3><b>4</b> {__ text="Uwagi do zamówienia"}</h3>
|
||||
<div class="st_field">
|
||||
<label id="order_description_text_label" for="order_description_text">{__ text="Treść uwag"}</label>
|
||||
<textarea id="order_description_text" >{$description}</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div class="clear"></div>
|
||||
{if !$is_authenticated}
|
||||
|
||||
<div id="st_user-basket-login-form">
|
||||
{st_get_component module="stUser" component="basketLoginForm"}
|
||||
</div>
|
||||
|
||||
<form action="{$action}#user_delivery_form" class="st_form_ver6" method="post" id="user_delivery_form">
|
||||
{st_get_component module="stUserData" component="orderForm"}
|
||||
|
||||
{else}
|
||||
|
||||
<form action="{$action}#user_delivery_form" class="st_form_ver6" method="post" id="user_delivery_form">
|
||||
|
||||
|
||||
<div id="order_form_login">
|
||||
|
||||
<div id="order_form_billing" class="roundies box_form left data_frame">
|
||||
<h3><b>5</b> {__ text="Dane płatnika"}</h3>
|
||||
<div id="user_billing_profile_container">{$billing_profiles}</div>
|
||||
<div id="user_billing_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormBilling"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="order_form_delivery" class="roundies box_form right data_frame">
|
||||
<h3><b>6</b> {__ text="Dane wysyłkowe"}</h3>
|
||||
<div id="user_delivery_profile_container">{$delivery_profiles}</div>
|
||||
<div id="user_delivery_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormDelivery"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div id="st_user-order-submit-button">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#order_description_text').click(function(){
|
||||
$('#order_description_text').css("height","55px");
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,5 @@
|
||||
{if $show_profile}
|
||||
<div style="margin: 0px 15px;">
|
||||
{$select_profile}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,390 @@
|
||||
{set layout="one_column_layout"}
|
||||
<div id="st_user-first_register" class="box roundies" >
|
||||
|
||||
<div class="title">
|
||||
<h2>{__ text="Rejestracja"}</h2>
|
||||
<p>{__ text="Podaj dane płatnika i wysyłkowe."}</p>
|
||||
</div>
|
||||
|
||||
<div id="create_account_form" class="st_content">
|
||||
|
||||
{$form_start}
|
||||
|
||||
<div id="create_user_billing" class="roundies frame box_form">
|
||||
<h3>{__ text="Dane płatnika"}</h3>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="left">{$radio_billing_customer_type1} <i class="gray_text">{$label_billing_customer_type1}</i></div>
|
||||
|
||||
<div class="left">{$radio_billing_customer_type2} <i class="gray_text">{$label_billing_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_company}" alt="{$error_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_company}
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_nip!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_nip}" alt="{$error_nip}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_nip}
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_full_name}" alt="{$error_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_full_name}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_address}" alt="{$error_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_address}
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_address_more}
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_region}
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_code_town}" alt="{$error_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_code}
|
||||
{$input_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_town}
|
||||
{$input_town}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_phone}" alt="{$error_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_phone}
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_pesel}
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field left gray_text vertical-align-middle">
|
||||
{$checkbox_delivery}
|
||||
<span >{__ text="Inne dane wysyłkowe"}</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field gray_text vertical-align-middle">
|
||||
<span> * {__ text="Pola wymagane"}</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="create_user_delivery" class="roundies frame box_form">
|
||||
<h3>{__ text="Dane wysyłkowe"}</h3>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="left">{$radio_delivery_customer_type1} <i class="gray_text">{$label_delivery_customer_type1}</i></div>
|
||||
|
||||
<div class="left">{$radio_delivery_customer_type2} <i class="gray_text">{$label_delivery_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_company}" alt="{$error_delivery_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_company}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_full_name}" alt="{$error_delivery_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_full_name}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_address}" alt="{$error_delivery_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_address}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_delivery_address_more}
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_delivery_region}
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_code_town}" alt="{$error_delivery_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field left">
|
||||
{$label_delivery_code}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_delivery_town}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_phone}" alt="{$error_delivery_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_phone}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_row">
|
||||
<div class="st_field gray_text vertical-align-middle">
|
||||
<span> * {__ text="Pola wymagane"}</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="st_button-user-edit_data" class="buttons right">
|
||||
<button type="submit" class="regular roundies" >
|
||||
<span class="arrow_right">{__ text="Zapisz"}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
|
||||
|
||||
{$hidden_delivery_id}
|
||||
{$hidden_billing_id}
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".error_tooltip img[title]").tooltip({
|
||||
effect: 'slide',
|
||||
opacity: 1,
|
||||
position: 'bottom right',
|
||||
offset: [15,4],
|
||||
tipClass: 'alert_tooltip'
|
||||
});
|
||||
|
||||
$("label").inFieldLabels();
|
||||
|
||||
function equalHeight(group)
|
||||
{
|
||||
tallest = 0;
|
||||
group.each(function() {
|
||||
$(this).css("height","auto");
|
||||
thisHeight = $(this).height();
|
||||
if(thisHeight > tallest) {
|
||||
tallest = thisHeight;
|
||||
}
|
||||
});
|
||||
group.height(tallest);
|
||||
}
|
||||
|
||||
function changeCss()
|
||||
{
|
||||
if($('#different_delivery').attr('checked'))
|
||||
{
|
||||
$("#create_user_delivery").show()
|
||||
$('#create_user_billing').css('float','left');
|
||||
$('#create_user_delivery').css('float','right');
|
||||
$('#st_button-user-edit_data').addClass('two_frame').removeClass('one_frame');
|
||||
equalHeight($(".frame"));
|
||||
}else{
|
||||
$("#create_user_delivery").hide();
|
||||
$('#create_user_billing').css('float','none');
|
||||
$('#create_user_delivery').css('float','none');
|
||||
$('#st_button-user-edit_data').addClass('one_frame').removeClass('two_frame');
|
||||
equalHeight($(".frame"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$('#different_delivery').click(function(){
|
||||
changeCss();
|
||||
});
|
||||
|
||||
|
||||
if($('#user_data_delivery_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
}else{
|
||||
$("#company_delivery_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function(){
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery_label").text({/literal}"* {$label_delivery_full_name_text}"{literal});
|
||||
equalHeight($(".frame"));
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function(){
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
equalHeight($(".frame"));
|
||||
});
|
||||
|
||||
|
||||
if($('#user_data_billing_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_fields").show();
|
||||
$("#full_name_label").text({/literal}"{$label_full_name_text}"{literal});
|
||||
}else{
|
||||
$("#company_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function(){
|
||||
$("#company_fields").hide();
|
||||
$("#full_name_label").text({/literal}"* {$label_full_name_text}"{literal});
|
||||
equalHeight($(".frame"));
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function(){
|
||||
$("#company_fields").show();
|
||||
$("#full_name_label").text({/literal}"{$label_full_name_text}"{literal});
|
||||
equalHeight($(".frame"));
|
||||
});
|
||||
|
||||
changeCss();
|
||||
equalHeight($(".frame"));
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,42 @@
|
||||
{set layout="one_column_layout"}
|
||||
<div id="st_user-edit" class="box roundies">
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
<li class="st_first">
|
||||
<a href="/user_data/userPanel">{__ text="Moje konto"}</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="/user/editAccount">{__ text="Moje dane"}</a>
|
||||
</li>
|
||||
<li class="st_selected">
|
||||
<a href="#">{__ text="Edycja danych"}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content">
|
||||
|
||||
{if $show_message}
|
||||
<div class="st_user-edit-data">
|
||||
<p style="color:#fff;text-align:center;background-color:#458B00;"><b>{__ text="Dane zostały zaktualizowane."}</b></p>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<br>
|
||||
|
||||
<div class="st_user-edit-data">
|
||||
{$edit_profile_form}
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
{$edit_profile_list}
|
||||
|
||||
|
||||
<div class="buttons left">
|
||||
<a href="/user_data/createProfile/userDataType/{$user_data_type}" class="regular roundies">{__ text="Dodaj nowy adres"}</a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,223 @@
|
||||
<div id="st_user-edit_data" class="box_form roundies">
|
||||
{if isset($billing_data)}
|
||||
<h3>{__ text="Dane płatnika"}</h3>
|
||||
{else}
|
||||
<h3>{__ text="Dane wysyłkowe"}</h3>
|
||||
{/if}
|
||||
|
||||
{$form_start}
|
||||
<div class="box_form_content">
|
||||
<fieldset>
|
||||
<div class="st_row">
|
||||
<div style="float:left;">{$radio_customer_type1} <i class="gray_text">{$label_customer_type1}</i></div>
|
||||
<div style="float:left;">{$radio_customer_type2} <i class="gray_text">{$label_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="error_tooltip">
|
||||
{if $error_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_company}" alt="{$error_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_company}
|
||||
{$input_company}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_nip!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_nip}" alt="{$error_nip}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field">
|
||||
{$label_nip}
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_full_name}" alt="{$error_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_full_name}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_address}" alt="{$error_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_address}
|
||||
{$input_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_address_more}
|
||||
{$input_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_region}
|
||||
{$input_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_code_town">
|
||||
|
||||
<div class="error_tooltip">
|
||||
{if $error_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_code_town}" alt="{$error_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_code}
|
||||
{$input_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_town}
|
||||
{$input_town}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$select_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_pesel}
|
||||
{$input_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_phone}" alt="{$error_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_phone}
|
||||
{$input_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $is_default!=1}
|
||||
|
||||
<div class="st_row vertical-align-middle gray_text">
|
||||
{$checkbox_set_as_default}
|
||||
<span >{__ text="Ustaw jako domyślne"}</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{else}
|
||||
<div class="st_row vertical-align-middle gray_text">
|
||||
<input type="checkbox" value="1" id="st_form-user-default" name="user_data[isDefault]" disabled="disabled" checked="true">
|
||||
<input type="hidden" value="1" id="st_form-user-default" name="user_data[isDefault]">
|
||||
|
||||
<span >{__ text="Ustaw jako domyślne"}</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field gray_text vertical-align-middle">
|
||||
<span> * {__ text="Pola wymagane"}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
|
||||
<div id="st_button-user-account" class="buttons right">
|
||||
<button type="submit" class="regular roundies" >
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{$hidden_show_edit_profile_form}
|
||||
{$hidden_uderdata_type}
|
||||
{$hidden_user_data_id}
|
||||
{$hidden_user_data_is_billing}
|
||||
{$hidden_userdata_id}
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".error_tooltip img[title]").tooltip({
|
||||
effect: 'slide',
|
||||
opacity: 1,
|
||||
position: 'bottom right',
|
||||
offset: [15,4],
|
||||
tipClass: 'alert_tooltip'
|
||||
});
|
||||
|
||||
$("label").inFieldLabels();
|
||||
|
||||
|
||||
if($('#user_data_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_fields").show();
|
||||
$("#full_name_label").text({/literal}"{$label_full_name_text}"{literal});
|
||||
}else{
|
||||
$("#company_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_customer_type_1').click(function(){
|
||||
$("#company_fields").hide();
|
||||
$("#full_name_label").text({/literal}"* {$label_full_name_text}"{literal});
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_customer_type_2').click(function(){
|
||||
$("#company_fields").show();
|
||||
$("#full_name_label").text({/literal}"{$label_full_name_text}"{literal});
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,93 @@
|
||||
<div style="border-top: 1px solid #CCCCCC; margin: 20px auto; width: 600px;"></div>
|
||||
|
||||
{if $results|@count > 1}
|
||||
<div style="margin: 0 auto; width: 900px;">
|
||||
|
||||
{foreach key=row item=userData from=$results}
|
||||
<div class="profile {$userData.style}" rel="{$userData.make_it_deafult_data}" id="st_application-user-edit_profil">
|
||||
<div style="width: 100%">
|
||||
|
||||
|
||||
{if $userData.is_default=="true"}
|
||||
<div class="field_image2" >
|
||||
<img alt="Default" src="/images/frontend/theme/default2/default.png" width="32">
|
||||
</div>
|
||||
{else}
|
||||
<div class="field_image1 profile_remove_tooltip" >
|
||||
{$userData.remove_image}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div style="padding:10px 50px;" class="profile_tooltip">
|
||||
<div title="{__ text='Edytuj dane'}">
|
||||
|
||||
|
||||
|
||||
{if $userData.company neq ""}
|
||||
|
||||
{$userData.company}
|
||||
<br />
|
||||
|
||||
{if $userData.has_vat eq 1}
|
||||
{$userData.vat}
|
||||
<br />
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<b>{$userData.full_name}</b>
|
||||
<br />
|
||||
|
||||
{$userData.address}
|
||||
<br />
|
||||
|
||||
{if ($userData.address_more!="")}
|
||||
{$userData.address_more}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{if ($userData.region!="")}
|
||||
{$userData.region}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{$userData.code} {$userData.town}
|
||||
<br />
|
||||
|
||||
{$userData.country}
|
||||
<br />
|
||||
|
||||
{if $userData.pesel!=""}
|
||||
{__ text="PESEL"} {$userData.pesel}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{if $userData.phone neq ""}
|
||||
{$userData.phone}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.profile').click(function(){
|
||||
window.location = '/'+$(this).attr('rel');
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
{/if}
|
||||
@@ -0,0 +1,485 @@
|
||||
<div id="order_form">
|
||||
|
||||
<div id="order_form_billing" class="roundies box_form">
|
||||
<h3><b>5</b> {__ text="Dane płatnika"}</h3>
|
||||
|
||||
<div class="box_form_content">
|
||||
{slot name="user_before_order_fieldset_billing" hidden="true"}{/slot}
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div style="float:left;margin-right: 10px;">{$radio_billing_customer_type1} <i class="gray_text">{$label_billing_customer_type1}</i></div>
|
||||
|
||||
<div style="float:left;">{$radio_billing_customer_type2} <i class="gray_text">{$label_billing_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_billing_fields">
|
||||
<div class="st_row row_company">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_company}" alt="{$error_billing_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_company}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_row row_nip">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_vat!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_vat}" alt="{$error_billing_vat}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_nip}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_full_name">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_full_name}" alt="{$error_billing_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_full_name}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_address">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_address}" alt="{$error_billing_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_address}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row row_address_more">
|
||||
<div class="st_field">
|
||||
{$label_billing_address_more}
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row row_region">
|
||||
<div class="st_field">
|
||||
{$label_billing_region}
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_code_town">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_code_town}" alt="{$error_billing_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_billing_code}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_billing_town}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_country">
|
||||
<div class="st_field">
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="st_row row_pesel">
|
||||
<div class="st_field">
|
||||
{$label_billing_pesel}
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_phone">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_phone}" alt="{$error_billing_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_phone}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="st_row row_email">
|
||||
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_email!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_email}" alt="{$error_billing_email}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_billing_email}
|
||||
{$input_billing_email}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="st_row row_email">
|
||||
|
||||
<div class="st_field left gray_text vertical-align-middle">
|
||||
{$checkbox_create_account}
|
||||
<span >{__ text="Załóż konto"}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="account_fields">
|
||||
|
||||
<div class="st_row row_password1">
|
||||
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_password1!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_password1}" alt="{$error_billing_password1}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_password1}
|
||||
{$input_billing_password1}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_password2">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_password2!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_password2}" alt="{$error_billing_password2}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_password2}
|
||||
{$input_billing_password2}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{if $show_invoice_request==1 && $auto_invoice_request!=1}
|
||||
<div class="st_row">
|
||||
<div class="st_field gray_text vertical-align-middle">
|
||||
{$checkbox_invoice}
|
||||
<span >{__ text="Chcę otrzymać fakturę vat"}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_email">
|
||||
|
||||
<div class="st_field left gray_text vertical-align-middle">
|
||||
{$checkbox_different_delivery}
|
||||
<span >{__ text="Inne dane wysyłkowe"}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="order_form_delivery">
|
||||
<h3><b>6</b> {__ text="Dane wysyłkowe"}</h3>
|
||||
|
||||
<div class="box_form_content">
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div style="float:left;">{$radio_delivery_customer_type1} <i class="gray_text">{$label_delivery_customer_type1}</i></div>
|
||||
|
||||
<div style="float:left;">{$radio_delivery_customer_type2} <i class="gray_text">{$label_delivery_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
<div class="st_row row_company">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_company}" alt="{$error_delivery_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_company}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_full_name">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_full_name}" alt="{$error_delivery_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_full_name}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_address">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_address}" alt="{$error_delivery_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_address}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row row_address_more">
|
||||
<div class="st_field">
|
||||
{$label_delivery_address_more}
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row row_region">
|
||||
<div class="st_field">
|
||||
{$label_delivery_region}
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_code_town">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_code_town}" alt="{$error_delivery_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_delivery_code}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_delivery_town}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_country">
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_phone" style="margin-bottom:15px;">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_phone}" alt="{$error_delivery_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_phone}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer_form">
|
||||
<fieldset>
|
||||
{$description}
|
||||
{$under_basket_socket}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field vertical-align-middle {if $error_billing_privacy==1} red {/if}">
|
||||
{$checkbox_privacy}
|
||||
{$link_to_privacy}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{if isset($captcha_on)}
|
||||
<div id="captcha_form" class="st_row">
|
||||
|
||||
|
||||
<div style="margin-bottom: 2px;">
|
||||
{$get_captcha}
|
||||
</div>
|
||||
<div class="error_tooltip">
|
||||
{if $error_captcha!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_captcha}" alt="{$error_captcha}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_captcha}
|
||||
{$input_captcha}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field gray_text vertical-align-middle">
|
||||
<span> * {__ text="Pola wymagane"}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{$hidden_is_authenticated}
|
||||
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".error_tooltip img[title]").tooltip({
|
||||
effect: 'slide',
|
||||
opacity: 1,
|
||||
position: 'bottom right',
|
||||
offset: [15,4],
|
||||
tipClass: 'alert_tooltip'
|
||||
});
|
||||
|
||||
$("#password1_billing").pstrength();
|
||||
|
||||
$("label").inFieldLabels();
|
||||
|
||||
if($('#create_account').attr('checked'))
|
||||
{
|
||||
$("#account_fields").show();
|
||||
}else{
|
||||
$("#account_fields").hide();
|
||||
}
|
||||
|
||||
$('#create_account').click(function(){
|
||||
$("#account_fields").toggle();
|
||||
});
|
||||
|
||||
if($('#different_delivery').attr('checked'))
|
||||
{
|
||||
$("#order_form_delivery").show();
|
||||
}else{
|
||||
$("#order_form_delivery").hide();
|
||||
}
|
||||
|
||||
var countryId = $('#user_data_delivery_country').val();
|
||||
|
||||
stUser.updateAnonymousForms(countryId);
|
||||
|
||||
$('#different_delivery').click(function(){
|
||||
$("#order_form_delivery").toggle();
|
||||
});
|
||||
|
||||
|
||||
if($('#user_data_billing_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing_label").text({/literal}"{$label_billing_full_name_text}"{literal});
|
||||
|
||||
}else{
|
||||
$("#company_billing_fields").hide();
|
||||
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function(){
|
||||
$("#company_billing_fields").hide();
|
||||
$("#full_name_billing_label").text({/literal}"* {$label_billing_full_name_text}"{literal});
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function(){
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing_label").text({/literal}"{$label_billing_full_name_text}"{literal});
|
||||
});
|
||||
|
||||
if($('#user_data_delivery_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
}else{
|
||||
$("#company_delivery_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function(){
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery_label").text({/literal}"* {$label_delivery_full_name_text}"{literal});
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function(){
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
});
|
||||
|
||||
$('#user_data_billing_privacy').click(function(){
|
||||
$("#captcha_form").toggle();
|
||||
});
|
||||
|
||||
if($('#user_data_billing_privacy').attr('checked'))
|
||||
{
|
||||
$("#captcha_form").show()
|
||||
}else{
|
||||
$("#captcha_form").hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_billing_country').change(function() {
|
||||
$('#delivery_country').change();
|
||||
});
|
||||
|
||||
$('#user_data_delivery_country').change(function() {
|
||||
$('#delivery_country').val($(this).val()).change();
|
||||
});
|
||||
|
||||
$("#order_description_text").change(function () {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,296 @@
|
||||
<div class="box_form_content">
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div style="float:left;margin-right: 10px;">{$radio_billing_customer_type1} <i class="gray_text">{$label_billing_customer_type1}</i></div>
|
||||
<div style="float:left;">{$radio_billing_customer_type2} <i class="gray_text">{$label_billing_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
{if $is_authenticated && $external_account}
|
||||
<div id="external_account">
|
||||
<img src="/images/frontend/theme/default2/{$external_account}_icon.png" alt="{$external_account}" />
|
||||
<a href="/user_data/userPanel" name="external_account">{$username}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="company_billing_fields">
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_company}" alt="{$error_billing_company}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field">
|
||||
{$label_billing_company}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_vat!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_vat}" alt="{$error_billing_vat}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field">
|
||||
{$label_billing_nip}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_full_name}" alt="{$error_billing_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_full_name}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_address}" alt="{$error_billing_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_address}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_billing_address_more}
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_billing_region}
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_code_town}" alt="{$error_billing_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="st_field left">
|
||||
{$label_billing_code}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_billing_town}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="st_row">
|
||||
<div class="st_field">
|
||||
{$label_billing_pesel}
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row">
|
||||
<div class="error_tooltip">
|
||||
{if $error_billing_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_billing_phone}" alt="{$error_billing_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_billing_phone}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$description}
|
||||
{$under_basket_socket}
|
||||
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($) {
|
||||
$(document).ready(function () {
|
||||
|
||||
$(".error_tooltip img[title]").tooltip({
|
||||
effect: 'slide',
|
||||
opacity: 1,
|
||||
position: 'bottom right',
|
||||
offset: [15, 4],
|
||||
tipClass: 'alert_tooltip'
|
||||
});
|
||||
|
||||
$("label").inFieldLabels();
|
||||
|
||||
function equalHeight(group) {
|
||||
tallest = 0;
|
||||
group.each(function () {
|
||||
$(this).css("height", "auto");
|
||||
thisHeight = $(this).height();
|
||||
if (thisHeight > tallest) {
|
||||
tallest = thisHeight;
|
||||
}
|
||||
});
|
||||
group.height(tallest);
|
||||
}
|
||||
|
||||
if ($('#user_data_billing_customer_type_2').attr('checked')) {
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing_label").text({/ literal} "{$label_billing_full_name_text}"{ literal });
|
||||
}else {
|
||||
$("#company_billing_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function () {
|
||||
$("#company_billing_fields").hide();
|
||||
$("#full_name_billing_label").text({/ literal}"* {$label_billing_full_name_text}"{ literal });
|
||||
equalHeight($(".data_frame"));
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function () {
|
||||
$("#company_billing_fields").show();
|
||||
$("#full_name_billing_label").text({/ literal}"{$label_billing_full_name_text}"{ literal });
|
||||
equalHeight($(".data_frame"));
|
||||
});
|
||||
|
||||
equalHeight($(".data_frame"));
|
||||
|
||||
$("#billing-company").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#company").val();
|
||||
$(".row_company label").hide();
|
||||
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#company").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#billing-full_name").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#full_name").val();
|
||||
$(".row_full_name label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#full_name").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#billing-address").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#address").val();
|
||||
$(".row_address label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#address").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#billing-address-more").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#address-more").val();
|
||||
$(".row_address-more label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#address-more").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#billing-code").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#code").val();
|
||||
$("#label_code").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#code").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#billing-town").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#town").val();
|
||||
$("#label_town").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#town").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#billing-phone").change(function () {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#phone").val();
|
||||
$(".row_phone label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#phone").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('#user_data_billing_country').change(function () {
|
||||
$('#delivery_country').change();
|
||||
});
|
||||
|
||||
|
||||
$("#order_description_text").change(function () {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,161 @@
|
||||
<div class="box_form_content">
|
||||
|
||||
<fieldset>
|
||||
|
||||
<div class="st_row">
|
||||
<div style="float:left;margin-right: 10px;">{$radio_delivery_customer_type1} <i class="gray_text">{$label_delivery_customer_type1}</i></div>
|
||||
|
||||
<div style="float:left;">{$radio_delivery_customer_type2} <i class="gray_text">{$label_delivery_customer_type2}</i></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
<div class="st_row row_company">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_company!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_company}" alt="{$error_delivery_company}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_company}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_full_name">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_full_name!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_full_name}" alt="{$error_delivery_full_name}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_full_name}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_address">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_address!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_address}" alt="{$error_delivery_address}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_address}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="st_row row_address_more">
|
||||
<div class="st_field">
|
||||
{$label_delivery_address_more}
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="st_row row_region">
|
||||
<div class="st_field">
|
||||
{$label_delivery_region}
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="st_row row_code_town">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_code_town!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_code_town}" alt="{$error_delivery_code_town}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field left">
|
||||
{$label_delivery_code}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
<div class="st_field left" style="margin-left:4px;">
|
||||
{$label_delivery_town}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_country">
|
||||
<div class="st_field">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="st_row row_phone">
|
||||
<div class="error_tooltip">
|
||||
{if $error_delivery_phone!=""}
|
||||
<img src="{image_path image='exclamation.png'}" title="{$error_delivery_phone}" alt="{$error_delivery_phone}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="st_field">
|
||||
{$label_delivery_phone}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
$("label").inFieldLabels();
|
||||
|
||||
function equalHeight(group)
|
||||
{
|
||||
tallest = 0;
|
||||
group.each(function() {
|
||||
$(this).css("height","auto");
|
||||
thisHeight = $(this).height();
|
||||
if(thisHeight > tallest) {
|
||||
tallest = thisHeight;
|
||||
}
|
||||
});
|
||||
group.height(tallest);
|
||||
}
|
||||
|
||||
if($('#user_data_delivery_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
}else{
|
||||
$("#company_delivery_fields").hide();
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function(){
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery_label").text({/literal}"* {$label_delivery_full_name_text}"{literal});
|
||||
equalHeight($(".data_frame"));
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function(){
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery_label").text({/literal}"{$label_delivery_full_name_text}"{literal});
|
||||
equalHeight($(".data_frame"));
|
||||
});
|
||||
|
||||
equalHeight($(".data_frame"));
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#user_data_delivery_country').change(function() {
|
||||
$('#delivery_country').val($(this).val()).change();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,34 @@
|
||||
<select name="user_{$type}_profile" id="user_{$type}_profile">
|
||||
|
||||
{foreach item=profile from=$profiles}
|
||||
{if $profile.id == $selected}
|
||||
<option value="{$profile.id}" selected="selected">{$profile.label}</option>
|
||||
{else}
|
||||
<option value="{$profile.id}">{$profile.label}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
var type = {/literal}'{$type}'{literal};
|
||||
|
||||
|
||||
|
||||
$('#user_'+type+'_profile').change(function() {
|
||||
|
||||
var option = this.options[this.selectedIndex];
|
||||
|
||||
var params = {
|
||||
id: option.value,
|
||||
'type': type
|
||||
};
|
||||
|
||||
$.get('/user_data/ajaxProfileChange', params, function() {}, 'script');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,71 @@
|
||||
{set layout="one_column_layout"}
|
||||
|
||||
<div id="st_application-user-user" class="box roundies">
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
<li class="st_first st_selected"><a href="/user_data/userPanel">{__ text="Moje konto"}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content_frame">
|
||||
|
||||
<div class="img_icons_config">
|
||||
<div class="box_icons_config">
|
||||
<a href="/user/editAccount"><img alt="stUser" src="/images/frontend/theme/default2/user.png" class="qpanel_apps"></a>
|
||||
<div class="font_normal_config">
|
||||
<a href="/user/editAccount"><nobr>{__ text="Moje dane"}</nobr></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $user_order==1}
|
||||
<div class="img_icons_config">
|
||||
<div class="box_icons_config">
|
||||
<a href="/order/list"><img alt="stOrder" src="/images/frontend/theme/default2/order.png" class="qpanel_apps"></a>
|
||||
<div class="font_normal_config">
|
||||
<a href="/order/list"><nobr>{__ text="Zamówienia"}</nobr></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $points_system_is_active == 1}
|
||||
<div class="img_icons_config">
|
||||
<div class="box_icons_config">
|
||||
<a href="/points/list"><img alt="stOrder" src="/images/frontend/theme/default2/points.png" class="qpanel_apps"></a>
|
||||
<div class="font_normal_config">
|
||||
<a href="/points/list"><nobr>{__ text="Punkty"}</nobr></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $config_newsletter.newsletter_enabled != 1}
|
||||
<div class="img_icons_config">
|
||||
<div class="box_icons_config">
|
||||
<a href="/newsletter/newsletterList"><img alt="stNewsletterPlugin" src="/images/frontend/theme/default2/newsletter.png" class="qpanel_apps"></a>
|
||||
<div class="font_normal_config">
|
||||
<a href="/newsletter/newsletterList"><nobr>{__ text="Newsletter"}</nobr></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $user_discounts==1}
|
||||
<div class="img_icons_config">
|
||||
<div class="box_icons_config">
|
||||
<a href="/discount/discountInfo"><img alt="stDiscountPlugin" src="/images/frontend/theme/default2/discount.png" class="qpanel_apps"></a>
|
||||
<div class="font_normal_config">
|
||||
<a href="/discount/discountInfo"><nobr>{__ text="Rabaty"}</nobr></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{slot name="user_panel_ico" hidden="true"}{/slot}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
{foreach key=row item=tab from=$results}
|
||||
{if isset($tab.is_tab)}
|
||||
<li class="st_first{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{elseif isset($tab.is_tab)}
|
||||
<li class="st_last{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{else}
|
||||
<li class="none{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,411 @@
|
||||
|
||||
|
||||
<div id="order_form_billing">
|
||||
<input type="hidden" name="delivery_pickup_point" id="delivery_pickup_point">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{__ text="Dane płatnika"} / {__ text="Zamówienie bez logowania"}</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="panel-billing" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type1}
|
||||
{$label_billing_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type2}
|
||||
{$label_billing_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_billing_fields">
|
||||
<div class="form-group {if $error_billing_company!=''}has-error{/if}">
|
||||
{if $error_billing_company!=""}<label class="control-label" for="company_billing">{$error_billing_company}</label>{/if}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_vat!=''}has-error{/if}">
|
||||
{if $error_billing_vat!=""}<label class="control-label" for="company_billing">{$error_billing_vat}</label>{/if}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_full_name!=''}has-error{/if}">
|
||||
{if $error_billing_full_name!=""}<label class="control-label" for="full_name_billing">{$error_billing_full_name}</label>{/if}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_address!=''}has-error{/if}">
|
||||
{if $error_billing_address!=""}<label class="control-label" for="address_billing">{$error_billing_address}</label>{/if}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
<div class="form-group {if $error_billing_code!=''}has-error{/if}">
|
||||
{if $error_billing_code!=""}<label class="control-label" for="code_billing">{$error_billing_code}</label>{/if}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_billing_town!=''}has-error{/if}">
|
||||
{if $error_billing_town!=""}<label class="control-label" for="town_billing">{$error_billing_town}</label>{/if}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_country!=''}has-error{/if}">
|
||||
{if $error_billing_country!=""}<label class="control-label" for="country_billing">{$error_billing_country}</label>{/if}
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_billing_phone!=''}has-error{/if}">
|
||||
{if $error_billing_phone!=""}<label class="control-label" for="phone_billing">{$error_billing_phone}</label>{/if}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_email!=''}has-error{/if}">
|
||||
{if $error_billing_email!=""}<label class="control-label" for="email_billing">{$error_billing_email}</label>{/if}
|
||||
{$input_billing_email}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_create_account} {__ text="Załóż konto"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="account_fields">
|
||||
<div class="form-group {if $error_billing_password1!=''}has-error{/if}">
|
||||
{if $error_billing_password1!=""}<label class="control-label" for="password1_billing">{$error_billing_password1}</label>{/if}
|
||||
{$input_billing_password1}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_password2!=''}has-error{/if}">
|
||||
{if $error_billing_password2!=""}<label class="control-label" for="password2_billing">{$error_billing_password2}</label>{/if}
|
||||
{$input_billing_password2}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label class="{if $error_billing_privacy==1}checkbox_error{/if}">
|
||||
{$checkbox_privacy} {$link_to_privacy}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $show_invoice_request==1 && $auto_invoice_request!=1}
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_invoice} {__ text="Chcę otrzymać fakturę vat"}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_different_delivery} {__ text="Inne dane wysyłkowe"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="order_form_delivery" class="open panel panel-default">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{__ text="Dane wysyłkowe"}</h3>
|
||||
</div>
|
||||
|
||||
<div id="panel-delivery" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type1}
|
||||
{$label_delivery_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type2}
|
||||
{$label_delivery_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
|
||||
<div class="form-group {if $error_delivery_company!=''}has-error{/if}">
|
||||
{if $error_delivery_company!=""}<label class="control-label" for="company_delivery">{$error_delivery_company}</label>{/if}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_full_name!=''}has-error{/if}">
|
||||
{if $error_delivery_full_name!=""}<label class="control-label" for="full_name_delivery">{$error_delivery_full_name}</label>{/if}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_address!=''}has-error{/if}">
|
||||
{if $error_delivery_address!=""}<label class="control-label" for="address_delivery">{$error_delivery_address}</label>{/if}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_delivery_code!=''}has-error{/if}">
|
||||
{if $error_delivery_code!=""}<label class="control-label" for="code_delivery">{$error_delivery_code}</label>{/if}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
|
||||
<div class="form-group {if $error_delivery_town!=''}has-error{/if}">
|
||||
{if $error_delivery_town!=""}<label class="control-label" for="town_delivery">{$error_delivery_town}</label>{/if}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_country!=''}has-error{/if}">
|
||||
{if $error_delivery_country!=""}<label class="control-label" for="country_delivery">{$error_delivery_country}</label>{/if}
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_delivery_phone!=''}has-error{/if}">
|
||||
{if $error_delivery_phone!=""}<label class="control-label" for="phone_delivery">{$error_delivery_phone}</label>{/if}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="panel-order-form" class="panel-body">
|
||||
|
||||
{$description}
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
<div id="user_data_billing_terms_content" class="checkbox">
|
||||
<label class="{if $error_billing_terms==1}checkbox_error{/if}">
|
||||
{$checkbox_terms} {$terms_shop_text}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($captcha_on)}
|
||||
<div id="captcha_form">
|
||||
|
||||
{if $error_captcha!=""}<div class="has-error"><label class="control-label" for="captcha_img">{$error_captcha}</label></div>{/if}
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="captcha-img {if $error_captcha!=''}has-error{/if}">
|
||||
{$get_captcha}
|
||||
</div>
|
||||
|
||||
<div class="form-group captcha-input {if $error_captcha!=''}has-error{/if}">
|
||||
{$input_captcha}
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$hidden_is_authenticated}
|
||||
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($) {
|
||||
$('#st_form-user-compatibility-opinion, #user_data_billing_terms').attr('required', 'required');
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#password1_billing").pstrength();
|
||||
|
||||
if ($('#create_account').attr('checked')) {
|
||||
$("#account_fields").show();
|
||||
} else {
|
||||
$("#account_fields").hide();
|
||||
}
|
||||
|
||||
$('#create_account').click(function () {
|
||||
$("#account_fields").toggle();
|
||||
});
|
||||
|
||||
if ($('#different_delivery').attr('checked')) {
|
||||
$("#order_form_delivery").show();
|
||||
} else {
|
||||
$("#order_form_delivery").hide();
|
||||
}
|
||||
|
||||
$('#different_delivery').click(function () {
|
||||
$("#order_form_delivery").toggle();
|
||||
});
|
||||
|
||||
var star_placeholder_billing = $("#full_name_billing").attr("placeholder");
|
||||
var no_star_placeholder_billing = star_placeholder_billing.substring(2);
|
||||
|
||||
if ( $( '#user_data_billing_customer_type_2' ).attr( 'checked' ) )
|
||||
{
|
||||
$("#company_billing_fields").show();
|
||||
$("#company_billing_fields input").attr('required', 'required');
|
||||
$('#full_name_billing' ).hide().removeAttr('required');
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#company_billing_fields").hide();
|
||||
$("#company_billing_fields input").removeAttr('required');
|
||||
$('#full_name_billing' ).show().attr('required', 'required');
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function () {
|
||||
$("#company_billing_fields").hide();
|
||||
$("#company_billing_fields input").removeAttr('required');
|
||||
$('#full_name_billing' ).show().attr('required', 'required');
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function () {
|
||||
$("#company_billing_fields").show();
|
||||
$("#company_billing_fields input").attr('required', 'required');
|
||||
$('#full_name_billing' ).hide().removeAttr('required');
|
||||
});
|
||||
|
||||
var star_placeholder_delivery = $("#full_name_delivery").attr("placeholder");
|
||||
var no_star_placeholder_delivery = star_placeholder_delivery.substring(2);
|
||||
|
||||
if ($('#user_data_delivery_customer_type_2').attr('checked')) {
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
} else {
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function () {
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function () {
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
});
|
||||
|
||||
$('#user_data_billing_terms').click(function () {
|
||||
$("#captcha_form").toggle();
|
||||
});
|
||||
|
||||
if ($('#user_data_billing_terms').attr('checked')) {
|
||||
$("#captcha_form").show()
|
||||
} else {
|
||||
$("#captcha_form").hide();
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_billing_country').change(function () {
|
||||
var option = $('#user_data_delivery_country > option:selected').get(0);
|
||||
|
||||
stUser.updateAnonymousForms(option.value, false);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_country').change(function () {
|
||||
|
||||
$('#delivery-country')
|
||||
.data('ignore-billing-update', true)
|
||||
.val($(this).val())
|
||||
.change();
|
||||
|
||||
var isSmoothScrollSupported = 'scrollBehavior' in document.documentElement.style;
|
||||
|
||||
var offset = $('#shopping-cart-delivery').offset();
|
||||
|
||||
var options = {
|
||||
"behavior": "smooth",
|
||||
"top": offset.top - 60
|
||||
};
|
||||
|
||||
if (isSmoothScrollSupported) {
|
||||
// Native smooth scrolling
|
||||
window.scrollTo(options);
|
||||
} else if (window.jQuery && jQuery.scrollTo) {
|
||||
// jQuery scrollTo (you can change to you plugin/realization)
|
||||
$('body').animate({ scrollTop: options.top }, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
$("#order_description_text").change(function () {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,75 @@
|
||||
{if !$is_authenticated}
|
||||
<div class="row">
|
||||
|
||||
<div id="login-form" class="col-sm-6">
|
||||
{st_get_component module="stUser" component="basketLoginForm"}
|
||||
</div>
|
||||
|
||||
<div id="order-form" class="col-sm-6">
|
||||
<form action="{$action}#user_delivery_form" method="post" id="user_delivery_form">
|
||||
{st_get_component module="stUserData" component="orderForm"}
|
||||
|
||||
<div id="order-submit-button">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<br/>
|
||||
</div>
|
||||
{else}
|
||||
|
||||
<form action="{$action}#user_delivery_form" method="post" id="user_delivery_form">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div id="order_form_billing" class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
{__ text="Dane płatnika"}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body ">
|
||||
{if $is_authenticated && $external_account}
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<img style="vertical-align: sub; width: 16px; margin-right:4px;" src="/images/frontend/theme/responsive/{$external_account}_icon.png" alt="{$external_account}" /><a href="/user_data/userPanel" name="external_account">{$username}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{$billing_profiles}
|
||||
<div id="user_billing_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormBilling"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div id="order_form_delivery" class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
{__ text="Dane wysyłkowe"}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{$delivery_profiles}
|
||||
<div id="user_delivery_form_content">
|
||||
{st_get_component module="stUserData" component="orderFormDelivery"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div id="order-submit-button" class="user-authenticated col-xs-12">
|
||||
{st_get_component module="stOrder" component="submitButton"}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<br />
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
@@ -0,0 +1,151 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type1}
|
||||
{$label_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type2}
|
||||
{$label_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="form-group {if $error_company!=''}has-error{/if}">
|
||||
{if $error_company!=""}<label class="control-label" for="company">{$error_company}</label>{/if}
|
||||
{$input_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_nip!=''}has-error{/if}">
|
||||
{if $error_nip!=""}<label class="control-label" for="nip">{$error_nip}</label>{/if}
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_full_name!=''}has-error{/if}">
|
||||
{if $error_full_name!=""}<label class="control-label" for="full_name">{$error_full_name}</label>{/if}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_address!=''}has-error{/if}">
|
||||
{if $error_address!=""}<label class="control-label" for="address">{$error_address}</label>{/if}
|
||||
{$input_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_code!=''}has-error{/if}">
|
||||
{if $error_code!=""}<label class="control-label" for="code">{$error_code}</label>{/if}
|
||||
{$input_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_town!=''}has-error{/if}">
|
||||
{if $error_town!=""}<label class="control-label" for="town">{$error_town}</label>{/if}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_phone!=''}has-error{/if}">
|
||||
{if $error_phone!=""}<label class="control-label" for="phone">{$error_phone}</label>{/if}
|
||||
{$input_phone}
|
||||
</div>
|
||||
|
||||
{if $is_default!=1}
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_set_as_default} {__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-default pull-left" href="{$delete_url}">{__ text="Usuń"}</a>
|
||||
|
||||
{else}
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="1" disabled="disabled" checked="true">
|
||||
<input type="hidden" value="1" id="st_form-user-default" name="user_data[isDefault]">
|
||||
{__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<button type="submit" class="btn btn-primary pull-right" >
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
|
||||
{$hidden_show_edit_profile_form}
|
||||
{$hidden_uderdata_type}
|
||||
{$hidden_user_data_id}
|
||||
{$hidden_user_data_is_billing}
|
||||
{$hidden_userdata_id}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
var star_placeholder = $("#full_name").attr("placeholder");
|
||||
var no_star_placeholder = star_placeholder.substring(2);
|
||||
|
||||
if($('#user_data_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
}else{
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
}
|
||||
|
||||
$('#user_data_customer_type_1').click(function(){
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
});
|
||||
|
||||
$('#user_data_customer_type_2').click(function(){
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,5 @@
|
||||
{if $show_profile}
|
||||
<div style="margin: 0px 15px;">
|
||||
{$select_profile}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,328 @@
|
||||
{set layout="one_column"}
|
||||
{st_get_component module="stUserData" component="responsiveUserPanelMenu" active_tab="1"}
|
||||
<div id="create-first-user-data" >
|
||||
|
||||
{$form_start}
|
||||
<div class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
{__ text="Dane płatnika"}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type1}
|
||||
{$label_billing_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
|
||||
<div class="radio">
|
||||
<label> {$radio_billing_customer_type2}
|
||||
{$label_billing_customer_type2} </label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="form-group {if $error_company!=''}has-error{/if}">
|
||||
{if $error_company!=""}<label class="control-label" for="company">{$error_company}</label>{/if}
|
||||
{$input_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_nip!=''}has-error{/if}">
|
||||
{if $error_nip!=""}<label class="control-label" for="company">{$error_nip}</label>{/if}
|
||||
{$input_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_full_name!=''}has-error{/if}">
|
||||
{if $error_full_name!=""}<label class="control-label" for="full_name">{$error_full_name}</label>{/if}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_address!=''}has-error{/if}">
|
||||
{if $error_address!=""}<label class="control-label" for="address">{$error_address}</label>{/if}
|
||||
{$input_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_code!=''}has-error{/if}">
|
||||
{if $error_code!=""}<label class="control-label" for="code">{$error_code}</label>{/if}
|
||||
{$input_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_town!=''}has-error{/if}">
|
||||
{if $error_town!=""}<label class="control-label" for="town">{$error_town}</label>{/if}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_phone!=''}has-error{/if}">
|
||||
{if $error_phone!=""}<label class="control-label" for="phone">{$error_phone}</label>{/if}
|
||||
{$input_phone}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label> {$checkbox_delivery} {__ text="Inne dane wysyłkowe"} </label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="billing-submit" class="panel-body">
|
||||
<button type="submit" class="btn btn-primary pull-right" >
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="create_user_delivery" class="panel-default">
|
||||
<div class="panel panel-default center-block" style="margin-top: 10px;">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
{__ text="Dane wysyłkowe"}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_delivery_customer_type1}
|
||||
{$label_delivery_customer_type1} </label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_delivery_customer_type2}
|
||||
{$label_delivery_customer_type2} </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields">
|
||||
|
||||
<div class="form-group {if $error_delivery_company!=''}has-error{/if}">
|
||||
{if $error_delivery_company!=""}<label class="control-label" for="company_delivery">{$error_delivery_company}</label>{/if}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_full_name!=''}has-error{/if}">
|
||||
{if $error_delivery_full_name!=""}<label class="control-label" for="full_name_delivery">{$error_delivery_full_name}</label>{/if}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_address!=''}has-error{/if}">
|
||||
{if $error_delivery_address!=""}<label class="control-label" for="address_delivery">{$error_delivery_address}</label>{/if}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_delivery_code!=''}has-error{/if}">
|
||||
{if $error_delivery_code!=""}<label class="control-label" for="code_delivery">{$error_delivery_code}</label>{/if}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_delivery_town!=''}has-error{/if}">
|
||||
{if $error_delivery_town!=""}<label class="control-label" for="town_delivery">{$error_delivery_town}</label>{/if}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_delivery_phone!=''}has-error{/if}">
|
||||
{if $error_delivery_phone!=""}<label class="control-label" for="phone_delivery">{$error_delivery_phone}</label>{/if}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="delivery-submit" class="panel-body">
|
||||
<button type="submit" class="btn btn-primary pull-right" >
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{$hidden_delivery_id}
|
||||
{$hidden_billing_id}
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
if ($('#different_delivery').attr('checked')) {
|
||||
$("#create_user_delivery").show();
|
||||
|
||||
$("#billing-submit").hide();
|
||||
$("#delivery-submit").show();
|
||||
} else {
|
||||
$("#create_user_delivery").hide();
|
||||
|
||||
$("#billing-submit").show();
|
||||
$("#delivery-submit").hide();
|
||||
}
|
||||
|
||||
$('#different_delivery').click(function() {
|
||||
$("#create_user_delivery").toggle();
|
||||
$("#billing-submit").toggle();
|
||||
$("#delivery-submit").toggle();
|
||||
});
|
||||
|
||||
if($("#billing_country").val()!= $("#st_form-user_delivery-country-select").val()){
|
||||
$("#create_user_delivery").toggle();
|
||||
$("#billing-submit").toggle();
|
||||
$("#delivery-submit").toggle();
|
||||
$('#different_delivery').prop('checked', true);
|
||||
$('#different_delivery').attr("disabled", true);
|
||||
}
|
||||
|
||||
$( "#billing_country" ).change(function() {
|
||||
|
||||
if($("#billing_country").val() == $("#st_form-user_delivery-country-select").val()){
|
||||
|
||||
$('#different_delivery').prop('checked', false);
|
||||
$('#different_delivery').attr("disabled", false);
|
||||
|
||||
$("#create_user_delivery").hide();
|
||||
$("#billing-submit").show();
|
||||
$("#delivery-submit").hide();
|
||||
}else{
|
||||
|
||||
$('#different_delivery').prop('checked', true);
|
||||
$('#different_delivery').attr("disabled", true);
|
||||
|
||||
$("#create_user_delivery").show();
|
||||
$("#billing-submit").hide();
|
||||
$("#delivery-submit").show();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var star_placeholder_billing = $("#full_name_billing").attr("placeholder");
|
||||
var no_star_placeholder_billing = star_placeholder_billing.substring(2);
|
||||
|
||||
if ($('#user_data_billing_customer_type_2').attr('checked')) {
|
||||
$("#company_fields").show();
|
||||
$("#full_name_billing").attr("placeholder", no_star_placeholder_billing);
|
||||
} else {
|
||||
$("#company_fields").hide();
|
||||
$("#full_name_billing").attr("placeholder", star_placeholder_billing);
|
||||
}
|
||||
|
||||
$('#user_data_billing_customer_type_1').click(function() {
|
||||
$("#company_fields").hide();
|
||||
$("#full_name_billing").attr("placeholder", star_placeholder_billing);
|
||||
});
|
||||
|
||||
$('#user_data_billing_customer_type_2').click(function() {
|
||||
$("#company_fields").show();
|
||||
$("#full_name_billing").attr("placeholder", no_star_placeholder_billing);
|
||||
});
|
||||
|
||||
|
||||
var star_placeholder_delivery = $("#full_name_delivery").attr("placeholder");
|
||||
var no_star_placeholder_delivery = star_placeholder_delivery.substring(2);
|
||||
|
||||
if ($('#user_data_delivery_customer_type_2').attr('checked')) {
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
} else {
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
}
|
||||
|
||||
$('#user_data_delivery_customer_type_1').click(function() {
|
||||
$("#company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_customer_type_2').click(function() {
|
||||
$("#company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", no_star_placeholder_delivery);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,10 @@
|
||||
{set layout="one_column"}
|
||||
<div class="user-control">
|
||||
{st_get_component module="stUserData" component="responsiveUserPanelMenu" active_tab="51"}
|
||||
|
||||
<div id="edit-profile">
|
||||
|
||||
{$edit_profile_form}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,213 @@
|
||||
<div id="edit-profile-form" class="panel panel-default center-block">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
{if isset($billing_data)}
|
||||
{__ text="Dane płatnika"}
|
||||
{else}
|
||||
{__ text="Dane wysyłkowe"}
|
||||
{/if}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
{if $show_message}
|
||||
<div class="alert alert-success" role="alert">{__ text="Dane zostały zaktualizowane."}</div>
|
||||
{/if}
|
||||
|
||||
{if $show_add!=""}
|
||||
{$edit_profiles}
|
||||
{/if}
|
||||
|
||||
{$form_start}
|
||||
|
||||
|
||||
<div id="user_edit_profile_content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type1}
|
||||
{$label_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_customer_type2}
|
||||
{$label_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_fields">
|
||||
<div class="form-group {if $error_company!=''}has-error{/if}">
|
||||
{if $error_company!=""}<label class="control-label" for="company">{$error_company}</label>{/if}
|
||||
{$input_company}
|
||||
</div>
|
||||
|
||||
{if isset($billing_data)}
|
||||
<div class="form-group {if $error_nip!=''}has-error{/if}">
|
||||
{if $error_nip!=""}<label class="control-label" for="nip">{$error_nip}</label>{/if}
|
||||
{$input_nip}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_full_name!=''}has-error{/if}">
|
||||
{if $error_full_name!=""}<label class="control-label" for="full_name">{$error_full_name}</label>{/if}
|
||||
{$input_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_address!=''}has-error{/if}">
|
||||
{if $error_address!=""}<label class="control-label" for="address">{$error_address}</label>{/if}
|
||||
{$input_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_code!=''}has-error{/if}">
|
||||
{if $error_code!=""}<label class="control-label" for="code">{$error_code}</label>{/if}
|
||||
{$input_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_town!=''}has-error{/if}">
|
||||
{if $error_town!=""}<label class="control-label" for="town">{$error_town}</label>{/if}
|
||||
{$input_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{$select_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_phone!=''}has-error{/if}">
|
||||
{if $error_phone!=""}<label class="control-label" for="phone">{$error_phone}</label>{/if}
|
||||
{$input_phone}
|
||||
</div>
|
||||
|
||||
{if $is_default!=1}
|
||||
|
||||
{if $show_add==""}
|
||||
|
||||
<input id="st_form-user-default" type="hidden" value="1" name="user_data[isDefault]">
|
||||
|
||||
{else}
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_set_as_default} {__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $show_add!=""}
|
||||
<a class="btn btn-default pull-left" href="{$delete_url}">{__ text="Usuń"}</a>
|
||||
{/if}
|
||||
|
||||
{else}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="1" disabled="disabled" checked="true">
|
||||
<input type="hidden" value="1" id="st_form-user-default" name="user_data[isDefault]">
|
||||
{__ text="Ustaw jako domyślne"}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
<button type="submit" class="btn btn-primary pull-right" >
|
||||
{__ text="Zapisz"}
|
||||
</button>
|
||||
|
||||
{$hidden_show_edit_profile_form}
|
||||
{$hidden_uderdata_type}
|
||||
{$hidden_user_data_id}
|
||||
{$hidden_user_data_is_billing}
|
||||
{$hidden_userdata_id}
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="add-user-profile" class="center-block">
|
||||
{if $show_add!=""}
|
||||
{if isset($billing_data)}
|
||||
<a href="/user_data/createProfile/userDataType/billing" class="btn btn-default pull-left">{__ text="Dodaj nowy adres"}</a>
|
||||
{else}
|
||||
<a href="/user_data/createProfile/userDataType/delivery" class="btn btn-default pull-left">{__ text="Dodaj nowy adres"}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($)
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
var star_placeholder = $("#full_name").attr("placeholder");
|
||||
var no_star_placeholder = star_placeholder.substring(2);
|
||||
|
||||
if($('#user_data_customer_type_2').attr('checked'))
|
||||
{
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
}else{
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
}
|
||||
|
||||
$('#user_data_customer_type_1').click(function(){
|
||||
$("#company_fields").hide();
|
||||
$("#full_name").attr("placeholder",star_placeholder);
|
||||
});
|
||||
|
||||
$('#user_data_customer_type_2').click(function(){
|
||||
$("#company_fields").show();
|
||||
$("#full_name").attr("placeholder",no_star_placeholder);
|
||||
});
|
||||
|
||||
$( ".alert" ).addClass( "opacity_alert" );
|
||||
|
||||
setTimeout(function() {
|
||||
$( ".alert" ).addClass( "hidden_alert" );
|
||||
}, 3000);
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,95 @@
|
||||
{if $results|@count > 1}
|
||||
<div class="row" data-equalizer>
|
||||
{foreach key=row item=userData from=$results}
|
||||
<div class="col-sm-4 col-md-4">
|
||||
<div class="panel panel-default{if $userData.is_default=='true'} default-data{/if}">
|
||||
<div class="panel-body" data-equalizer-watch>
|
||||
{if $userData.is_default !== "true"}
|
||||
<div class="action_icon pull-right">
|
||||
<a href="{$userData.remove_url}">
|
||||
<img src="/images/backend/icons/delete.png" alt="" />
|
||||
</a>
|
||||
</div>
|
||||
{else}
|
||||
<div class="action_icon pull-right">
|
||||
<img style="opacity: 0.3;" src="/images/backend/icons/delete.png" alt="" />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="action_icon pull-right profile" rel="{$userData.make_it_deafult_data}">
|
||||
<a href="#">
|
||||
<img src="/images/backend/icons/edit.png" alt="" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
{if $userData.company neq ""}
|
||||
|
||||
{$userData.company}
|
||||
<br />
|
||||
|
||||
{if $userData.has_vat eq 1}
|
||||
{$userData.vat}
|
||||
<br />
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<b>{$userData.full_name}</b>
|
||||
<br />
|
||||
|
||||
{$userData.address}
|
||||
<br />
|
||||
|
||||
{if ($userData.address_more!="")}
|
||||
{$userData.address_more}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{if ($userData.region!="")}
|
||||
{$userData.region}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{$userData.code} {$userData.town}
|
||||
<br />
|
||||
|
||||
{$userData.country}
|
||||
<br />
|
||||
|
||||
{if $userData.pesel!=""}
|
||||
{__ text="PESEL"} {$userData.pesel}
|
||||
<br />
|
||||
{/if}
|
||||
|
||||
{if $userData.phone neq ""}
|
||||
{$userData.phone}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="col-sm-12">
|
||||
<a class="btn btn-default pull-left" style="margin-bottom: 13px;" href="/user_data/createProfile/userDataType/{$user_data_type}">
|
||||
{__ text="Dodaj nowy adres"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.profile').click(function(){
|
||||
window.location = '/'+$(this).attr('rel');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
{else}
|
||||
<div id="add-user-profile" class="center-block">
|
||||
<a href="/user_data/createProfile/userDataType/{$user_data_type}" class="btn btn-default pull-left">{__ text="Dodaj nowy adres"}</a>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,427 @@
|
||||
<div id="order_form_billing">
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><h3 class="panel-title">{__ text="Dane płatnika"} / {__ text="Zamówienie bez logowania"}</h3></div>
|
||||
|
||||
|
||||
<div id="panel-billing" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type1}
|
||||
{$label_billing_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_billing_customer_type2}
|
||||
{$label_billing_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_billing_fields" class="company_billing_fields">
|
||||
<div class="form-group {if $error_billing_company!=''}has-error{/if}">
|
||||
{if $error_billing_company!=""}<label class="control-label" for="company_billing">{$error_billing_company}</label>{/if}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_vat!=''}has-error{/if}">
|
||||
{if $error_billing_vat!=""}<label class="control-label" for="company_billing">{$error_billing_vat}</label>{/if}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_full_name!=''}has-error{/if}">
|
||||
{if $error_billing_full_name!=""}<label class="control-label" for="full_name_billing">{$error_billing_full_name}</label>{/if}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_address!=''}has-error{/if}">
|
||||
{if $error_billing_address!=""}<label class="control-label" for="address_billing">{$error_billing_address}</label>{/if}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
<div class="form-group {if $error_billing_code!=''}has-error{/if}">
|
||||
{if $error_billing_code!=""}<label class="control-label" for="code_billing">{$error_billing_code}</label>{/if}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_billing_town!=''}has-error{/if}">
|
||||
{if $error_billing_town!=""}<label class="control-label" for="town_billing">{$error_billing_town}</label>{/if}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_country!=''}has-error{/if}">
|
||||
{if $error_billing_country!=""}<label class="control-label" for="country_billing">{$error_billing_country}</label>{/if}
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_billing_phone!=''}has-error{/if}">
|
||||
{if $error_billing_phone!=""}<label class="control-label" for="phone_billing">{$error_billing_phone}</label>{/if}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_email!=''}has-error{/if}">
|
||||
{if $error_billing_email!=""}<label class="control-label" for="email_billing">{$error_billing_email}</label>{/if}
|
||||
{$input_billing_email}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_create_account} {__ text="Załóż konto"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="account_fields">
|
||||
<div class="form-group {if $error_billing_password1!=''}has-error{/if}">
|
||||
{if $error_billing_password1!=""}<label class="control-label" for="password1_billing">{$error_billing_password1}</label>{/if}
|
||||
{$input_billing_password1}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_password2!=''}has-error{/if}">
|
||||
{if $error_billing_password2!=""}<label class="control-label" for="password2_billing">{$error_billing_password2}</label>{/if}
|
||||
{$input_billing_password2}
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label class="{if $error_billing_privacy==1}checkbox_error{/if}">
|
||||
{$checkbox_privacy} {$link_to_privacy}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{if $show_invoice_request==1 && $auto_invoice_request!=1}
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_invoice} {__ text="Chcę otrzymać fakturę vat"}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
{$checkbox_different_delivery} {__ text="Inne dane wysyłkowe"}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{$additional_billing_fields}
|
||||
</div>
|
||||
|
||||
<div id="order_form_delivery" class="open panel panel-default">
|
||||
|
||||
<div class="panel-heading"><h3 class="panel-title">{__ text="Dane wysyłkowe"}</h3></div>
|
||||
|
||||
<div id="panel-delivery" class="panel-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type1}
|
||||
{$label_delivery_customer_type1}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
{$radio_delivery_customer_type2}
|
||||
{$label_delivery_customer_type2}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_delivery_fields" class="company_delivery_fields">
|
||||
|
||||
<div class="form-group {if $error_delivery_company!=''}has-error{/if}">
|
||||
{if $error_delivery_company!=""}<label class="control-label" for="company_delivery">{$error_delivery_company}</label>{/if}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_full_name!=''}has-error{/if}">
|
||||
{if $error_delivery_full_name!=""}<label class="control-label" for="full_name_delivery">{$error_delivery_full_name}</label>{/if}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_address!=''}has-error{/if}">
|
||||
{if $error_delivery_address!=""}<label class="control-label" for="address_delivery">{$error_delivery_address}</label>{/if}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_delivery_code!=''}has-error{/if}">
|
||||
{if $error_delivery_code!=""}<label class="control-label" for="code_delivery">{$error_delivery_code}</label>{/if}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
|
||||
<div class="form-group {if $error_delivery_town!=''}has-error{/if}">
|
||||
{if $error_delivery_town!=""}<label class="control-label" for="town_delivery">{$error_delivery_town}</label>{/if}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_country!=''}has-error{/if}">
|
||||
{if $error_delivery_country!=""}<label class="control-label" for="country_delivery">{$error_delivery_country}</label>{/if}
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_delivery_phone!=''}has-error{/if}">
|
||||
{if $error_delivery_phone!=""}<label class="control-label" for="phone_delivery">{$error_delivery_phone}</label>{/if}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
|
||||
{$additional_delivery_fields}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="panel-order-form" class="panel-body">
|
||||
|
||||
{$description}
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
{if $not_professional_purchase_checkbox}
|
||||
<div class="checkbox company_billing_fields">
|
||||
<label>
|
||||
{$not_professional_purchase_checkbox} {__ text="Zakup nie posiada dla mnie charakteru zawodowego." catalogue="stUserData"}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="user_data_billing_terms_content" class="checkbox">
|
||||
<label class="{if $error_billing_terms==1}checkbox_error{/if}">
|
||||
{$checkbox_terms} {$terms_shop_text}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($captcha_on)}
|
||||
|
||||
{if $captcha_mod == "recaptcha3"}
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponse">
|
||||
<div id="recaptcha-badge"></div>
|
||||
{/if}
|
||||
|
||||
{if $captcha_mod == "standart" || $badscore==1}
|
||||
|
||||
<div id="captcha_form">
|
||||
|
||||
{if $error_captcha!=""}<div class="has-error"><label class="control-label" for="captcha_img">{$error_captcha}</label></div>{/if}
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="captcha-img {if $error_captcha!=''}has-error{/if}">
|
||||
{$get_captcha}
|
||||
</div>
|
||||
|
||||
<div class="form-group captcha-input {if $error_captcha!=''}has-error{/if}">
|
||||
{$input_captcha}
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$hidden_is_authenticated}
|
||||
|
||||
{foreach from=$hidden_fields item=value key=name}
|
||||
<input type="hidden" name="{$name}" value="{$value}" id="{$name|id_from_name}">
|
||||
{/foreach}
|
||||
|
||||
{if isset($captcha_on) && $captcha_mod == "recaptcha3" && $badscore!=1}
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=explicit&onload=onRecaptchaLoadCallback"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function onRecaptchaLoadCallback() {
|
||||
var clientId = grecaptcha.render('recaptcha-badge', {
|
||||
'sitekey': '{/literal}{$re_captcha_key}{literal}',
|
||||
'badge': '{/literal}{$re_captcha_badge_position}{literal}',
|
||||
'size': 'invisible'
|
||||
});
|
||||
|
||||
grecaptcha.ready(function() {
|
||||
grecaptcha.execute(clientId, {
|
||||
action: 'user_create_account'
|
||||
})
|
||||
.then(function(token) {
|
||||
var recaptchaResponse = document.getElementById('recaptchaResponse');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
|
||||
$("#recaptcha-badge").css("z-index",100000);
|
||||
$("#recaptcha-badge").css("position","relative");
|
||||
$(".grecaptcha-badge").css("margin-bottom",{/literal}{$re_captcha_badge_margin}{literal});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($) {
|
||||
$(document).ready(function() {
|
||||
$("#password1_billing").pstrength();
|
||||
|
||||
$('#create_account').change(function() {
|
||||
if ($(this).prop('checked')) {
|
||||
$("#account_fields").show();
|
||||
} else {
|
||||
$("#account_fields").hide();
|
||||
}
|
||||
}).change();
|
||||
|
||||
$('#different_delivery').change(function(){
|
||||
if($(this).prop('checked')) {
|
||||
$("#order_form_delivery").show();
|
||||
} else {
|
||||
$("#order_form_delivery").hide();
|
||||
}
|
||||
}).change();
|
||||
const billingFullName = $("#full_name_billing");
|
||||
const starPlaceholderBilling = billingFullName.attr("placeholder");
|
||||
|
||||
$('#user_data_billing_customer_type_2, #user_data_billing_customer_type_1').click(function() {
|
||||
var radio = $(this);
|
||||
|
||||
if (radio.val() == 1) {
|
||||
$(".company_billing_fields").hide();
|
||||
billingFullName.attr("placeholder", starPlaceholderBilling);
|
||||
} else {
|
||||
$(".company_billing_fields").show();
|
||||
if (!billingFullName.hasClass('required')) {
|
||||
billingFullName.attr("placeholder", starPlaceholderBilling.substring(2));
|
||||
}
|
||||
}
|
||||
}).filter(':checked').click();
|
||||
|
||||
var star_placeholder_delivery = $("#full_name_delivery").attr("placeholder");
|
||||
|
||||
$('#user_data_delivery_customer_type_2, #user_data_delivery_customer_type_1').click(function() {
|
||||
var radio = $(this);
|
||||
|
||||
if (radio.val() == 1) {
|
||||
$(".company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
} else {
|
||||
$(".company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery.substring(2));
|
||||
}
|
||||
}).filter(':checked').click();
|
||||
|
||||
$('#user_data_billing_terms').change(function() {
|
||||
if($(this).prop('checked')) {
|
||||
$("#captcha_form").show()
|
||||
} else {
|
||||
$("#captcha_form").hide();
|
||||
}
|
||||
}).change();
|
||||
});
|
||||
|
||||
$('#user_data_billing_country').change(function() {
|
||||
var option = $('#user_data_delivery_country > option:selected').get(0);
|
||||
|
||||
stUser.updateAnonymousForms(option.value, false);
|
||||
});
|
||||
|
||||
$('#user_data_delivery_country').change(function() {
|
||||
|
||||
$('#delivery-country')
|
||||
.data('ignore-billing-update', true)
|
||||
.val($(this).val())
|
||||
.change();
|
||||
|
||||
var isSmoothScrollSupported = 'scrollBehavior' in document.documentElement.style;
|
||||
|
||||
var offset = $('#shopping-cart-delivery').offset();
|
||||
|
||||
var options = {
|
||||
"behavior": "smooth",
|
||||
"top": offset.top - 60
|
||||
};
|
||||
|
||||
if (isSmoothScrollSupported) {
|
||||
// Native smooth scrolling
|
||||
window.scrollTo(options);
|
||||
} else if (window.jQuery && jQuery.scrollTo) {
|
||||
// jQuery scrollTo (you can change to you plugin/realization)
|
||||
$('body').animate({ scrollTop: options.top }, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
$("#order_description_text").change(function () {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,235 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_billing_customer_type1}
|
||||
{$label_billing_customer_type1} </label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_billing_customer_type2}
|
||||
{$label_billing_customer_type2} </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="company_billing_fields" class="company_billing_fields">
|
||||
<div class="form-group {if $error_billing_company!=''}has-error{/if}">
|
||||
{if $error_billing_company!=""}<label class="control-label" for="company_billing">{$error_billing_company}</label>{/if}
|
||||
{$input_billing_company}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_vat!=''}has-error{/if}">
|
||||
{if $error_billing_vat!=""}<label class="control-label" for="company_billing">{$error_billing_vat}</label>{/if}
|
||||
{$input_billing_nip}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_full_name!=''}has-error{/if}">
|
||||
{if $error_billing_full_name!=""}<label class="control-label" for="full_name_billing">{$error_billing_full_name}</label>{/if}
|
||||
{$input_billing_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_address!=''}has-error{/if}">
|
||||
{if $error_billing_address!=""}<label class="control-label" for="address_billing">{$error_billing_address}</label>{/if}
|
||||
{$input_billing_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
<div class="form-group {if $error_billing_code!=''}has-error{/if}">
|
||||
{if $error_billing_code!=""}<label class="control-label" for="code_billing">{$error_billing_code}</label>{/if}
|
||||
{$input_billing_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_billing_town!=''}has-error{/if}">
|
||||
{if $error_billing_town!=""}<label class="control-label" for="town_billing">{$error_billing_town}</label>{/if}
|
||||
{$input_billing_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_billing_country!=''}has-error{/if}">
|
||||
{if $error_billing_country!=""}<label class="control-label" for="country_billing">{$error_billing_country}</label>{/if}
|
||||
{$select_billing_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_billing_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_billing_phone!=''}has-error{/if}">
|
||||
{if $error_billing_phone!=""}<label class="control-label" for="phone_billing">{$error_billing_phone}</label>{/if}
|
||||
{$input_billing_phone}
|
||||
</div>
|
||||
|
||||
{$additional_billing_fields}
|
||||
|
||||
{$description}
|
||||
|
||||
{$under_basket_socket}
|
||||
|
||||
{if $not_professional_purchase_checkbox}
|
||||
<div class="checkbox company_billing_fields">
|
||||
<label>
|
||||
{$not_professional_purchase_checkbox} {__ text="Zakup nie posiada dla mnie charakteru zawodowego." catalogue="stUserData"}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{foreach from=$hidden_fields item=value key=name}
|
||||
<input type="hidden" name="{$name}" value="{$value}" id="{$name|id_from_name}">
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
const billingFullName = $("#full_name_billing");
|
||||
const starPlaceholderBilling = billingFullName.attr("placeholder");
|
||||
|
||||
$('#user_data_billing_customer_type_2, #user_data_billing_customer_type_1').click(function() {
|
||||
var radio = $(this);
|
||||
|
||||
if (radio.val() == 1) {
|
||||
$(".company_billing_fields").hide();
|
||||
billingFullName.attr("placeholder", starPlaceholderBilling);
|
||||
} else {
|
||||
$(".company_billing_fields").show();
|
||||
if (!billingFullName.hasClass('required')) {
|
||||
billingFullName.attr("placeholder", starPlaceholderBilling.substring(2));
|
||||
}
|
||||
}
|
||||
}).filter(':checked').click();
|
||||
|
||||
$("#company_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#company_delivery").val();
|
||||
$(".row_company label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#company_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
billingFullName.change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#full_name_delivery").val();
|
||||
$(".row_full_name label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#full_name_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#address_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#address_delivery").val();
|
||||
$(".row_address label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#address_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#address_more_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#address_more_delivery").val();
|
||||
$(".row_address-more label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#address_more_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#region_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#region_delivery").val();
|
||||
$(".row_address-more label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#region_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#code_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#code_delivery").val();
|
||||
$("#label_code").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#code_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#town_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#town_delivery").val();
|
||||
$("#label_town").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#town_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#phone_billing").change(function() {
|
||||
var word_billing = $(this).get(0).defaultValue;
|
||||
var word_delivery = $("#phone_delivery").val();
|
||||
$(".row_phone label").hide();
|
||||
|
||||
if (word_billing == word_delivery) {
|
||||
$("#phone_delivery").val($(this).val());
|
||||
$(this).get(0).defaultValue = $(this).val();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#order_description_text").change(function() {
|
||||
$("#order_description").val($("#order_description_text").val());
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,130 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_delivery_customer_type1}
|
||||
{$label_delivery_customer_type1} </label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-6">
|
||||
<div class="radio">
|
||||
<label> {$radio_delivery_customer_type2}
|
||||
{$label_delivery_customer_type2} </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="company_delivery_fields" class="company_delivery_fields">
|
||||
|
||||
<div class="form-group {if $error_delivery_company!=''}has-error{/if}">
|
||||
{if $error_delivery_company!=""}<label class="control-label" for="company_delivery">{$error_delivery_company}</label>{/if}
|
||||
{$input_delivery_company}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_full_name!=''}has-error{/if}">
|
||||
{if $error_delivery_full_name!=""}<label class="control-label" for="full_name_delivery">{$error_delivery_full_name}</label>{/if}
|
||||
{$input_delivery_full_name}
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_address!=''}has-error{/if}">
|
||||
{if $error_delivery_address!=""}<label class="control-label" for="address_delivery">{$error_delivery_address}</label>{/if}
|
||||
{$input_delivery_address}
|
||||
</div>
|
||||
|
||||
{if $show_address_more==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_address_more}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $show_region==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_region}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
|
||||
<div class="form-group {if $error_delivery_code!=''}has-error{/if}">
|
||||
{if $error_delivery_code!=""}<label class="control-label" for="code_delivery">{$error_delivery_code}</label>{/if}
|
||||
{$input_delivery_code}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="form-group {if $error_delivery_town!=''}has-error{/if}">
|
||||
{if $error_delivery_town!=""}<label class="control-label" for="town_delivery">{$error_delivery_town}</label>{/if}
|
||||
{$input_delivery_town}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {if $error_delivery_country!=''}has-error{/if}">
|
||||
{if $error_delivery_country!=""}<label class="control-label" for="country_delivery">{$error_delivery_country}</label>{/if}
|
||||
{$select_delivery_country}
|
||||
</div>
|
||||
|
||||
{if $show_pesel==1}
|
||||
<div class="form-group">
|
||||
{$input_delivery_pesel}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group {if $error_delivery_phone!=''}has-error{/if}">
|
||||
{if $error_delivery_phone!=""}<label class="control-label" for="phone_delivery">{$error_delivery_phone}</label>{/if}
|
||||
{$input_delivery_phone}
|
||||
</div>
|
||||
|
||||
{$additional_delivery_fields}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
var star_placeholder_delivery = $("#full_name_delivery").attr("placeholder");
|
||||
|
||||
$('#user_data_delivery_customer_type_2, #user_data_delivery_customer_type_1').click(function() {
|
||||
var radio = $(this);
|
||||
|
||||
if (radio.val() == 1) {
|
||||
$(".company_delivery_fields").hide();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery);
|
||||
} else {
|
||||
$(".company_delivery_fields").show();
|
||||
$("#full_name_delivery").attr("placeholder", star_placeholder_delivery.substring(2));
|
||||
}
|
||||
}).filter(':checked').click();
|
||||
|
||||
});
|
||||
|
||||
$('#user_data_delivery_country').change(function() {
|
||||
|
||||
$('#delivery-country')
|
||||
.data('ignore-billing-update', true)
|
||||
.val($(this).val())
|
||||
.change();
|
||||
|
||||
var isSmoothScrollSupported = 'scrollBehavior' in document.documentElement.style;
|
||||
|
||||
var offset = $('#shopping-cart-delivery').offset();
|
||||
|
||||
var options = {
|
||||
"behavior": "smooth",
|
||||
"top": offset.top - 60
|
||||
};
|
||||
|
||||
if (isSmoothScrollSupported) {
|
||||
// Native smooth scrolling
|
||||
window.scrollTo(options);
|
||||
} else if (window.jQuery && jQuery.scrollTo) {
|
||||
// jQuery scrollTo (you can change to you plugin/realization)
|
||||
$('body').animate({ scrollTop: options.top }, 1000);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,27 @@
|
||||
<select name="user_{$type}_profile" id="user_{$type}_profile" class="form-control">
|
||||
{foreach item=profile from=$profiles}
|
||||
{if $profile.id == $selected}
|
||||
<option value="{$profile.id}" selected="selected">{$profile.label}</option>
|
||||
{else}
|
||||
<option value="{$profile.id}">{$profile.label}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
var type = {/literal}'{$type}'{literal};
|
||||
|
||||
$('#user_' + type + '_profile').change(function() {
|
||||
const select = $(this);
|
||||
|
||||
$.get('/user_data/ajaxProfileChange', {'id': select.val(), 'type': type}, function() {
|
||||
$(document).trigger('delivery.update', true);
|
||||
}, 'script');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{urlfor internal='@stUserData?action=userPanel'}">{__ text="Start"}</a></li>
|
||||
{if $active_tab==1}<li class="active">{__ text="Moje konto"}</li>{/if}
|
||||
{if $active_tab==2}<li class="active">{__ text="Zamówienia"}</li>{/if}
|
||||
{if $active_tab==21}<li><a href="{urlfor internal='@stOrder?action=list'}">{__ text="Zamówienia"}</a></li> <li class="active">{$order_number}</li>{/if}
|
||||
{if $active_tab==3}<li class="active">{__ text="Rabaty"}</li>{/if}
|
||||
{if $active_tab==6}<li class="active">{__ text="Ostatnio oglądane"}</li>{/if}
|
||||
{if $active_tab==4}<li class="active">{__ text="Newsletter"}</li>{/if}
|
||||
{if $active_tab==5}<li class="active">{__ text="Moje dane"}</li>{/if}
|
||||
{if $active_tab==51}<li><a href="{urlfor internal='@stUser?action=editAccount'}">{__ text="Moje dane"}</a></li> <li class="active">{__ text="Edycja danych"}</li>{/if}
|
||||
</ol>
|
||||
<div id="user-panel-login">
|
||||
<a href="{urlfor internal='@stUser?action=editAccount'}">{$user_email}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ul id="user-panel-menu" class="nav nav-tabs" role="tablist">
|
||||
<li {if $active_tab==1}class="active"{/if}><a href="{urlfor internal='@stUserData?action=userPanel'}"><div class="glyphicon glyphicon-th-large visible-xs"></div><span class="hidden-xs">{__ text="Moje konto"}</span></a></li>
|
||||
<li {if $active_tab==2 || $active_tab==21 }class="active"{/if}><a href="{urlfor internal='@stOrder?action=list'}" ><div class="glyphicon glyphicon-list-alt visible-xs"></div><span class="hidden-xs">{__ text="Zamówienia"}</span></a></li>
|
||||
<li {if $active_tab==3}class="active"{/if}><a href="{urlfor internal='@stDiscountPlugin?action=discountInfo'}" ><div class="glyphicon glyphicon-tag visible-xs"></div><span class="hidden-xs">{__ text="Rabaty"}</span></a></li>
|
||||
{if $newsletter_enabled==1}
|
||||
<li {if $active_tab==4}class="active"{/if}><a href="{urlfor internal='@stNewsletterPlugin?action=newsletterList'}" ><div class="glyphicon glyphicon-envelope visible-xs"></div><span class="hidden-xs">{__ text="Newsletter"}</span></a></li>
|
||||
{/if}
|
||||
|
||||
<li {if $active_tab==5 || $active_tab==51 }class="active"{/if}><a href="{urlfor internal='@stUser?action=editAccount'}"><div class="glyphicon glyphicon-pencil visible-xs"></div><span class="hidden-xs">{__ text="Moje dane"}</span></a></li>
|
||||
</ul>
|
||||
@@ -0,0 +1,256 @@
|
||||
{set layout="one_column"}
|
||||
|
||||
<div class="user-control">
|
||||
{st_get_component module="stUserData" component="responsiveUserPanelMenu" active_tab="1"}
|
||||
|
||||
<div id="user-panel">
|
||||
|
||||
{if $last_order}
|
||||
|
||||
<div id="last-order">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<h3>{__ text="Ostatnie zamówienie"}</h3>
|
||||
|
||||
<ul class="list-unstyled">
|
||||
<li>{__ text="Status"}: <span class="last-order-status">{$last_order_status}</span></li>
|
||||
<li>{__ text="Numer zamówienia"}: <b>{$last_order_order_number}</b></li>
|
||||
<li>{__ text="Data złożenia zamówienia"}: <b>{$last_order_created_at}</b></li>
|
||||
<li class="space"></li>
|
||||
<li>{__ text="Wartość koszyka"}: <b>{$last_order_total_product_price}</b></li>
|
||||
<li>{__ text="Dostawa"}: <b>{$last_order_delivery_name}</b> ({$last_order_delivery_cost})</li>
|
||||
<li>{__ text="Razem do zapłaty"}: <b>{$last_order_total_amount}</b></li>
|
||||
<li class="space"></li>
|
||||
<li>{__ text="Metoda płatności"}: <b>{$payment_name}</b></li>
|
||||
<li>{__ text="Opłacone"}: <b>{$is_paid}</b></li>
|
||||
{if $last_show_not_professional_purchase}
|
||||
<li>
|
||||
{__ text="Zakup o charakterze zawodowym" catalogue="stUserData"}:
|
||||
<b>{$last_order_user_data_billing->getNotProfessionalPurchaseLabel()}</b>
|
||||
</li>
|
||||
{/if}
|
||||
{if $last_order_delivery_number}
|
||||
<li>
|
||||
{__ text="Numer przesyłki"}: <b>{$last_order_delivery_number}</b>
|
||||
{if $last_order_delivery_tracking_url}
|
||||
<a href="{$last_order_delivery_tracking_url}" target="_blank"><u>{__ text="Sprawdź status dostawy" catalogue="stDeliveryFrontend"}</u></a>
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
<div class="row product-list" data-equalizer>
|
||||
{foreach key=row item=order_product from=$results}
|
||||
<div class="product col-xs-6 col-sm-3">
|
||||
<div class="thumbnail">
|
||||
<div class="image" data-equalizer-watch="image">{$order_product.photo}</div>
|
||||
<div class="caption text-center" data-equalizer-watch="caption">
|
||||
<h4 class="name">
|
||||
{if isset($order_product.product_name)}{$order_product.product_name}{else}{if isset($order_product.validate)}{$order_product.name_show}{else}{$order_product.name}{/if}{/if}
|
||||
</h4>
|
||||
<div class="text-muted">
|
||||
({if $show_netto_in_basket}{if $order_product.is_item_by_points} - {else}{$order_product.price}{/if}{/if}
|
||||
{if $show_tax_in_basket}{if $order_product.is_item_by_points} - {else}{$order_product.vat} % {/if}{/if}
|
||||
{if $order_product.is_item_by_points} - {else}{$order_product.price_true}{/if}
|
||||
|
||||
{if $points_system_is_active}
|
||||
{if $order_product.is_item_by_points} {$order_product.points_value} {else} - {/if}
|
||||
{/if}
|
||||
x
|
||||
{$order_product.quantity} {$order_product.uom}
|
||||
)
|
||||
</div>
|
||||
<div class="price">
|
||||
{if $order_product.is_item_by_points} {$order_product.points_sum_value} {$points_shortcut} {else} {$order_product.total_amount}{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
{if $last_order_show_payment!=1}
|
||||
<a href="{$last_order_payment_url}" class="btn btn-primary" rel="noindex, nofollow">
|
||||
<span class="glyphicon glyphicon-usd"></span>
|
||||
{__ text="Zapłać" catalogue="stOrder"}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
|
||||
{if $billing_edit_url!="" || $delivery_edit_url!=""}
|
||||
<div class="panel panel-default center-block info-panel">
|
||||
<div class="panel-body text-center">
|
||||
<p>{__ text="Aktualnie nie posiadasz nowych zamówień."}</p>
|
||||
<p class="text-center"><a href="/" class="btn btn-default">{__ text="Wróć do zakupów"}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if $recently_viewed}
|
||||
<h3>{__ text="Ostatnio przeglądane produkty"}</h3>
|
||||
{st_get_component module='stRecentlyViewedProductsFrontend' component='recentlyViewedProducts'}
|
||||
{/if}
|
||||
|
||||
{if $observe_products}
|
||||
<h3>{__ text="Obserwowane produkty"}</h3>
|
||||
{st_get_component module='stProductObserveFrontend' component='listProductObserve'}
|
||||
{/if}
|
||||
|
||||
{if $billing_edit_url=="" || $delivery_edit_url==""}
|
||||
|
||||
<div class="panel panel-default center-block" style="border: 1px solid #e9e9e9;margin-top: 100px;max-width: 50%;">
|
||||
<div class="panel-body">
|
||||
|
||||
<p>{__ text="Witaj w panelu klienta."}<br/>{__ text="Twoje konto jest w pełni aktywne. Wszelkie informacje będą przesyłane na adres"} {$user_email}</p>
|
||||
|
||||
<p class="text-center"><a href="/user_data/createFirstUserData" class="btn btn-default">{__ text="Dodaj dane klienta"}</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
|
||||
<h3>{__ text="Dane klienta"}</h3>
|
||||
|
||||
<div class="row row-first" data-equalizer>
|
||||
<div class="col-sm-4 col-md-4">
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<span class="panel-trigger" >{__ text="Dane konta"}</span>
|
||||
</div>
|
||||
<div class="panel-body" data-equalizer-watch>
|
||||
|
||||
<p>{__ text="Twoje konto jest w pełni aktywne wszelkie informacje będą przesyłane na adres"}</p>
|
||||
<p>{$user_email}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4 col-md-4">
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<span class="panel-trigger" >{__ text="Dane płatnika"}</span>
|
||||
</div>
|
||||
<div class="panel-body" data-equalizer-watch>
|
||||
|
||||
{if $billing_edit_url && $billing_address!=""}
|
||||
|
||||
<a class="edit-btn pull-right" href="{$billing_edit_url}">
|
||||
{__ text="zmień"}
|
||||
</a>
|
||||
{if $billing_company!=""}
|
||||
{__ text="Dane do faktury"}
|
||||
<br/>
|
||||
{$billing_company}
|
||||
<br/>
|
||||
{$billing_vat_number}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
<b>{$billing_full_name}</b>
|
||||
<br/>
|
||||
|
||||
{$billing_address}
|
||||
<br/>
|
||||
|
||||
{if $billing_address_more!=""}
|
||||
{$billing_address_more}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
{if $billing_region!=""}
|
||||
{$billing_region}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
{$billing_code}
|
||||
{$billing_town}
|
||||
<br/>
|
||||
|
||||
{$billing_country}
|
||||
<br/>
|
||||
{$billing_phone}
|
||||
<br/>
|
||||
|
||||
{else}
|
||||
|
||||
<a class="btn btn-default pull-right" href="/user_data/createFirstUserDataBilling">{__ text="Dodaj dane billingowe"}</a>
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4 col-md-4">
|
||||
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<span class="panel-trigger" >{__ text="Dane wysyłkowe"}</span>
|
||||
</div>
|
||||
<div class="panel-body" data-equalizer-watch>
|
||||
|
||||
{if $delivery_edit_url && $delivery_address!=""}
|
||||
|
||||
<a class="edit-btn pull-right" href="{$delivery_edit_url}">
|
||||
{__ text="zmień"}
|
||||
</a>
|
||||
|
||||
{if $delivery_company!=""}
|
||||
{$delivery_company}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
<b>{$delivery_full_name}</b>
|
||||
<br/>
|
||||
|
||||
{$delivery_address}
|
||||
<br/>
|
||||
|
||||
{if $delivery_address_more!=""}
|
||||
{$delivery_address_more}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
{if $delivery_region!=""}
|
||||
{$delivery_region}
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
{$delivery_code}
|
||||
{$delivery_town}
|
||||
<br/>
|
||||
|
||||
{$delivery_country}
|
||||
<br/>
|
||||
{$delivery_phone}
|
||||
<br/>
|
||||
|
||||
{else}
|
||||
|
||||
<a class="btn btn-default pull-right" href="/user_data/createFirstUserDataDelivery">{__ text="Dodaj dane dostawy"}</a>
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
{foreach key=row item=tab from=$results}
|
||||
{if isset($tab.is_tab)}
|
||||
<li class="st_first{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{elseif isset($tab.is_tab)}
|
||||
<li class="st_last{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{else}
|
||||
<li class="none{$tab.selected_tab}">{$tab.link_to_module}</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
229
apps/frontend/modules/stUserData/templates/userPanelSuccess.php
Normal file
229
apps/frontend/modules/stUserData/templates/userPanelSuccess.php
Normal file
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
use_helper('Validation', 'stUrl', 'stOrder', 'stProductOptions', 'stProductImage', 'stDelivery');
|
||||
|
||||
sfLoader::loadHelpers('stProduct', 'stProduct');
|
||||
|
||||
st_theme_use_stylesheet('stUser.css');
|
||||
|
||||
$smarty->assign('config_newsletter', $newsletterConfig);
|
||||
$smarty->assign('points_system_is_active', stPoints::isPointsSystemActive());
|
||||
$smarty->assign('user_panel_icon', st_theme_image_tag('user_panel_icon.png'));
|
||||
$smarty->assign('my_account', link_to(__('Moje konto'), 'stUserData/userPanel'));
|
||||
$smarty->assign('user_panel_menu', st_get_component('stUserData', 'userPanelMenu'));
|
||||
$smarty->assign('user_email', sfContext::getInstance()->getUser()->getUsername());
|
||||
|
||||
$smarty->assign('user_discounts', $user_discounts);
|
||||
|
||||
if (isset($user_order)) {
|
||||
$smarty->assign('user_order', $user_order);
|
||||
}
|
||||
|
||||
if ($userDataBilling) {
|
||||
|
||||
$smarty->assign('billing_company', $userDataBilling->getCompany());
|
||||
$smarty->assign('billing_vat_number', $userDataBilling->getVatNumber());
|
||||
$smarty->assign('billing_full_name', $userDataBilling->getFullName());
|
||||
$smarty->assign('billing_address', $userDataBilling->getAddress());
|
||||
$smarty->assign('billing_address_more', $userDataBilling->getAddressMore());
|
||||
$smarty->assign('billing_region', $userDataBilling->getRegion());
|
||||
$smarty->assign('billing_code', $userDataBilling->getCode());
|
||||
$smarty->assign('billing_town', $userDataBilling->getTown());
|
||||
$smarty->assign('billing_country', $userDataBilling->getCountries());
|
||||
$smarty->assign('billing_phone', $userDataBilling->getPhone());
|
||||
$smarty->assign('billing_pesel', $userDataBilling->getPesel());
|
||||
|
||||
$billing_edit_url = st_url_for('stUserData/editProfile?userDataType=billing&userDataId=' . $userDataBilling->getId() . '&showEditProfileForm=true');
|
||||
|
||||
if ($userDataBilling->getAddress() != "") {
|
||||
$smarty->assign('billing_edit_url', $billing_edit_url);
|
||||
} else {
|
||||
$smarty->assign('billing_edit_url', "");
|
||||
}
|
||||
}
|
||||
|
||||
if ($userDataDelivery) {
|
||||
$smarty->assign('delivery_company', $userDataDelivery->getCompany());
|
||||
$smarty->assign('delivery_full_name', $userDataDelivery->getFullName());
|
||||
$smarty->assign('delivery_address', $userDataDelivery->getAddress());
|
||||
$smarty->assign('delivery_address_more', $userDataDelivery->getAddressMore());
|
||||
$smarty->assign('delivery_region', $userDataDelivery->getRegion());
|
||||
$smarty->assign('delivery_code', $userDataDelivery->getCode());
|
||||
$smarty->assign('delivery_town', $userDataDelivery->getTown());
|
||||
$smarty->assign('delivery_country', $userDataDelivery->getCountries());
|
||||
$smarty->assign('delivery_phone', $userDataDelivery->getPhone());
|
||||
|
||||
$delivery_edit_url = st_url_for('stUserData/editProfile?userDataType=delivery&userDataId=' . $userDataDelivery->getId() . '&showEditProfileForm=true');
|
||||
|
||||
if ($userDataDelivery->getAddress() != "") {
|
||||
$smarty->assign('delivery_edit_url', $delivery_edit_url);
|
||||
} else {
|
||||
$smarty->assign('delivery_edit_url', "");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$results = array();
|
||||
|
||||
if (isset($orders)) {
|
||||
foreach ($orders as $order) {
|
||||
|
||||
//print_r($orders);
|
||||
|
||||
if ($order->getIsConfirmed() == 0 && $order->getOrderStatusId() == 1) {
|
||||
|
||||
} else {
|
||||
|
||||
$row['number'] = link_to($order->getNumber(), '@stOrderListShowForUser?id=' . $order->getId() . '&hash_code=' . $order->getHashCode());
|
||||
|
||||
|
||||
$created_at = explode(" ", $order->getCreatedAt());
|
||||
$date = explode("-", $created_at[0]);
|
||||
|
||||
$row['created_at'] = $date[2] . "-" . $date[1] . "-" . $date[0];
|
||||
|
||||
$row['status'] = st_order_status_frontend($order->getOrderStatus());
|
||||
|
||||
$row['total_amount'] = st_order_total_amount($order);
|
||||
|
||||
$row['is_paid'] = $order->getIsPayed() ? "<span class='green'>" . __('tak') . "</span>" : "<span class=''>" . __('nie') . "</span>";
|
||||
|
||||
if ($order->getIsConfirmed() == 1) {
|
||||
|
||||
$row['is_confirmed'] = "<span class='green'>" . __('tak') . "</span>";
|
||||
|
||||
$row['is_confirmed_orders'] = 1;
|
||||
|
||||
$smarty->assign('confirmed_orders', 1);
|
||||
|
||||
} else {
|
||||
|
||||
$row['is_confirmed'] = link_to(__('potwierdź'), '@stOrderConfirmForUser?id=' . $order->getId() . '&hash_code=' . $order->getHashCode() . '®ister=0' . '&cancel=0', array("class" => "green")) . " / " . link_to(__('anuluj'), '@stOrderConfirmForUser?id=' . $order->getId() . '&hash_code=' . $order->getHashCode() . '®ister=0' . '&cancel=1', array("class" => "red"));
|
||||
|
||||
$row['is_confirmed_orders'] = 0;
|
||||
|
||||
$smarty->assign('unconfirmed_orders', 1);
|
||||
|
||||
}
|
||||
|
||||
$row['review'] = st_get_component('stReview', 'addReviewList', array('order' => $order, 'smarty' => $smarty, 'results' => $results));
|
||||
|
||||
$row['invoice'] = st_get_component('stInvoicePdf', 'orderInvoice', array('order' => $order));
|
||||
|
||||
$results[] = $row;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign('results', $results);
|
||||
|
||||
|
||||
if (isset($lastOrder) && $lastOrder) {
|
||||
|
||||
$smarty->assign('last_order', $lastOrder);
|
||||
$smarty->assign('last_order_order_number', $lastOrder->getNumber());
|
||||
$smarty->assign('last_order_status', st_order_status_frontend($lastOrder->getOrderStatus()));
|
||||
$created_at = explode(" ", $lastOrder->getCreatedAt());
|
||||
$date = explode("-", $created_at[0]);
|
||||
$smarty->assign('last_order_created_at', $date[2] . "-" . $date[1] . "-" . $date[0] . " " . $created_at[1]);
|
||||
|
||||
$results = array();
|
||||
|
||||
foreach ($lastOrder->getOrderProducts() as $order_product) {
|
||||
$row['code'] = $order_product->getCode();
|
||||
|
||||
$row['validate'] = $order_product->productValidate();
|
||||
|
||||
if ($row['validate']) {
|
||||
$row['photo'] = st_link_to(st_product_image_tag($order_product, 'thumb'), 'stProduct/show?url=' . $order_product->getProduct()->getFriendlyUrl());
|
||||
} else {
|
||||
$row['photo'] = st_product_image_tag(null, 'thumb');
|
||||
}
|
||||
|
||||
if ($order_product->productValidate()) {
|
||||
$row['name_show'] = st_link_to($order_product->getName(), 'stProduct/show?url=' . $order_product->getProduct()->getFriendlyUrl());
|
||||
} else {
|
||||
$row['name_show'] = $order_product->getName();
|
||||
}
|
||||
|
||||
if ($order_product->hasPriceModifiers()) {
|
||||
$row['name_show'] = content_tag('div', $row['name_show'], array('class' => 'st_product_name_with_options')) . st_product_options_get_view($order_product);
|
||||
}
|
||||
|
||||
$row['price'] = st_order_price_format($order_product->getPriceNetto(true), $currency);
|
||||
|
||||
$row['vat'] = $order_product->getVat();
|
||||
|
||||
$row['price_true'] = st_order_price_format($order_product->getPriceBrutto(true), $currency);
|
||||
|
||||
if ($order_product->getPointsValue() * $order_product->getQuantity() == 0) {
|
||||
$row['points_value'] = "";
|
||||
$row['points_sum_value'] = "";
|
||||
} else {
|
||||
$row['points_value'] = $order_product->getPointsValue();
|
||||
$row['points_sum_value'] = $order_product->getPointsValue() * $order_product->getQuantity();
|
||||
}
|
||||
|
||||
$row['is_item_by_points'] = $order_product->getProductForPoints();
|
||||
|
||||
if ($order_product->getProductForPoints()) {
|
||||
$points_value += $order_product->getPointsValue() * $order_product->getQuantity();
|
||||
}
|
||||
|
||||
$row['quantity'] = $order_product->getQuantity();
|
||||
|
||||
$row['uom'] = st_product_uom($order_product->getProduct());
|
||||
|
||||
$total_amount = $order_product->getTotalAmount(true, true);
|
||||
|
||||
$row['total_amount'] = st_order_price_format($total_amount, $currency);
|
||||
|
||||
$results[] = $row;
|
||||
}
|
||||
|
||||
$smarty->assign('results', $results);
|
||||
|
||||
$smarty->assign('last_order_total_product_price', st_order_product_total_amount($lastOrder));
|
||||
|
||||
$smarty->assign('last_order_delivery_number', $lastOrder->getOrderDelivery()->getNumber());
|
||||
|
||||
$smarty->assign('last_order_delivery_name', $lastOrder->getOrderDelivery()->getName());
|
||||
|
||||
$smarty->assign('last_order_delivery_cost', st_order_price($lastOrder->getOrderDelivery()->getCost(true), $currency));
|
||||
|
||||
$smarty->assign('last_order_total_amount', st_order_total_amount($lastOrder));
|
||||
|
||||
$smarty->assign('last_show_not_professional_purchase', stConfig::getInstance('stOrder')->get('show_not_professional_purchase') && !empty($lastOrder->getOrderUserDataBilling()->getCompany()));
|
||||
|
||||
$smarty->assign('last_order', $lastOrder);
|
||||
|
||||
$smarty->assign('last_order_user_data_billing', $lastOrder->getOrderUserDataBilling());
|
||||
|
||||
$smarty->assign('last_order_user_data_delivery', $lastOrder->getOrderUserDataDelivery());
|
||||
|
||||
if ($lastOrder->getOrderPayment() && $lastOrder->getOrderPayment()->getPaymentType()) {
|
||||
$smarty->assign('payment_name', $lastOrder->getOrderPayment()->getPaymentType()->getName());
|
||||
}
|
||||
|
||||
$smarty->assign('is_paid', $lastOrder->getIsPayed() ? __('tak') : __('nie'));
|
||||
|
||||
$smarty->assign('last_order_show_payment', !$lastOrder->showPayment());
|
||||
$smarty->assign('last_order_payment_url', st_url_for('@stPaymentPay?id='.$lastOrder->getId().'&hash_code='.$lastOrder->getHashCode()));
|
||||
$smarty->assign('last_order_delivery_tracking_url', $lastOrder->getOrderDelivery()->getTrackingUrl());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(stProductObservePluginListener::getObserveProducts()){
|
||||
$smarty->assign('observe_products', true);
|
||||
}
|
||||
|
||||
if(stRecentlyViewedProductsPluginListener::getRecentlyViewedProducts()){
|
||||
$smarty->assign('recently_viewed', true);
|
||||
}
|
||||
|
||||
$smarty->display('userdata_user_panel.html');
|
||||
Reference in New Issue
Block a user