first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_additional_marketplace_method">
<option value="allegro_auction_additional_marketplace_add">{l s='Aktywuj widoczność na rynkach zagranicznych' mod='x13allegro'}</option>
<option value="allegro_auction_additional_marketplace_delete">{l s='Usuń widoczność z rynków zagranicznych' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Rynki zagraniczne' mod='x13allegro'}
</label>
<div class="col-lg-9">
{foreach $data.marketplaces as $marketplace}
{if $marketplace.id == $data.baseMarketplace}
{continue}
{/if}
<p class="checkbox clearfix">
<label for="allegro_auction_additional_marketplace_{$marketplace.id}">
<input type="checkbox" id="allegro_auction_additional_marketplace_{$marketplace.id}" name="allegro_auction_additional_marketplace[]" value="{$marketplace.id}">
{$marketplace.name|regex_replace:"/^(\w+)/u":"<b>$1</b>"}{if $marketplace.id != $data.baseMarketplace}&nbsp;&nbsp;
<i>({l s='kurs wymiany waluty' mod='x13allegro'}: {$marketplace.currencyConversionRate} {$data.marketplaces[$data.baseMarketplace].currencyIso})</i>{/if}
</label>
</p>
{/foreach}
</div>
</div>

View File

@@ -0,0 +1,42 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_additional_service_mode">
<option value="1" selected="selected">{l s='przypisz dodatkowe usługi' mod='x13allegro'}</option>
<option value="0">{l s='usuń dodatkowe usługi' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Grupa dodatkowych usług' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if !empty($data.additionalServices)}
<input type="hidden" name="allegro_additional_service_name" value="{$data.additionalServices[0]->name}">
<select name="allegro_additional_service">
{foreach $data.additionalServices as $additionalService}
<option value="{$additionalService->id}">{$additionalService->name}</option>
{/foreach}
</select>
{else}
{l s='Brak skonfigurowanych dodatkowych usług' mod='x13allegro'}
{/if}
</div>
</div>
<script>
$(document).on('change', '[name="allegro_additional_service_mode"]', function () {
if (parseInt($(this).val()) === 1) {
$('select[name="allegro_additional_service"]').parents('.form-group').show();
} else {
$('select[name="allegro_additional_service"]').parents('.form-group').hide();
}
});
$(document).on('change', '[name="allegro_additional_service"]', function () {
$('input[name="allegro_additional_service_name"]').val($(this).find('option:selected').text());
});
</script>

View File

@@ -0,0 +1,42 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Warunki zwrotów' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_return_policy">
<option value="0">{l s='nie zmieniaj' mod='x13allegro'}</option>
{foreach $data.returnPolicies as $returnPolicies}
<option value="{$returnPolicies->id}" {if $returnPolicies->id == $data.defaultReturnPolicies}selected="selected"{/if}>{$returnPolicies->name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Reklamacje' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_implied_warranty">
<option value="0">{l s='nie zmieniaj' mod='x13allegro'}</option>
{foreach $data.impliedWarranties as $impliedWarranties}
<option value="{$impliedWarranties->id}" {if $impliedWarranties->id == $data.defaultImpliedWarranties}selected="selected"{/if}>{$impliedWarranties->name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Gwarancje' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})
</label>
<div class="col-lg-9">
<select name="allegro_warranty">
<option value="0">{l s='nie zmieniaj' mod='x13allegro'}</option>
{foreach $data.warranties as $warranties}
<option value="{$warranties->id}" {if $warranties->id == $data.defaultWarranties}selected="selected"{/if}>{$warranties->name}</option>
{/foreach}
<option value="-1">{l s='usuń gwarancję' mod='x13allegro'}</option>
</select>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="form-group row">
<div class="col-lg-12">
<div class="checkbox">
<label>
<input type="checkbox" name="allegro_skip_if_exists" type="checkbox" value="1" checked>
{$data.title}
</label>
{if $data.description}
<p class="help-block">
{$data.description nofilter}
</p>
{/if}
</div>
</div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="row">
<div class="col-lg-12">
<div class="alert alert-{$data.class}">
{$data.message}
</div>
</div>
</div>

View File

@@ -0,0 +1,97 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda wyszukiwania powiązania w PrestaShop' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_bind_method">
<option value="auto">{l s='szukaj automatycznie (kolejno po wszystkich dostępnych metodach powiązania)' mod='x13allegro'}</option>
<option value="select">{l s='wybierz metody powiązania ręcznie' mod='x13allegro'}</option>
</select>
</div>
</div>
<div id="allegro_bind_method_auto" class="form-group row">
<div class="col-lg-12">
<div class="alert alert-info">
{l s='Wyszukuje powiązania kolejno według' mod='x13allegro'}:
<ul>
<li>
{l s='parametr EAN' mod='x13allegro'}
<br><small><i>- {l s='EAN-13 w PrestaShop' mod='x13allegro'}</i></small>
</li>
<li>
{l s='parametr ISBN/ISSN' mod='x13allegro'}
<br><small><i>- {l s='ISBN w PrestaShop' mod='x13allegro'}</i></small>
</li>
<li>
{l s='parametr MPN' mod='x13allegro'}
<br><small><i>- {l s='bazuje na parametrach "Kod producenta", "Numer katalogowy", "Numer katalogowy producenta", "Numer katalogowy części"' mod='x13allegro'}</i></small>
<br><small><i>- {l s='Kod referencyjnny (indeks) i MPN w PrestaShop' mod='x13allegro'}</i></small>
</li>
<li>
{l s='sygnatura oferty (external.id)' mod='x13allegro'}
{if $data.externalId}
<br><small><i>- {l s='%s w PrestaShop' sprintf=[$data.externalId] mod='x13allegro'}</i></small>
{else}
<br><small><i>- {l s='brak wybranego powiązania sygnatury oferty w konfiguracji modułu' mod='x13allegro'}</i></small>
{/if}
</li>
</ul>
</div>
</div>
</div>
<div id="allegro_bind_method_select" class="form-group row" style="display: none;">
<label class="control-label col-lg-3">
{l s='Wyszukaj powiązania w PrestaShop według' mod='x13allegro'}
</label>
<div class="col-lg-9">
<p class="checkbox clearfix">
<label for="allegro_bind_ean13">
<input type="checkbox" id="allegro_bind_ean13" name="allegro_bind_field[]" value="ean13">
{l s='parametr EAN' mod='x13allegro'}
<span class="help-block" style="margin: 0;">{l s='wyszukuje według EAN-13 w PrestaShop' mod='x13allegro'}</span>
</label>
</p>
<p class="checkbox clearfix">
<label for="allegro_bind_isbn">
<input type="checkbox" id="allegro_bind_isbn" name="allegro_bind_field[]" value="isbn" {if version_compare($smarty.const._PS_VERSION_, '1.7.0.0', '<')}disabled="disabled"{/if}>
{l s='parametr ISBN/ISSN' mod='x13allegro'}
<span class="help-block" style="margin: 0;">
{l s='wyszukuje według ISBN w PrestaShop' mod='x13allegro'}
{if version_compare($smarty.const._PS_VERSION_, '1.7.0.0', '<')}({l s='dostępne od PrestaShop 1.7' mod='x13allegro'}){/if}
</span>
</label>
</p>
<p class="checkbox clearfix">
<label for="allegro_bind_reference">
<input type="checkbox" id="allegro_bind_reference" name="allegro_bind_field[]" value="mpn">
{l s='parametr MPN' mod='x13allegro'}
<span class="help-block" style="margin: 0;">{l s='bazuje na parametrach "Kod producenta", "Numer katalogowy", "Numer katalogowy producenta", "Numer katalogowy części"' mod='x13allegro'}</span>
<span class="help-block" style="margin: 0;">{l s='wyszukuje według Kodu referencyjnego (indeks) i MPN w PrestaShop' mod='x13allegro'}</span>
</label>
</p>
<p class="checkbox clearfix">
<label for="allegro_bind_external">
<input type="checkbox" id="allegro_bind_external" name="allegro_bind_field[]" value="external" {if !$data.externalId}disabled="disabled"{/if}>
{l s='sygnatura oferty (external.id)' mod='x13allegro'}
{if $data.externalId}
<span class="help-block" style="margin: 0;">{l s='wyszukuje według %s w PrestaShop' sprintf=[$data.externalId] mod='x13allegro'}</span>
{else}
<span class="help-block" style="margin: 0;">{l s='brak wybranego powiązania sygnatury oferty w konfiguracji modułu' mod='x13allegro'}</span>
{/if}
</label>
</p>
</div>
</div>
<script>
$(document).on('change', '[name="allegro_bind_method"]', function () {
if ($(this).val() === 'select') {
$('#allegro_bind_method_auto').hide();
$('#allegro_bind_method_select').show();
}
else {
$('#allegro_bind_method_auto').show();
$('#allegro_bind_method_select').hide();
}
});
</script>

View File

@@ -0,0 +1,181 @@
{if empty($data.accounts)}
<div class="alert alert-info">
{l s='Nie posiadasz kont Allegro na które można skopiować wybrane oferty' mod='x13allegro'}
</div>
{else}
<div class="form-group row">
<label for="allegro_copy_to_account" class="control-label col-lg-3">
{l s='Wybierz konto docelowe' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_copy_to_account" name="allegro_copy_to_account">
<option value="0">{l s='-- wybierz konto --' mod='x13allegro'}</option>
{foreach $data.accounts as $account}
<option value="{$account.accountId}">{$account.accountName}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row" style="display: none;">
<label for="allegro_copy_delivery_profile" class="control-label col-lg-3">
{l s='Profil dostawy' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_copy_delivery_profile" name="allegro_copy_delivery_profile">
<option value="0">{l s='zostaw ustawiony profil dostawy' mod='x13allegro'}</option>
{foreach $data.deliveryProfiles as $deliveryProfile}
<option value="{$deliveryProfile.id}">{$deliveryProfile.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row" style="display: none;">
<label for="allegro_copy_prices" class="control-label col-lg-3">
{l s='Cena Kup teraz' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_copy_prices" name="allegro_copy_prices">
<option value="0">{l s='zostaw aktualną cenę' mod='x13allegro'}</option>
<option value="1">{l s='przelicz cenę na podstawie powiązanego produktu i ustawień konta' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row" style="display: none;">
<label for="allegro_copy_keep_promotion" class="control-label col-lg-3">
{l s='Opcje promowania' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_copy_keep_promotion" name="allegro_copy_keep_promotion">
<option value="1">{l s='zostaw ustawione opcje promowania' mod='x13allegro'}</option>
<option value="0">{l s='usuń opcje promowania' mod='x13allegro'}</option>
</select>
</div>
</div>
{foreach $data.accounts as $accountId => $account}
<div class="allegro-copy-account-settings" data-id="{$accountId}" style="display: none;">
<div class="form-group row">
<div class="col-lg-4">
<label for="allegro_copy_shipping_rate_{$accountId}" class="control-label required">
{l s='Cennik dostawy' mod='x13allegro'}
</label>
<select id="allegro_copy_shipping_rate_{$accountId}" name="allegro_copy_shipping_rate[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.shippingRates as $shippingRate}
<option value="{$shippingRate->id}" {if $shippingRate->id == $account.shippingRateDefaultId}selected="selected"{/if}>{$shippingRate->name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row">
<div class="col-lg-4">
<label for="allegro_copy_return_policy_{$accountId}" class="control-label required">
{l s='Warunki zwrotów' mod='x13allegro'}
</label>
<select id="allegro_copy_return_policy_{$accountId}" name="allegro_copy_return_policy[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.afterSaleServices.returnPolicies as $returnPolicy}
<option value="{$returnPolicy->id}" {if $returnPolicy->id == $account.returnPolicyDefaultId}selected="selected"{/if}>{$returnPolicy->name}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<label for="allegro_copy_implied_warranty_{$accountId}" class="control-label required">
{l s='Reklamacje' mod='x13allegro'}
</label>
<select id="allegro_copy_implied_warranty_{$accountId}" name="allegro_copy_implied_warranty[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.afterSaleServices.impliedWarranties as $impliedWarranty}
<option value="{$impliedWarranty->id}" {if $impliedWarranty->id == $account.impliedWarrantyDefaultId}selected="selected"{/if}>{$impliedWarranty->name}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<label for="allegro_copy_warranty_{$accountId}" class="control-label">
{l s='Gwarancje' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})
</label>
<select id="allegro_copy_warranty_{$accountId}" name="allegro_copy_warranty[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.afterSaleServices.warranties as $warranty}
<option value="{$warranty->id}" {if $warranty->id == $account.warrantyDefaultId}selected="selected"{/if}>{$warranty->name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row">
<div class="col-lg-4">
<label for="allegro_copy_responsible_person_{$accountId}" class="control-label">
{l s='Osoba odpowiedzialna za zgodność produktu' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})
</label>
<select id="allegro_copy_responsible_person_{$accountId}" name="allegro_copy_responsible_person[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.responsiblePersons as $responsiblePerson}
<option value="{$responsiblePerson->id}" {if $responsiblePerson->id == $account.responsiblePersonDefaultId}selected="selected"{/if}>{$responsiblePerson->name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row">
<div class="col-lg-4">
<label for="allegro_copy_wholesale_price_{$accountId}" class="control-label">
{l s='Cennik hurtowy' mod='x13allegro'}
</label>
<select id="allegro_copy_wholesale_price_{$accountId}" name="allegro_copy_wholesale_price[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.wholesalePriceList as $wholesalePrice}
<option value="{$wholesalePrice->id}">{$wholesalePrice->benefits[0]->specification->name}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<label for="allegro_copy_size_table_{$accountId}" class="control-label">
{l s='Tabela rozmiarów' mod='x13allegro'}
</label>
<select id="allegro_copy_size_table_{$accountId}" name="allegro_copy_size_table[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.sizeTables as $sizeTable}
<option value="{$sizeTable->id}">{$sizeTable->name}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<label for="allegro_copy_additional_services_{$accountId}" class="control-label">
{l s='Grupa dodatkowych usług' mod='x13allegro'}
</label>
<select id="allegro_copy_additional_services_{$accountId}" name="allegro_copy_additional_services[{$accountId}]">
<option value="0">{l s='-- wybierz --' mod='x13allegro'}</option>
{foreach $account.additionalServices as $additionalService}
<option value="{$additionalService->id}">{$additionalService->name}</option>
{/foreach}
</select>
</div>
</div>
</div>
{/foreach}
{/if}
<script>
$(document).on('change', '#allegro_copy_to_account', function () {
var accountId = parseInt($(this).val());
var $deliveryProfiles = $('#allegro_copy_delivery_profile').closest('.form-group');
var $prices = $('#allegro_copy_prices').closest('.form-group');
var $keepPromotion = $('#allegro_copy_keep_promotion').closest('.form-group');
if (accountId) {
$deliveryProfiles.slideDown();
$prices.slideDown();
$keepPromotion.slideDown();
$('.allegro-copy-account-settings').slideUp({
complete: function () {
$('.allegro-copy-account-settings[data-id="' + accountId + '"]').slideDown();
}
});
} else {
$deliveryProfiles.slideUp();
$prices.slideUp();
$keepPromotion.slideUp();
$('.allegro-copy-account-settings').slideUp();
}
});
</script>

View File

@@ -0,0 +1,124 @@
<div class="form-group row">
<label for="allegro_description_mode" class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_description_mode" name="allegro_description_mode">
<option value="1" selected="selected">{l s='dodaj do opisu' mod='x13allegro'}</option>
<option value="2">{l s='znajdź i zamień' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group row">
<label for="allegro_description_add_mode" class="control-label col-lg-3">
{l s='Dodaj do opisu' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_description_add_mode" name="allegro_description_add_mode">
<option value="1" selected="selected">{l s='dodaj na początku opisu' mod='x13allegro'}</option>
<option value="2">{l s='dodaj na końcu opisu' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="allegro_description_add" class="control-label col-lg-3">
{l s='Treść' mod='x13allegro'}
</label>
<div class="col-lg-9">
<textarea id="allegro_description_add" name="allegro_description_add"></textarea>
</div>
</div>
</div>
<div class="clearfix" style="display: none;">
<div class="form-group row">
<label for="allegro_description_replace_from" class="control-label col-lg-3">
{l s='Szukaj w opisie' mod='x13allegro'}
</label>
<div class="col-lg-9 regex-group">
<span class="input-group-addon" style="display: none;">/</span>
<input type="text" id="allegro_description_replace_from" name="allegro_description_replace_from" value="">
<span class="input-group-addon" style="display: none;">/</span>
</div>
</div>
<div class="form-group row">
<label for="allegro_description_replace_to" class="control-label col-lg-3">
{l s='Zamień na' mod='x13allegro'}
</label>
<div class="col-lg-9 regex-group">
<span class="input-group-addon" style="display: none;">/</span>
<input type="text" id="allegro_description_replace_to" name="allegro_description_replace_to" value="">
<span class="input-group-addon" style="display: none;">/</span>
</div>
</div>
<div class="form-group row">
<div class="col-lg-offset-3 col-lg-9">
<label for="allegro_description_regex" class="control-label">
<input type="checkbox" id="allegro_description_regex" name="allegro_description_regex" value="1">
{l s='Użyj wyrażeń regularnych' mod='x13allegro'}
</label>
<div class="help-block">
<b>{l s='Uwaga!!!' mod='x13allegro'}</b><br>
{l s='Nie walidujemy wyrażeń regularnych, używasz tej opcji na własną odpowiedzialność.' mod='x13allegro'}<br>
{l s='Nieprawidłowo użyte wyrażenia regularne mogą spowodować całkowite popsucie opisu oferty.' mod='x13allegro'}
</div>
</div>
</div>
</div>
<style>
.mce-panel {
background-color: transparent;
border: none;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
</style>
<script>
$(document).on('change', '[name="allegro_description_mode"]', function () {
if (parseInt($(this).val()) === 1) {
$('select[name="allegro_description_add_mode"]').parents('.form-group').parent().show();
$('input[name="allegro_description_replace_from"]').parents('.form-group').parent().hide();
}
else {
$('select[name="allegro_description_add_mode"]').parents('.form-group').parent().hide();
$('input[name="allegro_description_replace_from"]').parents('.form-group').parent().show();
}
});
$(document).on('change', '[name="allegro_description_regex"]', function () {
if ($(this).prop('checked')) {
$(this).parents('.form-group').parent().find('.regex-group').addClass('input-group').find('.input-group-addon').show();
} else {
$(this).parents('.form-group').parent().find('.regex-group').removeClass('input-group').find('.input-group-addon').hide();
}
});
$(document).on('focus', 'textarea[name="allegro_description_add"]', function () {
initTinyMce();
});
initTinyMce();
function initTinyMce() {
tinymce.remove();
tinymce.init($.extend({
selector: '#allegro_description_add',
setup: function (editor) {
editor.on('init', function () {
$.fancybox.update();
});
},
init_instance_callback: function (editor) {
editor.on('Change', function (e) {
if (e.lastLevel !== null && typeof e.originalEvent !== "undefined") {
$(document).find('textarea[name="allegro_description_add"]').html(e.level.content);
}
});
}
}, initTinyMceLite));
}
</script>

View File

@@ -0,0 +1,49 @@
<div class="form-group row">
<label for="allegro_external_mode" class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_external_mode" name="allegro_external_mode">
<option value="1" {if $data.externalIdDefault}selected="selected"{/if}>{l s='aktualizacja według danych produktu' mod='x13allegro'}</option>
<option value="2">{l s='ręczna aktualizacja' mod='x13allegro'}</option>
<option value="0" {if !$data.externalIdDefault}selected="selected"{/if}>{l s='usuń sygnaturę' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row" {if !$data.externalIdDefault}style="display: none;"{/if}>
<label for="allegro_external_auto" class="control-label col-lg-3">
{l s='Sygnatura' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_external_auto" name="allegro_external_auto">
{foreach $data.externalIdList as $externalIdOption}
<option value="{$externalIdOption.id}" {if $externalIdOption.id == $data.externalIdDefault}selected="selected"{/if}>{$externalIdOption.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group row" style="display: none;">
<label for="allegro_external_value" class="control-label col-lg-3">
{l s='Sygnatura' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_external_value" name="allegro_external_value" value="">
</div>
</div>
<script>
$(document).on('change', '[name="allegro_external_mode"]', function () {
if (parseInt($(this).val()) === 1) {
$('select[name="allegro_external_auto"]').parents('.form-group').show();
$('input[name="allegro_external_value"]').parents('.form-group').hide();
}
else if (parseInt($(this).val()) === 2) {
$('select[name="allegro_external_auto"]').parents('.form-group').hide();
$('input[name="allegro_external_value"]').parents('.form-group').show();
}
else {
$('select[name="allegro_external_auto"]').parents('.form-group').hide();
$('input[name="allegro_external_value"]').parents('.form-group').hide();
}
});
</script>

View File

@@ -0,0 +1,12 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Czas wysyłki' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_handling_time">
{foreach $data.handlingTimeOptions as $value => $name}
<option value="{$value}" {if $value == $data.defaultHandlingTimeOption}selected="selected"{/if}>{$name}</option>
{/foreach}
</select>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Opcja faktury' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_invoice">
{foreach $data.invoiceOptions as $value => $name}
<option value="{$value}" {if $value == $data.defaultInvoiceOption}selected="selected"{/if}>{$name}</option>
{/foreach}
</select>
</div>
</div>

View File

@@ -0,0 +1,43 @@
<div class="form-group row">
<div class="col-lg-12">
<div class="alert alert-info">
{l s='Istnieje kilka możliwości aktualizacji parametrów oferty podczas łączenia jej z Katalogiem Allegro. Prosimy wybrać w jaki sposób moduł ma je przekazać podczas łączenia.' mod='x13allegro'}
</div>
<select name="allegro_productization_parameters">
<option value="skip">{l s='Zostaw własne parametry' mod='x13allegro'}</option>
<option value="fill">{l s='Dopełnij własne parametry, parametrami z Katalogu Allegro' mod='x13allegro'}</option>
<option value="reset">{l s='Użyj parametrów z Katalogu Allegro' mod='x13allegro'}</option>
</select>
</div>
</div>
<h4>{l s='Dodatkowe opcje' mod='x13allegro'}</h4>
<div class="alert alert-warning">
<b>Uwaga:</b> jeżeli chcesz użyć opisu albo zdjęć dostarczonych przez Allegro, wypełnione wcześniej zdjęcia i opis zostaną bezpowrotnie usunięte z oferty.
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Zdjęcia' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_productization_images">
<option value="0">{l s='Nie aktualizuj zdjęć wg Katalogu Allegro' mod='x13allegro'}</option>
<option value="1">{l s='Użyj zdjęć z Katalogu Allegro (jeśli istnieją)' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Opis' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_productization_description">
<option value="0">{l s='Nie aktualizuj opisu wg Katalogu Allegro' mod='x13allegro'}</option>
<option value="1">{l s='Użyj opisu z Katalogu Allegro (jeśli istnieje)' mod='x13allegro'}</option>
</select>
</div>
</div>
<hr>

View File

@@ -0,0 +1,68 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_promotion_packages_mode">
<option value="base_change" selected="selected">{l s='przypisz podstawową opcje promowania' mod='x13allegro'}</option>
<option value="extra_change">{l s='przypisz dodatkowe opcje promowania' mod='x13allegro'}</option>
<option value="base_remove">{l s='usuń podstawową opcje promowania' mod='x13allegro'}</option>
<option value="extra_remove">{l s='usuń dodatkowe opcje promowania' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Podstawowe opcje promowania' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if isset($data.promotionPackages->basePackages) && !empty($data.promotionPackages->basePackages)}
<input type="hidden" name="allegro_base_promotion_package_name" value="{$data.promotionPackages->basePackages[0]->name}">
<select name="allegro_base_promotion_package">
{foreach $data.promotionPackages->basePackages as $package}
<option value="{$package->id}">{$package->name}</option>
{/foreach}
</select>
{/if}
</div>
</div>
<div class="form-group row" style="display: none;">
<label class="control-label col-lg-3">
{l s='Dodatkowe opcje promowania' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if isset($data.promotionPackages->extraPackages) && !empty($data.promotionPackages->extraPackages)}
<input type="hidden" name="allegro_extra_promotion_package_name" value="{$data.promotionPackages->extraPackages[0]->name}">
<select name="allegro_extra_promotion_package">
{foreach $data.promotionPackages->extraPackages as $package}
<option value="{$package->id}">{$package->name}</option>
{/foreach}
</select>
{/if}
</div>
</div>
<script>
$(document).on('change', '[name="allegro_promotion_packages_mode"]', function () {
if ($(this).val() === 'base_change') {
$('select[name="allegro_extra_promotion_package"]').parents('.form-group').hide();
$('select[name="allegro_base_promotion_package"]').parents('.form-group').show();
}
else if ($(this).val() === 'extra_change') {
$('select[name="allegro_base_promotion_package"]').parents('.form-group').hide();
$('select[name="allegro_extra_promotion_package"]').parents('.form-group').show();
}
else {
$('select[name="allegro_base_promotion_package"]').parents('.form-group').hide();
$('select[name="allegro_extra_promotion_package"]').parents('.form-group').hide();
}
});
$(document).on('change', '[name="allegro_base_promotion_package"]', function () {
$('input[name="allegro_base_promotion_package_name"]').val($(this).find('option:selected').text());
});
$(document).on('change', '[name="allegro_extra_promotion_package"]', function () {
$('input[name="allegro_extra_promotion_package_name"]').val($(this).find('option:selected').text());
});
</script>

View File

@@ -0,0 +1,27 @@
{if empty($data.responsiblePersons)}
<div class="alert alert-info">
{l s='Brak skonfigurowanych osób odpowiedzialnych za zgodność produktu' mod='x13allegro'}
</div>
{else}
<div class="form-group row">
<label for="allegro_responsible_person" class="control-label col-lg-3">
{l s='Osoba odpowiedzialna za zgodność produktu' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})
</label>
<div class="col-lg-9">
<input type="hidden" name="allegro_responsible_person_name" value="{$data.responsiblePersons[0]->name}">
<select id="allegro_responsible_person" name="allegro_responsible_person">
{foreach $data.responsiblePersons as $responsiblePerson}
<option value="{$responsiblePerson->id}" {if $responsiblePerson->id == $data.defaultResponsiblePerson}selected="selected"{/if}>{$responsiblePerson->name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
<script>
$(document).on('change', '[name="allegro_responsible_person"]', function () {
$('input[name="allegro_responsible_person_name"]').val($(this).find('option:selected').text());
});
$('[name="allegro_responsible_person"]').trigger('change');
</script>

View File

@@ -0,0 +1,33 @@
<div class="form-group row">
<label for="allegro_preorder" class="control-label col-lg-3">
{l s='Przedsprzedaż' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_preorder" name="allegro_preorder">
<option value="0" selected="selected">{l s='Nie' mod='x13allegro'}</option>
<option value="1">{l s='Tak' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row" style="display: none;">
<label for="allegro_preorder_date" class="control-label col-lg-3">
{l s='Wysyłka od' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_preorder_date" name="allegro_preorder_date" class="datepicker fixed-width-md" value="{$smarty.now|date_format:'%d.%m.%Y'}" disabled="disabled">
</div>
</div>
<script>
$(document).ready(function() {
$('.datepicker').datepicker();
$('select[name="allegro_preorder"]').on('change', function() {
if (parseInt($(this).val()) == 1) {
$('input[name="allegro_preorder_date"]').prop('disabled', false).parents('.form-group').show();
} else {
$('input[name="allegro_preorder_date"]').prop('disabled', true).parents('.form-group').hide();
}
});
});
</script>

View File

@@ -0,0 +1,40 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Cennik dostawy' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if !empty($data.shippingRates)}
<input type="hidden" name="allegro_shipping_rate_name" value="">
<select name="allegro_shipping_rate">
{foreach $data.shippingRates as $shippingRate}
<option value="{$shippingRate.id}" {if $shippingRate.id == $data.shippingRateSelectedId}selected="selected"{/if}>{$shippingRate.name}</option>
{/foreach}
</select>
<br>
{include file='../../marketplace-list.tpl' marketplaces=$data.marketplaces availableMarketplaces=[]}
{else}
{l s='Brak cenników dostawy' mod='x13allegro'}
{/if}
</div>
</div>
<script>
var shippingRateMarketplaces = {$data.shippingRateMarketplaces|json_encode};
$(document).on('change', '[name="allegro_shipping_rate"]', function () {
var $selector = $(this);
$('input[name="allegro_shipping_rate_name"]').val($selector.find('option:selected').text());
$('.delivery-marketplace').each(function (index, element) {
if (shippingRateMarketplaces[$selector.val()].includes($(element).data('marketplace-id'))) {
$(element).show();
} else {
$(element).hide();
}
});
});
$('[name="allegro_shipping_rate"]').trigger('change');
</script>

View File

@@ -0,0 +1,42 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_size_table_mode">
<option value="1" selected="selected">{l s='przypisz tabele rozmiarów' mod='x13allegro'}</option>
<option value="0">{l s='usuń tabele rozmiarów' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Tabela rozmiarów' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if !empty($data.sizeTables)}
<input type="hidden" name="allegro_size_table_name" value="{$data.sizeTables[0]->name}">
<select name="allegro_size_table">
{foreach $data.sizeTables as $sizeTable}
<option value="{$sizeTable->id}">{$sizeTable->name}</option>
{/foreach}
</select>
{else}
{l s='Brak skonfigurowanych tabel rozmiarów' mod='x13allegro'}
{/if}
</div>
</div>
<script>
$(document).on('change', '[name="allegro_size_table_mode"]', function () {
if (parseInt($(this).val()) === 1) {
$('select[name="allegro_size_table"]').parents('.form-group').show();
} else {
$('select[name="allegro_size_table"]').parents('.form-group').hide();
}
});
$(document).on('change', '[name="allegro_size_table"]', function () {
$('input[name="allegro_size_table_name"]').val($(this).find('option:selected').text());
});
</script>

View File

@@ -0,0 +1,27 @@
<div class="form-group row">
<div class="col-lg-12">
<label class="control-label col-lg-3">
{l s='Szablon oferty' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_template">
{foreach $data.templateList as $template}
<option value="{$template.id}" {if $template.default}selected="selected"{/if}>{$template.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-lg-12">
<label class="control-label col-lg-3">
{l s='Zdjęcia do szablonu' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_template_images">
<option value="all" {if $data.selectImages == 'all'}selected="selected"{/if}>{l s='wszystkie' mod='x13allegro'}</option>
<option value="first" {if $data.selectImages == 'first'}selected="selected"{/if}>{l s='tylko pierwsze' mod='x13allegro'}</option>
</select>
</div>
</div>
</div>

View File

@@ -0,0 +1,137 @@
<div class="form-group row">
<label for="allegro_title_mode" class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_title_mode" name="allegro_title_mode">
<option value="1" selected="selected">{l s='ustaw nowy tytuł' mod='x13allegro'}</option>
<option value="2">{l s='dodaj frazę do tytułu' mod='x13allegro'}</option>
<option value="3">{l s='zmień w tytule' mod='x13allegro'}</option>
<option value="4">{l s='skopiuj nazwę przypisanego produktu Allegro do tytułu' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group row">
<label for="allegro_title_pattern" class="control-label col-lg-3">
{l s='Format nowego tytułu' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_title_pattern" name="allegro_title_pattern" value="{$data.titlePatternDefault}">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="alert alert-info">
<p>{l s='W powyższej opcji aktualizacji można korzystać z poniższych znaczników:' mod='x13allegro'}</p>
<a href="#" class="allegro_show_title_tags">{l s='Pokaż dostępne znaczniki' mod='x13allegro'}</a>
<div class="help-block" style="font-style: italic; display:none;">
<small>
<span class="x13allegro_black">{l s='{product_id}' mod='x13allegro'}</span> - ID produktu<br>
<span class="x13allegro_black">{l s='{product_name}' mod='x13allegro'}</span> - Nazwa produktu<br>
<span class="x13allegro_black">{l s='{product_name_attribute}' mod='x13allegro'}</span> - Nazwa atrybutu<br>
<span class="x13allegro_black">{l s='{product_short_desc}' mod='x13allegro'}</span> - Krótki opis<br>
<span class="x13allegro_black">{l s='{product_reference}' mod='x13allegro'}</span> - Kod referencyjny (indeks) produktu<br>
<span class="x13allegro_black">{l s='{product_ean13}' mod='x13allegro'}</span> - Kod EAN13<br>
<span class="x13allegro_black">{l s='{product_weight}' mod='x13allegro'}</span> - Waga produktu<br>
<span class="x13allegro_black">{l s='{product_price}' mod='x13allegro'}</span> - Cena produktu<br>
<span class="x13allegro_black">{l s='{manufacturer_name}' mod='x13allegro'}</span> - Nazwa producent<br>
<span class="x13allegro_black">{l s='{attribute_group_X}' mod='x13allegro'}</span> - Nazwa i wartość grupy atrybutów X (grupa atrybutów musi być przypisana do kombinacji produktu)<br>
<span class="x13allegro_black">{l s='{attribute_group_value_X}' mod='x13allegro'}</span> - Wartość grupy atrybutów X (grupa atrybutów musi być przypisana do kombinacji produktu)<br>
<span class="x13allegro_black">{l s='{feature_X}' mod='x13allegro'}</span> - Nazwa i wartość cechy X (cecha musi być przypisana do produktu)<br>
<span class="x13allegro_black">{l s='{feature_value_X}' mod='x13allegro'}</span> - Wartość cechy X (cecha musi być przypisana do produktu)
</small>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="alert alert-warning">
{l s='Format tytułu oferty zostanie użyty do aktualizacji wszystkich wybranych ofert, oprócz tych z indywidualnym tytułem.' mod='x13allegro'}
</div>
</div>
</div>
</div>
<div class="clearfix" style="display: none;">
<div class="form-group row">
<label for="allegro_title_add_mode" class="control-label col-lg-3">
{l s='Dodaj frazę' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select id="allegro_title_add_mode" name="allegro_title_add_mode">
<option value="1" selected="selected">{l s='dodaj przed tytułem' mod='x13allegro'}</option>
<option value="2">{l s='dodaj po tytule' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="allegro_title_add" class="control-label col-lg-3">
{l s='Fraza' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_title_add" name="allegro_title_add" value="">
</div>
</div>
</div>
<div class="clearfix" style="display: none;">
<div class="form-group row">
<label for="allegro_title_replace_from" class="control-label col-lg-3">
{l s='Zamień frazę z tytułu' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_title_replace_from" name="allegro_title_replace_from" value="">
</div>
</div>
<div class="form-group row">
<label for="allegro_title_replace_to" class="control-label col-lg-3">
{l s='na' mod='x13allegro'}
</label>
<div class="col-lg-9">
<input type="text" id="allegro_title_replace_to" name="allegro_title_replace_to" value="">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="alert alert-warning">
<p>{l s='Tytuł zostanie zaktualizowany we wszystkich zaznaczonych ofertach, w których nie było sprzedaży lub licytacji.' mod='x13allegro'}</p>
<p>{l s='Jeśli nowo wygenerowany tytuł będzie dłuższy niż %s znaków, zostanie on automatycznie skrócony.' mod='x13allegro' sprintf=$data.titleMaxSize}</p>
</div>
</div>
</div>
<script>
$(document).on('change', '[name="allegro_title_mode"]', function () {
var value = parseInt($(this).val());
if (value === 1) {
$('input[name="allegro_title_pattern"]').parents('.form-group').parent().show();
$('select[name="allegro_title_add_mode"]').parents('.form-group').parent().hide();
$('input[name="allegro_title_replace_from"]').parents('.form-group').parent().hide();
}
else if (value === 2) {
$('input[name="allegro_title_pattern"]').parents('.form-group').parent().hide();
$('select[name="allegro_title_add_mode"]').parents('.form-group').parent().show();
$('input[name="allegro_title_replace_from"]').parents('.form-group').parent().hide();
}
else if (value === 3) {
$('input[name="allegro_title_pattern"]').parents('.form-group').parent().hide();
$('select[name="allegro_title_add_mode"]').parents('.form-group').parent().hide();
$('input[name="allegro_title_replace_from"]').parents('.form-group').parent().show();
}
else {
$('input[name="allegro_title_pattern"]').parents('.form-group').parent().hide();
$('select[name="allegro_title_add_mode"]').parents('.form-group').parent().hide();
$('input[name="allegro_title_replace_from"]').parents('.form-group').parent().hide();
}
});
$(document).on('click', '.allegro_show_title_tags', function(e) {
e.preventDefault();
$(this).hide().next().show();
});
</script>

View File

@@ -0,0 +1,12 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Jednostka' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_unit">
{foreach $data.unitOptions as $value => $name}
<option value="{$value}">{$name}</option>
{/foreach}
</select>
</div>
</div>

View File

@@ -0,0 +1,81 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_tax_method">
<option value="allegro_auction_tax_autoupdate">{l s='Zaktualizuj według ustawień produktu (Polska)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_update_pl">{l s='Wybierz nową stawkę VAT (Polska)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_update_cz">{l s='Wybierz nową stawkę VAT (Czechy)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_update_sk">{l s='Wybierz nową stawkę VAT (Słowacja)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_delete_pl">{l s='Usuń stawkę VAT (Polska)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_delete_cz">{l s='Usuń stawkę VAT (Czechy)' mod='x13allegro'}</option>
<option value="allegro_auction_tax_delete_sk">{l s='Usuń stawkę VAT (Słowacja)' mod='x13allegro'}</option>
</select>
</div>
</div>
<div id="allegro_auction_tax_update_pl" class="form-group row" style="display: none;">
<label class="control-label col-lg-3">
{l s='Nowa stawka VAT (Polska)' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_tax_pl">
{foreach $data.taxPL as $tax}
<option value="{$tax.id}">{$tax.name}</option>
{/foreach}
</select>
</div>
</div>
<div id="allegro_auction_tax_update_cz" class="form-group row" style="display: none;">
<label class="control-label col-lg-3">
{l s='Nowa stawka VAT (Czechy)' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_tax_cz">
{foreach $data.taxCZ as $tax}
<option value="{$tax.id}">{$tax.name}</option>
{/foreach}
</select>
</div>
</div>
<div id="allegro_auction_tax_update_sk" class="form-group row" style="display: none;">
<label class="control-label col-lg-3">
{l s='Nowa stawka VAT (Słowacja)' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auction_tax_sk">
{foreach $data.taxSK as $tax}
<option value="{$tax.id}">{$tax.name}</option>
{/foreach}
</select>
</div>
</div>
<script>
$(document).on('change', '[name="allegro_auction_tax_method"]', function () {
var value = $(this).val();
if (value == 'allegro_auction_tax_update_pl') {
$('#allegro_auction_tax_update_cz').hide();
$('#allegro_auction_tax_update_sk').hide();
$('#allegro_auction_tax_update_pl').show();
}
else if (value == 'allegro_auction_tax_update_cz') {
$('#allegro_auction_tax_update_pl').hide();
$('#allegro_auction_tax_update_sk').hide();
$('#allegro_auction_tax_update_cz').show();
}
else if (value == 'allegro_auction_tax_update_sk') {
$('#allegro_auction_tax_update_pl').hide();
$('#allegro_auction_tax_update_cz').hide();
$('#allegro_auction_tax_update_sk').show();
}
else {
$('#allegro_auction_tax_update_pl').hide();
$('#allegro_auction_tax_update_cz').hide();
$('#allegro_auction_tax_update_sk').hide();
}
});
</script>

View File

@@ -0,0 +1,42 @@
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Metoda aktualizacji' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_wholesale_price_mode">
<option value="1" selected="selected">{l s='przypisz cennik hurtowy' mod='x13allegro'}</option>
<option value="0">{l s='usuń cennik hurtowy' mod='x13allegro'}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Cennik hurtowy' mod='x13allegro'}
</label>
<div class="col-lg-9">
{if !empty($data.wholesalePriceList)}
<input type="hidden" name="allegro_wholesale_price_name" value="{$data.wholesalePriceList[0]->benefits[0]->specification->name}">
<select name="allegro_wholesale_price">
{foreach $data.wholesalePriceList as $wholesalePrice}
<option value="{$wholesalePrice->id}">{$wholesalePrice->benefits[0]->specification->name}</option>
{/foreach}
</select>
{else}
{l s='Brak skonfigurowanych cenników hurtowych' mod='x13allegro'}
{/if}
</div>
</div>
<script>
$(document).on('change', '[name="allegro_wholesale_price_mode"]', function () {
if (parseInt($(this).val()) === 1) {
$('select[name="allegro_wholesale_price"]').parents('.form-group').show();
} else {
$('select[name="allegro_wholesale_price"]').parents('.form-group').hide();
}
});
$(document).on('change', '[name="allegro_wholesale_price"]', function () {
$('input[name="allegro_wholesale_price_name"]').val($(this).find('option:selected').text());
});
</script>

View File

@@ -0,0 +1,33 @@
<form id="account_switch_form" class="defaultForm clearfix bootstrap" action="#" method="post">
<div class="panel col-lg-12" x-name="allegro_account">
<fieldset>
<div class="panel-heading">
<img alt="" src="../modules/x13allegro/img/AdminXAllegroMain.png" /> {l s='Zmień konto Allegro' mod='x13allegro'}
</div>
<div class="row">
<div class="form-wrapper col-sm-4 col-lg-3">
<label for="id_allegro_account" class="control-label">{l s='Wybierz konto' mod='x13allegro'}</label>
<div class="margin-form">
<select id="id_xallegro_account" class="change_allegro_account fixed-width-xxl" name="id_xallegro_account" {if !$hideChangeLink}onchange="javascript:location.href=this.value;"{/if}>
{foreach from=$allegroAccounts item="allegroAccount"}
<option value="{if !$hideChangeLink}{$allegroAccount.url}{else}{$allegroAccount.id}{/if}"{if $allegroAccount.selected} selected="selected"{/if} data-id-xallegro-account="{$allegroAccount.id}">{$allegroAccount.username}</option>
{/foreach}
</select>
</div>
</div>
<div class="col-sm-4 col-lg-3">
{if $currentAccount}
<p><strong>{l s='Zalogowane konto' mod='x13allegro'}:</strong></p>
<p>
<strong>{if isset($currentAccount->firstName)}{$currentAccount->firstName}{/if} {if isset($currentAccount->lastName)}{$currentAccount->lastName}{/if}</strong> <i>({$currentAccount->login})</i><br>
{if isset($currentAccount->company) && isset($currentAccount->company->name)}{l s='Firma' mod='x13allegro'}: {$currentAccount->company->name}{/if}<br/>
{l s='Marketplace' mod='x13allegro'}: {$baseMarketplace}
</p>
{/if}
</div>
</div>
</fieldset>
</div>
</form>

View File

@@ -0,0 +1,92 @@
<style>
.icon-AdminXAllegroMain:before{
content: "\f0e3";
}
.xallegro-log-unread-badge{
font-size: 10px;
color: #fff;
padding: 0 5px !important;
margin-left: 5px !important;
border-radius: 10px;
background: #f54c3e;
height: 15px;
min-width: 5px;
display: inline-block;
text-align: center;
line-height: 14px;
}
</style>
<script type="text/javascript">
var xallegro_token = '{$token}';
var xallegro_unread_logs = {$unreadLogs};
$(function() {
var $main_adminXAllegroMain = $('#maintab-AdminXAllegroMain');
var $sub_adminXAllegroMain = $('#subtab-AdminXAllegroMain');
var $sub_adminXAllegroLog = $('#subtab-AdminXAllegroLog');
if (xallegro_unread_logs && $sub_adminXAllegroLog.length) {
$main_adminXAllegroMain.find('a > span').append('<span class="xallegro-log-unread-badge">' + xallegro_unread_logs + '</span>');
$sub_adminXAllegroMain.find('a > span').append('<span class="xallegro-log-unread-badge">' + xallegro_unread_logs + '</span>');
$sub_adminXAllegroLog.find('a').append('<span class="xallegro-log-unread-badge">' + xallegro_unread_logs + '</span>');
}
});
</script>
{if $isAdminOrders}
<style>
.process-icon-truck::after {
content: url('{$smarty.const.__PS_BASE_URI__}modules/x13allegro/img/AdminXAllegroMain.png');
position: absolute;
z-index: 1;
top: 5px;
right: -10px;
}
.process-icon-truck-177 {
padding-right: 12px;
}
.process-icon-truck-177::after {
top: 10px;
left: 29px;
text-align: left;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
{if $smarty.const._PS_VERSION_ < '1.7.7.0'}
$('#toolbar-nav, .cc_button').prepend(
'<li>' +
'<a id="" class="toolbar_btn pointer" href="{$orderShippingLink}" title="">' +
'<i class="process-icon-truck icon-truck xallegro-order-shipping fa fa-truck"></i>' +
'<div>Numery śledzenia Allegro</div>' +
'</a>' +
'</li>'
);
{else}
$('.toolbar-icons .wrapper').prepend(
'<a id="" class="btn btn-outline-secondary pointer" href="{$orderShippingLink}" title="" style="position: relative;">' +
'<i class="process-icon-truck process-icon-truck-177 material-icons">local_shipping</i>&nbsp;Numery śledzenia Allegro' +
'</a>'
);
{/if}
});
</script>
{elseif $isAdminStatuses}
<script type="text/javascript">
var xallegro_statuses = [{$allegroStatusesIds}];
$(function() {
if ($('input[name="id_order_state"]').length && xallegro_statuses.includes(parseInt($('input[name="id_order_state"]').val()))) {
$('form#order_state_form input[type="checkbox"]').each(function(index, el) {
if ($(el).attr('name') == 'logable_on'
|| $(el).attr('name') == 'shipped_on'
|| $(el).attr('name') == 'paid_on'
) {
$(el).prop('disabled', 'disabled');
}
});
}
});
</script>
{/if}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<div class="x13allegro-delivery-marketplace-list delivery-marketplace-list">
<p>Ofertę z wybranym cennikiem udostępnisz na rynkach:</p>
{foreach $marketplaces as $marketplace}
<div class="delivery-marketplace" data-marketplace-id="{$marketplace.id}" {if !in_array($marketplace.id, $availableMarketplaces)}style="display: none;"{/if}>
<img alt="" src="../modules/x13allegro/img/flag-{$marketplace.countryCode|lower}.svg">
{$marketplace.name|regex_replace:"/^(\w+)/u":"<b>$1</b>"}
</div>
{/foreach}
<p class="x13allegro-delivery-marketplace-list-small">Przed pojawieniem się oferty na tych rynkach, sprawdzimy, czy spełnia wszystkie warunki sprzedaży. <br/> Wynik weryfikacji znajdziesz w zakładce "Mój asortyment" w ciągu 30 minut od aktywacji oferty.</p>
</div>

View File

@@ -0,0 +1,24 @@
<tr class="{$class}" x-id="{$row.id}" {if isset($editable) && !$editable && !isset($row.values)}style="display: none;"{/if}>
<td>
<input type="checkbox" id="deliveryMethods_{$row.id}" name="deliveryMethods[{$row.id}][enabled]" value="1" {if isset($row.values) && $row.values.enabled}checked="checked"{/if} x-name="switch" data-cast="switch" {if isset($editable) && !$editable}style="display: none;"{/if} />
<label for="deliveryMethods_{$row.id}">{$row.name}</label>
</td>
<td {if $row.type == 'free'}style="display: none;"{/if}>
<div class="input-group col-lg-2">
<input style="width: 100px;" type="text" name="deliveryMethods[{$row.id}][firstItemRate]" data-name="firstItemRate" value="{if isset($row.values)}{$row.values.firstItemRate|string_format:"%.2f"}{else}0{/if}" data-cast="float" {if isset($editable) && !$editable}disabled="disabled"{/if} />
<span class="input-group-addon">zł</span>
</div>
</td>
<td {if $row.type == 'free'}style="display: none;"{/if}>
<div class="input-group col-lg-2">
<input style="width: 100px;" type="text" name="deliveryMethods[{$row.id}][nextItemRate]" data-name="nextItemRate" value="{if isset($row.values)}{$row.values.nextItemRate|string_format:"%.2f"}{else}0{/if}" data-cast="float" {if isset($editable) && !$editable}disabled="disabled"{/if} />
<span class="input-group-addon">zł</span>
</div>
</td>
<td {if $row.type == 'free'}style="display: none;"{/if}>
<div class="input-group col-lg-2">
<input style="width: 60px;" type="text" name="deliveryMethods[{$row.id}][maxQuantityPerPackage]" data-name="maxQuantityPerPackage" value="{if isset($row.values)}{$row.values.maxQuantityPerPackage}{else}1{/if}" data-cast="integer" {if isset($editable) && !$editable}disabled="disabled"{/if} />
<span class="input-group-addon">szt.</span>
</div>
</td>
</tr>

View File

@@ -0,0 +1,198 @@
{if isset($shipments) && !empty($shipments)}
{if isset($shipments['free'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Darmowe opcje dostawy' mod='x13allegro'}</strong></span>
</th>
</tr>
</thead>
<tbody>
{foreach $shipments['free'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['in_advance_courier'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Kurier' mod='x13allegro'}</strong> - {l s='płatność z góry' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['in_advance_courier'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['in_advance_package'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Paczka' mod='x13allegro'}</strong> - {l s='płatność z góry' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['in_advance_package'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['in_advance_letter'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='List ' mod='x13allegro'}</strong> - {l s='płatność z góry' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['in_advance_letter'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['in_advance_pos'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Odbiór w punkcie' mod='x13allegro'}</strong> - {l s='płatność z góry' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['in_advance_pos'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['cash_on_delivery_courier'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Kurier' mod='x13allegro'}</strong> - {l s='płatność przy odbiorze' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['cash_on_delivery_courier'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['cash_on_delivery_package'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Paczka' mod='x13allegro'}</strong> - {l s='płatność przy odbiorze' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['cash_on_delivery_package'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['cash_on_delivery_letter'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='List ' mod='x13allegro'}</strong> - {l s='płatność przy odbiorze' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['cash_on_delivery_letter'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['cash_on_delivery_pos'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom: 20px;">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Odbiór w punkcie' mod='x13allegro'}</strong> - {l s='płatność przy odbiorze' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['cash_on_delivery_pos'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{if isset($shipments['abroad'])}
<table class="table shipments-table" cellspacing="0" cellpadding="0" style="width: 100%">
<thead>
<tr>
<th>
<span class="toggle-shipments"><strong>{l s='Wysyłka za granicę' mod='x13allegro'}</strong> - {l s='płatność z góry' mod='x13allegro'}</span>
</th>
<th class="shipments-thead" width="140"><span>{l s='Pierwsza sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="140"><span>{l s='Kolejna sztuka' mod='x13allegro'}</span></th>
<th class="shipments-thead" width="100"><span>{l s='Ilość w paczce' mod='x13allegro'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments['abroad'] as $row}
{include file="./shipments-line.tpl" row=$row class={cycle values=",alt_row odd"}}
{/foreach}
</tbody>
</table>
{/if}
{/if}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,3 @@
<a id="allegroAccountAuth" href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" data-account="{$id_account}">
<i class="icon-key"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,74 @@
<form action="{$formAction}" method="post" class="form-horizontal">
<input type="hidden" name="id_xallegro_account" value="{$accountId}">
<input type="hidden" name="submitAddxallegro_account" value="1">
<div class="form-group row">
<label for="configuration_id_language" class="control-label required col-lg-5">{l s='Język wystawianych ofert' mod='x13allegro'}</label>
<div class="col-lg-7">
<select id="configuration_id_language" name="id_language" class="fixed-width-xxl">
{foreach $shopLanguages as $language}
<option value="{$language.id}" {if isset($language.isMarketplaceLanguage) && $language.isMarketplaceLanguage}selected="selected"{/if}>{$language.name}</option>
{/foreach}
</select>
</div>
</div>
{if count($afterSaleServices.returnPolicies) > 1}
<div class="form-group row">
<label for="configuration_return_policy" class="control-label col-lg-5">{l s='Warunki zwrotów' mod='x13allegro'}</label>
<div class="col-lg-7">
<select id="configuration_return_policy" name="return_policy" class="fixed-width-xxl">
{foreach $afterSaleServices.returnPolicies as $returnPolicy}
<option value="{$returnPolicy.id}">{$returnPolicy.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if count($afterSaleServices.impliedWarranties) > 1}
<div class="form-group row">
<label for="configuration_implied_warranty" class="control-label col-lg-5">{l s='Reklamacje' mod='x13allegro'}</label>
<div class="col-lg-7">
<select id="configuration_implied_warranty" name="implied_warranty" class="fixed-width-xxl">
{foreach $afterSaleServices.impliedWarranties as $impliedWarranty}
<option value="{$impliedWarranty.id}">{$impliedWarranty.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if count($afterSaleServices.warranties) > 1}
<div class="form-group row">
<label for="configuration_warranty" class="control-label col-lg-5">{l s='Gwarancje' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})</label>
<div class="col-lg-7">
<select id="configuration_warranty" name="warranty" class="fixed-width-xxl">
{foreach $afterSaleServices.warranties as $warranty}
<option value="{$warranty.id}">{$warranty.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
{if count($responsiblePersons) > 1}
<div class="form-group row">
<label for="responsible_person" class="control-label col-lg-5">{l s='Osoba odpowiedzialna za zgodność produktu' mod='x13allegro'} ({l s='opcjonalnie' mod='x13allegro'})</label>
<div class="col-lg-7">
<select id="responsible_person" name="responsible_person" class="fixed-width-xxl">
{foreach $responsiblePersons as $responsiblePerson}
<option value="{$responsiblePerson.id}">{$responsiblePerson.name}</option>
{/foreach}
</select>
</div>
</div>
{/if}
<div class="form-group row">
<div class="col-lg-12">
<a href="{$cancelAction}" class="button btn btn-default">{l s='Anuluj autoryzacje' mod='x13allegro'}</a>
<button type="submit" id="allegroAuthButtonSave" class="button btn btn-primary disabled" disabled="disabled">{l s='Zapisz i zakończ' mod='x13allegro'}</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,33 @@
<div style="text-align: center; font-size: 14px;">
<div id="allegroAuthStart">
<p style="margin: 0 0 20px;">{l s='Powiąż konto z serwisem Allegro aby ukończyć proces autoryzacji.' mod='x13allegro'}</p>
<a id="allegroAuthButton" href="{$accountAuthUrl}" data-account="{$id_account}" target="_blank" rel="nofollow" class="button btn btn-warning">{l s='Powiąż konto Allegro' mod='x13allegro'}</a>
</div>
<div id="allegroAuthProcess" style="display: none;">
<i class="icon-cog" style="font-size: 24px; animation: fa-spin 2s infinite linear;"></i>
<p>{l s='oczekiwanie na potwierdzenie...' mod='x13allegro'}</p>
</div>
<div id="allegroAuthSuccess" style="display: none;">
<i class="icon-check" style="font-size: 24px; color: #60ba68"></i>
<p style="margin: 0 0 20px;">
<span style="color: #60ba68">{l s='Konto zostało pomyślnie zautoryzowane' mod='x13allegro'}</span><br>
{l s='Rynek bazowy' mod='x13allegro'}: <span id="allegroAuthMarketplace"></span>
</p>
<div id="allegroAuthConfiguration"></div>
<a id="allegroAuthButtonFinish" href="{$redirectUrl}&conf=4" class="button btn btn-success" style="display: none;">{l s='Zakończ' mod='x13allegro'}</a>
<p style="font-size: 12px; font-style: italic; margin: 20px 0 0 0;">
{capture configurationUrl}<a href="{$configurationUrl}" target="_blank">{/capture}
{l s='Pamiętaj, że w każdej chwili możesz zmienić indywidualne ustawienia dla tego konta w [1]Konfiguracji modułu[/1]' tags=[$smarty.capture.configurationUrl] mod='x13allegro'}
</p>
</div>
<div id="allegroAuthError" style="display: none;">
<i class="icon-remove" style="font-size: 24px; color: #f73442"></i>
<p id="allegroAuthErrorMsg" style="margin: 0 0 20px; color: #f73442"></p>
<a href="{$redirectUrl}" class="button btn btn-default">{l s='Zakończ' mod='x13allegro'}</a>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,24 @@
{extends file="helpers/list/list_footer.tpl"}
{block name="after"}
<script>
$(document).ready(function() {
var XAllegro = new X13Allegro();
XAllegro.accountAuth();
});
</script>
<div class="modal xaccount-authorization-modal" id="account_authorization_modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document" style="width: 650px;">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Autoryzacja konta' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small"><span></span></h6>
</div>
<div class="modal-body x13allegro-modal-body"></div>
<div class="modal-footer x13allegro-modal-footer"></div>
</div>
</div>
</div>
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,43 @@
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.name == 'name'}
{$smarty.block.parent}
{if $fields_value.id_product}
{if version_compare($smarty.const._PS_VERSION_, '1.7.0.0', '<')}
{capture name='product_link'}{$link->getAdminLink('AdminProducts')}&updateproduct&id_product={$fields_value.id_product}{/capture}
{else}
{capture name='product_link'}{$link->getAdminLink('AdminProducts', true, ['id_product' => {$fields_value.id_product}])}{/capture}
{/if}
<br />
<a href="{$smarty.capture.product_link}" target="_blank" class="btn btn-default button bt-icon">
<i class="icon-edit"></i> <span>{l s='Edytuj produkt' mod='x13allegro'}</span>
</a>
<a href="{$link->getProductLink($fields_value.id_product, null, null, null, 1, 1, $fields_value.id_product_attribute)}" target="_blank" class="btn btn-default button bt-icon">
<i class="icon-search"></i> <span>{l s='Zobacz produkt w sklepie' mod='x13allegro'}</span>
</a>
{/if}
{elseif $input.name == 'title'}
{$smarty.block.parent}
<br />
{foreach $offerMarketplaces as $marketplace}
<a href="{$marketplace.offerUrl}" target="_blank" title="{l s='Zobacz na' mod='x13allegro'} {$marketplace.name}" class="btn btn-default button bt-icon">
<img src="../modules/x13allegro/img/AdminXAllegroMain.png" width="14px" height="14px" alt="{l s='Zobacz na' mod='x13allegro'} {$marketplace.name}"> {$marketplace.name}
</a>
{/foreach}
{else}
{$smarty.block.parent}
{if isset($input.auctionDbInfo) && $input.auctionDbInfo}
<div class="alert alert-info" style="margin: 10px 0 0;">
{$input.auctionDbInfo}
</div>
{/if}
{/if}
{/block}
{block name="script"}
var token = '{$token}';
var XAllegro = new X13Allegro();
XAllegro.auctionBind();
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}">
<i class="{$icon}"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" target="_blank">
<i class="icon-pencil"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" x-name="action_finish" data-id="{$data_id}" data-title="{$data_title}">
<i class="icon-flag-checkered"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}">
<i class="icon-gavel"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" x-name="action_redo" data-id="{$data_id}" data-title="{$data_title}">
<i class="icon-repeat"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" x-name="action_unbind" data-id="{$data_id}" data-title="{$data_title}">
<i class="icon-unlink"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,4 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" x-name="action_update" data-id="{$data_id}" data-title="{$data_title}">
<i class="icon-cogs"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" target="_blank">
<img src="../modules/x13allegro/img/AdminXAllegroMain.png" width="14px" height="14px" alt="{$title|escape:'html':'UTF-8'}">&nbsp;&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,184 @@
<div class="modal-dialog {if $formAction == 'update'}modal-lg{/if}" role="document">
<form action="#" method="post">
<input type="hidden" name="action" value="auction{$formAction|ucfirst}">
<input type="hidden" name="id_xallegro_account" value="{$allegroAccountId}">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">
{if $formAction == 'finish'}
{l s='Zakończ oferty' mod='x13allegro'}
{elseif $formAction == 'redo'}
{l s='Wznów oferty' mod='x13allegro'}
{elseif $formAction == 'auto_renew'}
{l s='Ustaw opcje auto wznawiania' mod='x13allegro'}
{elseif $formAction == 'update'}
{l s='Masowa aktualizacja ofert' mod='x13allegro'}
{/if}
</h4>
{if $formAction == 'update'}
<h6 class="x13allegro-modal-title-small">{l s='Wybranych ofert do aktualizacji' mod='x13allegro'}: <span class="badge">{$auctions|count}</span></h6>
{/if}
</div>
<div class="modal-body x13allegro-modal-body">
<table class="table x-auction-form-list{if $formAction != 'redo'} x-auction-form-list-hidden{/if}" {if $formAction == 'update' && $auctions|count > 5}style="display: none;"{/if}>
<colgroup>
<col>
{if $formAction == 'redo'}
<col width="120px">
<col width="140px">
{/if}
<col width="25px">
</colgroup>
<thead>
<tr>
<th></th>
{if $formAction == 'redo'}
<th>{l s='Wznawianie' mod='x13allegro'}</th>
<th>{l s='Ilość po wznowieniu' mod='x13allegro'}</th>
{/if}
<th></th>
</tr>
</thead>
<tbody>
{foreach $auctions as $auction}
<tr data-id="{$auction.id_auction}" {if $formAction == 'redo' && isset($auction.redoData.auctionDisabled) && $auction.redoData.auctionDisabled} class="x-auction-form-list-disabled"{/if}>
<td>
<input type="hidden" name="xallegro_auction_id[{$auction.id_auction}]" data-name="xAllegroAuctionId" value="1" {if $formAction == 'redo' && isset($auction.redoData.auctionDisabled) && $auction.redoData.auctionDisabled}disabled="disabled"{/if}>
{if $formAction == 'redo' && isset($auction.redoData.auctionDisabled) && $auction.redoData.auctionDisabled}
<span class="icon-warning text-danger label-tooltip" data-toggle="tooltip" data-original-title="{l s='Brak odpowiedniej ilości produktu w sklepie, lub produkt jest nieaktywny' mod='x13allegro'}"></span>
{/if}
<strong>{$auction.title}</strong>&nbsp;
<small><i><a href="{$auction.href}" target="_blank" rel="nofollow">{$auction.id_auction}</a></i></small>
{if isset($auction.redoData.status) && $auction.redoData.status}
{if $auction.redoData.status == 1}
{$activeOffersTxt = 'aktywną ofertę'}
{elseif $auction.redoData.status < 5}
{$activeOffersTxt = 'aktywne oferty'}
{else}
{$activeOffersTxt = 'aktywnych ofert'}
{/if}
<span class="badge badge-warning label-tooltip" data-toggle="tooltip" data-original-title="Powiązany produkt/kombinacja ma już {$auction.redoData.status} {$activeOffersTxt}">
<span style="cursor: default"><i class="icon-warning"></i> {$auction.redoData.status}</span>
</span>
{/if}
</td>
{if $formAction == 'redo' && isset($auction.redoData)}
<td>
<select name="xallegro_auction_auto_renew[{$auction.id_auction}]" data-name="xAllegroAuctionAutoRenew" {if $auction.redoData.auctionDisabled}disabled="disabled"{/if}>
<option value="">{{l s='domyślnie' mod='x13allegro'}}</option>
<option value="1">{{l s='tak' mod='x13allegro'}}</option>
<option value="0">{{l s='nie' mod='x13allegro'}}</option>
</select>
</td>
<td>
<input type="text" name="xallegro_auction_quantity[{$auction.id_auction}]" data-name="xAllegroAuctionQuantity" value="{$auction.redoData.auctionQuantity}" data-max="{$auction.redoData.auctionQuantityMax}" data-oos="{$auction.redoData.productOOS}" data-cast="integer" {if $auction.redoData.auctionDisabled}disabled="disabled"{/if}>
<small>/ {$auction.redoData.productQuantity}</small>
</td>
{/if}
<td style="text-align: right;">
{if $formAction != 'update'}<a class="x-auction-form-list-delete"><i class="icon-times"></i></a>{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="x-updater-progress">
<div class="clearfix">
<h4 class="x-updater-start-title pull-left">{l s='Trwa aktualizacja' mod='x13allegro'}...</h4>
<h4 class="x-updater-end-title pull-left">{l s='Aktualizacja zakończona' mod='x13allegro'}</h4>
<a class="btn btn-success pull-right x-updater-redo-btn" href="#">{l s='Aktualizuj inną opcję' mod='x13allegro'}</a>
</div>
<div class="x-updater-progress-bar">
<span class="x-updater-progress-bar-fill"></span>
</div>
<p class="x-updater-progress-bar-data">
{l s='Zaktualizowano' mod='x13allegro'}
<span class="x-updater-progress-from">0</span> z <span class="x-updater-progress-to">0</span>
</p>
</div>
<div class="x-updater-finish-message alert alert-success"></div>
<div class="x-updater-error-message alert alert-danger"></div>
<div class="x-updater-logger">
<hr>
<div class="clearfix">
<h4 class="pull-left">{l s='Dziennik zdarzeń' mod='x13allegro'}</h4>
<a class="btn btn-danger pull-right x-updater-logger-with-errors" href="#">{l s='Pokaż błędy' mod='x13allegro'}</a>
<a class="btn btn-warning pull-right x-updater-logger-with-warnings" href="#">{l s='Pokaż ostrzeżenia' mod='x13allegro'}</a>
<a class="btn btn-default pull-right x-updater-logger-all" href="#">{l s='Pokaż wszystko' mod='x13allegro'}</a>
</div>
<ul class="x-updater-logger-content"></ul>
</div>
{if $formAction == 'auto_renew'}
<div class="form-group row">
<label class="control-label col-lg-3">
{l s='Auto wznawianie' mod='x13allegro'}
</label>
<div class="col-lg-9">
<select name="allegro_auto_renew">
<option value="">{l s='domyślnie' mod='x13allegro'}</option>
<option value="1">{l s='tak' mod='x13allegro'}</option>
<option value="0">{l s='nie' mod='x13allegro'}</option>
</select>
</div>
</div>
{elseif $formAction == 'update'}
<div class="x-updater-methods">
<h4>{l s='Wybierz akcje' mod='x13allegro'}</h4>
<div class="form-group">
<select x-name="update-auction-entity" class="form-control">
<option value="0"> -- wybierz --</option>
{foreach $availableUpdateEntities as $entity}
<option value="{$entity.name}">{$entity.desc}</option>
{/foreach}
</select>
</div>
<div class="x-updater-extra-settings">
{foreach $availableUpdateEntities as $entity}
<div id="updater_entity_{$entity.name}" class="x-updater-entity">
{$entity.additional_settings}
</div>
{/foreach}
</div>
</div>
{/if}
</div>
<div class="modal-footer x13allegro-modal-footer">
{if $formAction == 'update'}
<p class="x13allegro-modal-footer-left text-muted">
Jak korzystac z aktualizacji ofert? <a href="https://x13.pl/doc/dokumentacja-integracja-allegro-z-prestashop#aktualizacja-aukcji" target="_blank">Zobacz tutaj.</a><br/>
Pierwszą aktualizację prosimy przeprowadzić na mniejszej ilości ofert.
</p>
{/if}
<button type="button" class="btn btn-primary x-auction-form-submit">
{if $formAction == 'finish'}
{l s='Zakończ wybrane oferty' mod='x13allegro'}
{elseif $formAction == 'redo'}
{l s='Wznów wybrane oferty' mod='x13allegro'}
{elseif $formAction == 'auto_renew'}
{l s='Ustaw' mod='x13allegro'}
{elseif $formAction == 'update'}
{l s='Aktualizuj oferty' mod='x13allegro'}
{/if}
</button>
<button class="btn btn-default x-updater-action-close-popup" type="button">{l s='Zamknij' mod='x13allegro'}</button>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,175 @@
{extends file="helpers/list/list_content.tpl"}
{$has_bulk_actions = true}
{$bulk_actions = true}
{block name="td_content"}
{if $key == 'image'}
{if $tr.image}
<img width="50" src="{$tr.image}" alt="{$tr.name}" class="label-tooltip" data-toggle="tooltip" data-html="true" data-placement="right" data-animation="true" data-original-title="&lt;img src=&quot;{$tr.image_large}&quot; &gt;">
{else}
<i class="icon-picture-o fa fa-picture-o" style="font-size: 50px; color: lightgrey"></i>
{/if}
{elseif $key == 'auto_renew'}
{if $tr.id_product}
<select name="auto_renew[{$tr.id_auction}]" data-id="{$tr.id_auction}" style="padding-left: 4px; padding-right: 4px;">
<option value="" {if !is_numeric($tr.auto_renew)}selected="selected"{/if}>{l s='domyślnie' mod='x13allegro'}</option>
<option value="1" {if is_numeric($tr.auto_renew) && $tr.auto_renew == 1}selected="selected"{/if}>{l s='tak' mod='x13allegro'}</option>
<option value="0" {if is_numeric($tr.auto_renew) && ($tr.auto_renew == 0 || $tr.auto_renew == -1)}selected="selected"{/if}>{l s='nie' mod='x13allegro'}</option>
</select>
{if is_numeric($tr.auto_renew) && $tr.auto_renew == -1}
<div class="label-tooltip auction-auto-renew-error" data-toggle="tooltip" data-placement="left" data-animation="true" data-original-title="Wystąpił błąd podczas automatycznego wznowienia, popraw błędy oferty i włącz automatyczne wznawianie ponownie.">
<i class="icon-exclamation-triangle"></i>&nbsp;{l s='błąd wznawiania' mod='x13allegro'}
</div>
{/if}
{else}
--
{/if}
{elseif $key == 'price'}
{if $tr.format == 'AUCTION'}
{if $tr.price_current > $tr.price_starting}
{l s='aktualna' mod='x13allegro'}: {$tr.price_current|string_format:"%.2f"}
{else}
{l s='wywoławcza' mod='x13allegro'}: {$tr.price_starting|string_format:"%.2f"}
{/if}
{if $tr.price_minimal}<br>{l s='minimalna' mod='x13allegro'}: {$tr.price_minimal|string_format:"%.2f"}{/if}
{if $tr.price}<br>{l s='kup teraz' mod='x13allegro'}: {$tr.price|string_format:"%.2f"}{/if}
{else}
{if $xallegroFilterMarketplace == 'all'}
{$tr.marketplaces[$tr.base_marketplace].priceBuyNow} {$tr.marketplaces[$tr.base_marketplace].currencySign}
{if !empty($tr.marketplaces)}
{foreach $tr.marketplaces as $marketplaceId => $marketplace}
{if $marketplaceId == $tr.base_marketplace}
{continue}
{/if}
<hr>{if $marketplace.priceBuyNow !== null}{$marketplace.priceBuyNow}{else}--{/if} {$marketplace.currencySign}
{/foreach}
{/if}
{else}
{if $tr.marketplaces[$xallegroFilterMarketplace].priceBuyNow !== null}{$tr.marketplaces[$xallegroFilterMarketplace].priceBuyNow}{else}--{/if} {$tr.marketplaces[$xallegroFilterMarketplace].currencySign}
{$priceTooltipContent = []}
{if $tr.marketplaces|count > 1}
{$priceTooltipContent[] = "{$tr.marketplaces[$xallegroFilterMarketplace]['name']}: <b>{if $tr.marketplaces[$xallegroFilterMarketplace].priceBuyNow !== null}{$tr.marketplaces[$xallegroFilterMarketplace].priceBuyNow}{else}--{/if} {$tr.marketplaces[$xallegroFilterMarketplace].currencySign}</b>"}
{foreach $tr.marketplaces as $marketplaceId => $marketplace}
{if $marketplaceId == $xallegroFilterMarketplace}
{continue}
{/if}
{$priceTooltipContent[] = "{$marketplace.name}: <b>{if $marketplace.priceBuyNow !== null}{$marketplace.priceBuyNow}{else}--{/if} {$marketplace.currencySign}</b>"}
{/foreach}
{/if}
{if !empty($priceTooltipContent)}
<i class="icon-globe label-tooltip auction-marketplace-label" data-toggle="tooltip" data-html="true" data-original-title="{'<br>'|implode:$priceTooltipContent}"></i>
{/if}
{/if}
{/if}
{elseif $key == 'status' && $tr.marketplaces[$tr.base_marketplace]['status'] == 'ENDED'}
{$tr.marketplaces[$tr.base_marketplace]['statusTranslated']}
{elseif $key == 'sold' || $key == 'visits' || $key == 'status' || $key == 'marketplace'}
{if $key == 'status'}
{$columnKeyView = "statusTranslated"}
{elseif $key == 'marketplace'}
{$columnKeyView = "name"}
{else}
{$columnKeyView = $key}
{/if}
{if $xallegroFilterMarketplace == 'all'}
{$tr.marketplaces[$tr.base_marketplace][$columnKeyView]}
{if !empty($tr.marketplaces)}
{foreach $tr.marketplaces as $marketplaceId => $marketplace}
{if $marketplaceId == $tr.base_marketplace}
{continue}
{/if}
{if $key == 'status' && $marketplace['status'] != 'APPROVED' && !empty($marketplace['statusDetails'])}
{call printTooltipStatusContent statusDetails=$marketplace['statusDetails'] assign='tooltipStatusContent'}
{else}
{$tooltipStatusContent = ""}
{/if}
<hr><span {if !empty($tooltipStatusContent)}class="badge badge-warning label-tooltip auction-marketplace-status-label" data-toggle="tooltip" data-html="true" data-original-title="{$tooltipStatusContent}"{/if}>{$marketplace[$columnKeyView]}</span>
{/foreach}
{/if}
{else}
{if $key == 'status' && $tr.marketplaces[$xallegroFilterMarketplace]['status'] != 'APPROVED' && !empty($tr.marketplaces[$xallegroFilterMarketplace]['statusDetails'])}
{call printTooltipStatusContent statusDetails=$tr.marketplaces[$xallegroFilterMarketplace]['statusDetails'] assign='tooltipStatusContent'}
{else}
{$tooltipStatusContent = ""}
{/if}
<span {if !empty($tooltipStatusContent)}class="badge badge-warning label-tooltip auction-marketplace-status-label" data-toggle="tooltip" data-html="true" data-original-title="{$tooltipStatusContent}"{/if}>{$tr.marketplaces[$xallegroFilterMarketplace][$columnKeyView]}</span>
{$tooltipContent = []}
{if $tr.marketplaces|count > 1}
{if $key == 'marketplace'}
{$tooltipContent[] = "{$tr.marketplaces[$xallegroFilterMarketplace][$columnKeyView]}"}
{else}
{$tooltipContent[] = "{$tr.marketplaces[$xallegroFilterMarketplace]['name']}: <b>{$tr.marketplaces[$xallegroFilterMarketplace][$columnKeyView]}</b>"}
{/if}
{foreach $tr.marketplaces as $marketplaceId => $marketplace}
{if $marketplaceId == $xallegroFilterMarketplace}
{continue}
{/if}
{if $key == 'marketplace'}
{$tooltipContent[] = "{$marketplace[$columnKeyView]}"}
{else}
{$tooltipContent[] = "{$marketplace.name}: <b>{$marketplace[$columnKeyView]}</b>"}
{/if}
{/foreach}
{/if}
{if !empty($tooltipContent)}
<i class="icon-globe label-tooltip auction-marketplace-label" data-toggle="tooltip" data-html="true" data-original-title="{'<br>'|implode:$tooltipContent}"></i>
{/if}
{/if}
{elseif $key == 'status_cz'}
{if $tr.$key}
{if $tr.marketplaces['allegro-cz']['status'] != 'APPROVED' && !empty($tr.marketplaces['allegro-cz']['statusDetails'])}
{call printTooltipStatusContent statusDetails=$tr.marketplaces['allegro-cz']['statusDetails'] assign='tooltipStatusContent'}
{else}
{$tooltipStatusContent = ""}
{/if}
<span {if !empty($tooltipStatusContent)}class="badge badge-warning label-tooltip auction-marketplace-status-label" data-toggle="tooltip" data-html="true" data-original-title="{$tooltipStatusContent}"{/if}>{$tr.$key}</span>
{else}
--
{/if}
{elseif $key == 'status_sk'}
{if $tr.$key}
{if $tr.marketplaces['allegro-sk']['status'] != 'APPROVED' && !empty($tr.marketplaces['allegro-sk']['statusDetails'])}
{call printTooltipStatusContent statusDetails=$tr.marketplaces['allegro-sk']['statusDetails'] assign='tooltipStatusContent'}
{else}
{$tooltipStatusContent = ""}
{/if}
<span {if !empty($tooltipStatusContent)}class="badge badge-warning label-tooltip auction-marketplace-status-label" data-toggle="tooltip" data-html="true" data-original-title="{$tooltipStatusContent}"{/if}>{$tr.$key}</span>
{else}
--
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}
{function name=printTooltipStatusContent}
{$content = "Ostatni odczytany status: <b>{$statusDetails['status']}</b> {if $statusDetails['statusDate']}<i>({$statusDetails['statusDate']})</i>{/if}"}
{if !empty($statusDetails['statusRefusalReasons'])}
{$content = $content|cat:"<br><br>Dodatkowe informacje:"}
{foreach $statusDetails['statusRefusalReasons'] as $reason}
{$content = $content|cat:"<br>$reason"}
{/foreach}
{/if}
{$content}
{/function}

View File

@@ -0,0 +1,76 @@
{extends file="helpers/list/list_footer.tpl"}
{block name="after"}
<div class="modal" id="xallegro_auction_form_modal" data-backdrop="static" data-keyboard="false"></div>
<div class="modal" id="xallegro_auction_list_settings" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Ustawienia listy' mod='x13allegro'}</h4>
</div>
<div class="modal-body x13allegro-modal-body">
<div class="alert alert-info">
{l s='Nowo dodane kolumny w aktualizacji modułu będą zawsze domyślnie widoczne. Zapisz wybrane ustawienie aby to zmienić.' mod='x13allegro'}
</div>
<table class="auction-fields-list-table table">
<colgroup>
<col width="30px">
<col width="30px">
<col>
</colgroup>
<thead>
<tr>
<th></th>
<th class="text-center"><i class="icon-sort"></i></th>
<th>{l s='Kolumna' mod='x13allegro'}</th>
</tr>
</thead>
<tbody>
{if !isset($auctionFieldsListSettings.default)}
{$fieldsListProfile = $auctionFieldsList}
{else}
{$fieldsListProfile = $auctionFieldsListSettings.default}
{/if}
{foreach $fieldsListProfile as $fieldId => $enabled}
<tr>
<td class="text-center"><input type="checkbox" value="{$fieldId}" class="auction-fields-list-check" {if $enabled}checked="checked"{/if} {if isset($auctionFieldsList[$fieldId].settings.readonly)}disabled="disabled"{/if}></td>
<td class="auction-fields-list-sort text-center"><i class="icon-bars"></i></td>
<td>
{if isset($auctionFieldsList[$fieldId].settings.title)}{$auctionFieldsList[$fieldId].settings.title}{else}{$auctionFieldsList[$fieldId].title}{/if}
{if isset($auctionFieldsList[$fieldId].settings.desc)}<small><i>({$auctionFieldsList[$fieldId].settings.desc})</i></small>{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" name="saveAuctionListSettings" class="btn btn-primary">{l s='Zapisz' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="offer_unbind_modal_alert">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Czy na pewno chcesz usunąć wybrane powiązania ofert?' mod='x13allegro'}</h2>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-default modal_alert-cancel">{l s='Nie' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Tak' mod='x13allegro'}</button>
</div>
</div>
</div>
<script>
$(function() {
var XAllegro = new X13Allegro();
XAllegro.auctionList();
});
</script>
{/block}

View File

@@ -0,0 +1,76 @@
{extends file="helpers/list/list_header.tpl"}
{$has_bulk_actions = true}
{$bulk_actions = true}
{block name=leadin}
{if isset($accountSwitch)}{$accountSwitch}{/if}
{/block}
{block name="startForm"}
<form method="post" action="{$override_action}" class="clearfix" id="form-{$list_id}">
{/block}
{block name="preTable"}
<div class="row">
<div class="col-sm-6">
<div class="xallegro-helper-filters">
<div class="form-group">
<label for="xallegroFilterStatus" class="control-label">{l s='Status oferty' mod='x13allegro'}</label>
<select id="xallegroFilterStatus" class="fixed-width-xl" name="xallegroFilterStatus">
<option value="all" {if $xallegroFilterStatus == 'all'}selected="selected"{/if}>{l s='wszystkie' mod='x13allegro'}</option>
<option value="inactive" {if $xallegroFilterStatus == 'inactive'}selected="selected"{/if}>{l s='szkic' mod='x13allegro'}</option>
<option value="active" {if $xallegroFilterStatus == 'active'}selected="selected"{/if}>{l s='aktywna' mod='x13allegro'}</option>
<option value="ended" {if $xallegroFilterStatus == 'ended'}selected="selected"{/if}>{l s='zakończona' mod='x13allegro'}</option>
<option value="activating" {if $xallegroFilterStatus == 'activating'}selected="selected"{/if}>{l s='zaplanowana' mod='x13allegro'}</option>
</select>
</div>
<div class="form-group">
<label for="xallegroFilterMarketplace" class="control-label">{l s='Rynek' mod='x13allegro'}</label>
<select id="xallegroFilterMarketplace" class="fixed-width-xl" name="xallegroFilterMarketplace">
<option value="all" {if $xallegroFilterMarketplace == 'all'}selected="selected"{/if}>{l s='wszystkie' mod='x13allegro'}</option>
{foreach $marketplaceFilters as $marketplace}
<option value="{$marketplace.id}" {if $xallegroFilterMarketplace == $marketplace.id}selected="selected"{/if}>{$marketplace.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="col-sm-6 text-right">
<div class="xallegro-helper-buttons">
<a class="btn btn-info" href="#" id="showProductizationTools">
<i class="icon-cogs"></i> {l s='Produktyzacja' mod='x13allegro'}
</a>
<a class="btn btn-warning" id="bulkUpdateAuctionsTrigger">
<i class="icon-cogs"></i> {l s='Aktualizuj zaznaczone' mod='x13allegro'}
</a>
<a class="btn btn-default" id="auctionListSettings">
<i class="icon-cogs"></i> {l s='Ustawienia listy' mod='x13allegro'}
</a>
</div>
</div>
</div>
<div class="row" id="productizationTools" {if $filterByProductization eq false}style="display: none;"{/if}>
<div class="col-sm-6">
<h4>{l s='Katalog Allegro (produktyzacja)' mod='x13allegro'}</h4>
<div class="alert alert-info">
{l s='W celu ułatwienia spełnienia wymogów Allegro w ramach połączenia Państwa ofert z ich Katalogiem Allegro, umożliwiamy pokazanie tych ofert, które znajdują się w kategoriach gdzie jest to wymagane, a jeszcze nie są z nim połączone. Więcej informacji:' mod='x13allegro'} <a href="https://allegro.pl/dla-sprzedajacych/kategoria/produktyzacja">https://allegro.pl/dla-sprzedajacych/kategoria/produktyzacja</a>
</div>
<div>
{if $filterByProductization eq false}
<a class="btn btn-primary" href="{$currentIndex}&filterByProductization=1">
{l s='Pokaż oferty, które mogą wymagać powiązania z Katalogiem Allegro' mod='x13allegro'}
</a>
{else}
<a class="btn btn-warning" href="{$currentIndex}&resetFilterByProductization=1">
<i class="icon-eraser"></i> {l s='Wyczyść filtrowanie dotyczące Katalogu Allegro' mod='x13allegro'}
</a>
{/if}
</div>
<hr>
</div>
</div>
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,150 @@
{if version_compare($smarty.const._PS_VERSION_, '1.6.0.0', '<')}
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$toolbar_title}
{else}
{include file="page_header_toolbar.tpl" page_header_toolbar_btn=$toolbar_btn title=$toolbar_title}
{/if}
<div class="leadin">{block name="leadin"}{/block}</div>
<form id="{$table}_form" action="" method="post">
<input type="hidden" name="show" value="{$show}" />
<input type="hidden" name="id_auction" value="{$id_auction}" />
<div class="row">
<div class="panel col-lg-12" x-name="allegro_products">
<div class="panel-heading"><i class="icon-gavel"></i> Aukcje</div>
<table class="table">
<colgroup>
<col width="5px">
<col width="260px">
<col width="150px">
<col width="130px">
<col/>
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th>&nbsp;</th>
<th><span class="title_box">Tytuł aukcji</span></th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach $auctions as $index => $auction}
<tr class="{if $index is odd}alt_row odd{/if}">
<td class="center" style="border-bottom: 1px dashed #DDD;vertical-align:middle;padding-top:8px;padding-bottom:8px;">
<input type="checkbox" name="item[{$index}][enabled]" value="1" class="noborder" x-name="product_switch" checked="checked" />
</td>
<td colspan="7" style="border-bottom: 1px dashed #DDD;vertical-align:middle;">
<p style="margin:0;">{$auction->productObj->name}{if isset($auction->productObj->name_attribute)} - {$auction->productObj->name_attribute}{/if} - <strong>{$auction->productObj->price_buy_now_default} zł</strong></p>
</td>
</tr>
<tr class="{if $index is odd}alt_row odd{/if}" x-name="product" x-id="{$index}">
<td></td>
<td style="vertical-align: top; padding-top:10px;">
<input type="text" name="item[{$index}][title]" value="{$auction->item->title}" size="45" x-name="title" disabled="disabled" />
</td>
<td style="vertical-align: top;padding-top:10px;">
<span class="clearfix">
<input type="text" name="item[{$index}][quantity]" value="{$auction->quantity}" size="3" data-cast="integer" x-name="quantity" x-oos="{$auction->productObj->quantity_oos}" {if $quantity_check}x-max="{$auction->productObj->quantity_max}"{/if} style="width: 70px; float: left;" />
<input type="hidden" name="item[{$index}][quantity_oos]" value="{$auction->productObj->quantity_oos}">
</span>
<p class="clearfix">Na stanie: <strong>{$auction->productObj->quantity}</strong></p>
</td>
<td style="vertical-align: top;padding-top:10px;">
<label for="item_price_buy_now" class="t">Cena <b>Kup teraz:</b></label>
<input type="text" id="item_price_buy_now" name="item[{$index}][price_buy_now]" value="{$auction->price_buy_now}" size="11" data-cast="float" x-name="price_buy_now" />
</td>
<td style="vertical-align: middle;padding-top:10px;">
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="copy_price_buy_now_default" data-price="{$auction->productObj->price_buy_now_default}">
<i class="icon-copy"></i> <span>Kopiuj cenę ostateczną produktu ({$auction->productObj->price_buy_now_default} zł)</span>
</a>
</p>
{if $price_markup}
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="copy_price_buy_now" data-price="{$auction->productObj->price_buy_now}">
<i class="icon-copy"></i> <span>Kopiuj cenę z ustawioną marżą ({$auction->productObj->price_buy_now} zł)</span>
</a>
</p>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="panel col-lg-12" x-name="allegro_bulk">
<div class="panel-heading">
<i class="icon-copy"></i> Masowe ustawienia dla wszystkich aukcji
</div>
<table class="table">
<colgroup>
<col width="5px">
<col width="150px">
<col width="130px">
<col/>
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th>&nbsp;</th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr style="background-color: #ececec;">
<td style="border-bottom: none;">&nbsp;</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<label for="bulk_quantity" class="t">Ilość:</label>
<input type="text" value="" size="3" id="bulk_quantity" x-name="bulk_quantity" data-cast="integer" />
</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<label for="bulk_price_buy_now" class="t">
Cena Kup teraz (narzut):
<a href="#" title="Dodaj marżę" x-name="bulk_price_buy_now" x-action="up"><i class="icon-plus-sign"></i></a>
<a href="#" title="Usuń marżę" x-name="bulk_price_buy_now" x-action="down"><i class="icon-minus-sign"></i></a>
</label>
<input type="text" value="" size="11" id="bulk_price_buy_now" x-name="bulk_price_buy_now" data-cast="integer" />
</td>
<td style="border-bottom: none; vertical-align: middle;padding-top:10px;">
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_copy_price_buy_now_default">
<i class="icon-copy"></i> <span>Kopiuj ceny ostateczne produktu</span>
</a>
</p>
{if $price_markup}
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_copy_price_buy_now">
<i class="icon-copy"></i> <span>Kopiuj ceny z ustawioną marżą</span>
</a>
</p>
{/if}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="panel col-lg-12" style="padding: 0;">
<div class="panel-footer" style="margin: 0;">
<button type="submit" name="submitEditAuctions" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Zapisz aukcje' mod='x13allegro'}</button>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,10 @@
{if isset($auctions) && !empty($auctions)}
{include file='./content-bootstrap.tpl'}
<script type="text/javascript">
var XAllegro = new X13Allegro();
XAllegro.auctionEdit();
</script>
{else}
{l s='Brak wybranych aukcji' mod='x13allegro'}
{/if}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,50 @@
{extends file="helpers/form/form.tpl"}
{$isModernLayout = version_compare($smarty.const._PS_VERSION_, '1.7.7.0', '>=')}
{block name="legend"}
{$smarty.block.parent}
<div class="clearfix">
<div class="form-wrapper">
<div class="{if $isModernLayout}col-lg-4{else}col-lg-3{/if}"></div>
<div class="{if $isModernLayout}col-lg-8{else}col-lg-9{/if}">
<div class="{if $isModernLayout}col-lg-4{else}col-lg-3{/if}"><h4>{l s='Przewoźnik w Twoim sklepie' mod='x13allegro'}</h4></div>
{if $f > 0}<div class="{if $isModernLayout}col-lg-4{else}col-lg-3{/if}"><h4>{l s='Operator numeru śledzenia w Allegro' mod='x13allegro'}</h4></div>{/if}
</div>
</div>
</div>
{/block}
{block name="input"}
{if $f > 0}
<div class="{if $isModernLayout}col-lg-4{else}col-lg-3{/if}">{$smarty.block.parent}</div>
<div class="{if $isModernLayout}col-lg-8{else}col-lg-9{/if}">
<select id="{if isset($input.id)}{$input.id}{else}{$input.name_operator}[id_operator]{/if}" class="fixed-width-xxl allegro-operator-select" name="{$input.name_operator|escape:'html':'utf-8'}[id_operator]">
{if isset($input.options_operators.default)}
<option value="{$input.options_operators.default.value|escape:'html':'utf-8'}">{$input.options_operators.default.label|escape:'html':'utf-8'}</option>
{/if}
{foreach $input.options_operators.query as $option}
{capture name='select_name'}{$input.name_operator}[id_operator]{/capture}
<option value="{$option.id|escape:'html':'utf-8'}" {if $fields_value[$smarty.capture.select_name] == $option.id}selected="selected"{/if}>{$option.name|escape:'html':'utf-8'}</option>
{/foreach}
</select>
<div class="allegro-operator-other" style="display: none;">
{capture name='input_name'}{$input.name_operator}[operator_name]{/capture}
<input type="text" id="{if isset($input.id)}{$input.id}{else}{$input.name_operator}[operator_name]{/if}" class="fixed-width-xxl" name="{$input.name_operator|escape:'html':'utf-8'}[operator_name]" value="{$fields_value[$smarty.capture.input_name]|escape:'html':'UTF-8'}">
<p class="help-block">{l s='Wybierając operatora "Inny" musisz podać jego nazwę' mod='x13allegro'}</p>
</div>
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="after"}
<script>
var XAllegro = new X13Allegro();
XAllegro.carriersForm();
</script>
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,99 @@
{extends file="helpers/form/form.tpl"}
{block name="input_row"}
{if isset($input.copy_parameters)}
{if $input.name == 'copy_parameters'}
<hr />
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<a href="#" id="copy_parameters_link"><b>{l s='Skopiuj parametry z innego mapowania' mod='x13allegro'} <i class="icon-caret-down"></i></b></a>
</div>
</div>
{/if}
<div class="copy-parameters-content" style="display: none;">
{if $form_id}
{$smarty.block.parent}
{if $input.name == 'copy_parameters_mode'}
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<button type="submit" name="submitCopyParameters" class="btn btn-default"><i class="icon-copy"></i>&nbsp;&nbsp;{l s='Kopiuj parametry' mod='x13allegro'}</button>
</div>
</div>
{/if}
{elseif !$form_id && $input.name == 'copy_parameters_mode'}
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
{l s='Musisz najpierw zapisać tę ścieżkę kategorii.' mod='x13allegro'}
</div>
</div>
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="field"}
{if $input.name == 'id_allegro_category'}
{$parent_id = 0}
{foreach $input.path as $value}
<div class="allegro-category-select allegro-category-select-inline">
<select name="{$input.name}[]">
<option value="0">{l s='-- Wybierz --' mod='x13allegro'}</option>
{foreach $input.categories as $category}
{if $parent_id == $category.parent_id}
<option value="{$category.id}" {if $value !== null && $value.id == $category.id}selected="selected"{/if}>
{$category.name}
</option>
{/if}
{/foreach}
</select>
</div>
{if $value !== null}
{$parent_id = $value.id}
{/if}
{/foreach}
<div id="xallegro_category_int_group">
<label for="allegro_category_input" class="control-label">{l s='Numer kategorii' mod='x13allegro'}:</label>
<input type="text" id="allegro_category_input" class="fixed-width-xxl" name="allegro_category_input" value="{$allegro_category_input}" data-cast="string" />
<input type="hidden" id="allegro_category_current" name="allegro_category_current" value="{$allegro_category_input}" data-cast="string" />
</div>
{elseif $input.name == 'tag-manager'}
{if empty($input.content)}
<div class="alert alert-info">
<p>{l s='Zapisz tę ścieżkę kategorii aby umożliwić mapowanie tagów.' mod='x13allegro'}</p>
</div>
{else}
{$input.content}
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="other_input"}
{if $key == 'category_parameters'}
{$field}
<div id="category_parameters_info" class="form-wrapper row" style="display: none;">
<span class="col-lg-4"></span>
<span class="col-lg-8">
<span class="x13allegro-category-parameters-info-required">*</span> - pole wymagane<br/>
<span class="x13allegro-category-parameters-info-productization"></span> - parametr z <strong>Katalogu Allegro</strong>
</span>
</div>
{/if}
{/block}
{block name="after"}
<div class="modal" id="xallegro_parameter_map_form_modal" data-backdrop="static" data-keyboard="false"></div>
<script>
var XAllegro = new X13Allegro();
XAllegro.categoryForm();
</script>
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,183 @@
<div class="modal-dialog" role="document">
<form action="#" method="post" class="defaultForm form-horizontal">
<input type="hidden" name="id_xallegro_category" value="{$categoryId}">
<input type="hidden" name="xallegro_parameter_id" value="{$parameterId}">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close xallegro-parameter-map-close"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Mapowanie parametru' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">{$parameterName} {if $parameterUnit}({$parameterUnit}){/if}</h6>
<p class="help-block">{$categoryPath}</p>
</div>
<div class="modal-body x13allegro-modal-body">
<ul class="nav nav-tabs" id="itemTab_parameterMap">
<li class="active">
<a href="#itemTab_parameterMap_default" id="navTab_parameterMap_default" aria-controls="itemTab_parameterMap_default" role="tab" data-toggle="tab">
{l s='Wartość domyślna' mod='x13allegro'}
</a>
</li>
<li>
<a href="#itemTab_parameterMap_mapping" id="navTab_parameterMap_mapping" aria-controls="itemTab_parameterMap_mapping" role="tab" data-toggle="tab">
{l s='Mapowanie' mod='x13allegro'} <span class="badge">{if !empty($mapValuesForm)}{$mapValuesForm|count}{/if}</span>
</a>
</li>
</ul>
<div class="tab-content panel clearfix" id="itemTab_parameterMap_Content" role="tabpanel">
<div class="tab-pane active" id="itemTab_parameterMap_default">
{$defaultParameterForm}
</div>
<div class="tab-pane" id="itemTab_parameterMap_mapping">
<table class="table xallegro-parameter-map-table">
<colgroup>
{if $parameterType != 'dictionary'}<col width="30px">{/if}
{if $parameterType == 'dictionary' || $isRangeValue}<col width="230px">{/if}
<col width="230px">
<col>
<col width="110px">
</colgroup>
<thead>
<tr>
{if $parameterType != 'dictionary'}<th><i class="icon-sort"></i></th>{/if}
{if $parameterType == 'dictionary' || $isRangeValue}
<th>
{if $parameterType == 'dictionary'}{l s='Wartość parametru Allegro' mod='x13allegro'}{else}{l s='Tryb mapowania' mod='x13allegro'}{/if}
</th>
{/if}
<th>{if $parameterType == 'dictionary'}{l s='Ustaw jeśli' mod='x13allegro'}{else}{l s='Wstaw wartość' mod='x13allegro'}{/if}</th>
<th>{l s='Wartość w sklepie' mod='x13allegro'}</th>
<th></th>
</tr>
</thead>
<tbody>
{if !empty($mapValuesForm)}
{foreach $mapValuesForm as $mapValue}
<tr data-saved="1">
{if $parameterType != 'dictionary'}
<td class="xallegro-parameter-sort text-center">
<i class="icon-bars"></i>
</td>
{/if}
{if isset($mapValue.valueId)}
<td class="xallegro-parameter-valueId">
<input type="hidden" name="xallegro_parameter_map[][valueId]" value="{$mapValue.valueId}" data-name="{$mapValue.valueId_name}" class="input-parameter-map">
<span>{$mapValue.valueId_name}</span>
</td>
{/if}
<td class="xallegro-parameter-rule">
<input type="hidden" name="xallegro_parameter_map[][rule]" value="{$mapValue.rule}" data-name="{$mapValue.rule_name}" class="input-parameter-map">
{if isset($mapValue.ambiguous)}
<input type="hidden" name="xallegro_parameter_map[][ambiguous][rule]" value="{$mapValue.ambiguous.rule}" data-name="{$mapValue.ambiguous.rule_name}" class="input-ambiguous-parameter-map">
{/if}
<span>{$mapValue.rule_name}</span>
</td>
<td class="xallegro-parameter-ruleValue">
{if is_array($mapValue.ruleValue)}
<input type="hidden" name="xallegro_parameter_map[][ruleValue][rangeMin]" value="{$mapValue.ruleValue.rangeMin}" data-name="{$mapValue.ruleValue.rangeMin_name}" class="input-parameter-map rangeMin">
<input type="hidden" name="xallegro_parameter_map[][ruleValue][rangeMax]" value="{$mapValue.ruleValue.rangeMax}" data-name="{$mapValue.ruleValue.rangeMax_name}" class="input-parameter-map rangeMax">
<span>
{if $mapValue.valueId == 'range_split'}
od: {$mapValue.ruleValue.rangeMin_name}<br>
do: {$mapValue.ruleValue.rangeMax_name}
{else}
{$mapValue.ruleValue.rangeMin_name}
{/if}
</span>
{else}
<input type="hidden" name="xallegro_parameter_map[][ruleValue]" value="{$mapValue.ruleValue}" data-name="{$mapValue.ruleValue_name}" class="input-parameter-map">
{if isset($mapValue.ambiguous)}
<input type="hidden" name="xallegro_parameter_map[][ambiguous][ruleValue]" value="{$mapValue.ambiguous.ruleValue}" data-name="{$mapValue.ambiguous.ruleValue_name}" class="input-ambiguous-parameter-map">
{/if}
<span>
{$mapValue.ruleValue_name}
{if isset($mapValue.ambiguous)}
{if !empty($mapValue.ruleValue_name)}<br>{/if}
inna wartość: {$mapValue.ambiguous.rule_name}{if !empty($mapValue.ambiguous.ruleValue_name)} "{$mapValue.ambiguous.ruleValue_name}"{/if}
{/if}
</span>
{/if}
</td>
<td class="text-right">
<a title="Zapisz mapowanie" class="btn btn-primary xallegro-parameter-row-save" style="display: none;"><i class="icon-save"></i></a>
<a title="Anuluj mapowanie" class="btn xallegro-parameter-row-quit" style="display: none;"><i class="icon-remove"></i></a>
<a title="Edytuj mapowanie" class="btn xallegro-parameter-row-edit"><i class="icon-pencil"></i></a>
<a title="Usuń mapowanie" class="btn xallegro-parameter-row-delete"><i class="icon-trash"></i></a>
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<button class="btn btn-default xallegro-parameter-map-add">{l s='Dodaj nowe mapowanie' mod='x13allegro'}</button>
{if !$isDictionary || $isRangeValue || $hasAmbiguousValue}
<hr>
{if !$isDictionary}
<div class="help-block">
<p>Mapowanie tego parametru można sortować.<br>W przypadku gdy pierwsza wartość sklepowa będzie pusta, zostanie wybrana następna.</p>
</div>
{/if}
{if $isRangeValue}
<div class="help-block">
<p>Parametry zakresowe można mapować według dwóch trybów:</p>
<ul>
<li>z dwóch osobnych wartości sklepowych</li>
<li>z jednej wartości sklepowej, zostanie ona rozdzielona po znakach "-" lub "x"</li>
</ul>
</div>
{/if}
{if $hasAmbiguousValue}
<div class="help-block">
<p>Po wybraniu wartości niejednoznacznej "{$ambiguousValue}", należy wybrać wartość jaka zostanie automatycznie uzupełniona w polu "inna wartość".</p>
</div>
{/if}
{/if}
</div>
</div>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-left btn-default xallegro-parameter-map-close">{l s='Anuluj' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary xallegro-parameter-map-submit">{l s='Zapisz mapowanie parametru' mod='x13allegro'}</button>
</div>
</div>
</form>
</div>
<div class="modal_alert xallegro_modal_alert" id="xallegro_parameter_map_form_modal_alert_close">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Czy na pewno rezygnujesz z zapisania mapowania dla tego parametru?' mod='x13allegro'}</h2>
<p>{l s='Wprowadzone zmiany nie zostaną zapisane!'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-default modal_alert-cancel">{l s='Wróć' mod='x13allegro'}</button>
<button type="button" class="btn btn-danger modal_alert-confirm">{l s='Rezygnuje' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="xallegro_parameter_map_form_modal_alert_before_save">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Uzupełnij wszystkie kolumny aby zapisać aktulane mapowanie' mod='x13allegro'}</h2>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="xallegro_parameter_map_form_modal_alert_save">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Najpierw zapisz lub anuluj aktualne mapowanie' mod='x13allegro'}</h2>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,239 @@
{extends file="helpers/options/options.tpl"}
{block name="leadin"}
{if $ionCubeLicenseInfo !== false}
<div class="panel form-horizontal">
<div class="panel-heading">
<i class="icon-cogs"></i> {l s='Licencja' mod='x13allegro'}
</div>
<div class="form-wrapper">
<div class="form-group">
<div class="col-lg-8 col-lg-offset-4">
{$ionCubeLicenseInfo.html_content}
</div>
</div>
</div>
</div>
{/if}
{/block}
{block name="input"}
{if $key == 'AUCTION_MARKETPLACE_CONVERSION_RATE_VALUE'}
<div class="col-lg-4">
<p>
Uzupełnij kurs wymiany na podstawie domyślnej waluty sklepu<br>
Domyślna waluta sklepu: <i>{$field['currencyDefault']->name} ({$field['currencyDefault']->sign})</i>
</p>
<table class="table productization-search-table">
<thead>
<tr>
<th>{l s='Rynek' mod='x13allegro'}</th>
<th>{l s='Waluta' mod='x13allegro'}</th>
<th>{l s='Kurs wymiany' mod='x13allegro'}</th>
</tr>
</thead>
<tbody>
{foreach $field['currencies'] as $currency}
<tr>
<td>
{$currency.marketplace|regex_replace:"/^(\w+)/u":"<b>$1</b>"}
</td>
<td>
{$currency.currencyName} ({$currency.currencySign})
{if $field['currencyDefault']->id == $currency.currencyId}
<span class="label-tooltip" data-toggle="tooltip" data-original-title="Domyślna waluta sklepu">
&nbsp;&nbsp;<i class="icon-info-circle"></i>
</span>
{/if}
</td>
<td>
<input class="form-control fixed-width-sm xcast xcast-float" type="text" size="10" name="AUCTION_MARKETPLACE_CONVERSION_RATE_VALUE[{$currency.currencyId}]" value="{$currency.currencyRate}" {if $field['currencyDefault']->id == $currency.currencyId}readonly="readonly"{/if}>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{elseif $key == 'PRODUCTIZATION_SEARCH'}
<div class="col-lg-5">
<table class="table productization-search-table">
<thead>
<tr>
<th>{l s='Szukaj według' mod='x13allegro'}</th>
<th>{l s='Wybierz automatycznie' mod='x13allegro'}</th>
</tr>
</thead>
<tbody>
{include file='./productization-search-table.tpl' searchLabel='Kod GTIN' searchDesc='EAN13, ISBN, UPC' searchInput='GTIN'}
{include file='./productization-search-table.tpl' searchLabel='Kod MPN' searchInput='MPN'}
{include file='./productization-search-table.tpl' searchLabel='Kod referencyjny' searchInput='reference'}
{include file='./productization-search-table.tpl' searchLabel='Nazwa produktu' searchInput='product_name'}
</tbody>
</table>
</div>
{elseif $key == 'CRON_URL'}
<div class="col-lg-9">
<input type="{$field['type']}" size="{if isset($field['size'])}{$field['size']|intval}{else}5{/if}" value="{$field['value']|escape:'htmlall':'UTF-8'}" readonly="readonly" />
</div>
<div class="col-lg-9 col-lg-offset-3"><div class="help-block">{$field['desc']}</div></div>
{elseif $field['type'] == 'hr'}
<hr />
{elseif $field['type'] == 'separator'}
<div class="col-lg-9 col-lg-push-1">
<h4 style="font-size: 18px; font-weight: 600; margin: 20px 0 0 0;">{$field['heading']}</h4>
<hr style="margin: 15px 0 0 0;">
</div>
{elseif $field['type'] == 'badge_authorize'}
<div class="col-lg-9" style="padding-top: 7px;">
<span class="badge badge-danger">{l s='autoryzuj konto aby zmienić te ustawienia' mod='x13allegro'}</span>
</div>
{elseif $field['type'] == 'button'}
<a class="{$field['button_class']}" href="{if isset($field['button_href'])}{$field['button_href']}{else}#{/if}" {if isset($field['button_id'])}id="{$field['button_id']}"{/if}>
{$field['button_label']|escape:'htmlall':'UTF-8'}
</a>
{elseif $field['type'] == 'checkbox'}
<div class="col-lg-9">
{foreach $field['choices'] AS $choice}
<p class="checkbox clearfix">
{strip}
<label class="col-lg-5" for="{$key}_{$choice.key}" id="choice_{$key}_{$choice.key}">
<input type="checkbox" name="{$key}[{$choice.key}]" id="{$key}_{$choice.key}" value="{$choice.key}" {if isset($field['value'][$choice.key])}checked="checked"{/if} {if isset($choice.disabled) && $choice.disabled}disabled="disabled"{/if} /> <span class="choice-label">{$choice.name}</span> {if isset($choice.desc) && $choice.desc}<span class="help-block">{$choice.desc}</span>{/if}
</label>
{/strip}
</p>
{/foreach}
</div>
{elseif $field['type'] == 'bool'}
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg {if isset($field['class'])}{$field['class']}{/if}">
{strip}
<input type="radio" name="{$key}" id="{$key}_on" value="1" {if $field['value']} checked="checked"{/if}{if isset($field['js']['on'])} {$field['js']['on']}{/if}{if isset($field['disabled']) && $field['disabled']} disabled="disabled"{/if}/>
<label for="{$key}_on" class="radioCheck">
{l s='Yes' d='Admin.Global'}
</label>
<input type="radio" name="{$key}" id="{$key}_off" value="0" {if !$field['value']} checked="checked"{/if}{if isset($field['js']['off'])} {$field['js']['off']}{/if}{if isset($field['disabled']) && $field['disabled']} disabled="disabled"{/if}/>
<label for="{$key}_off" class="radioCheck">
{l s='No' d='Admin.Global'}
</label>
{/strip}
<a class="slide-button btn"></a>
</span>
</div>
{elseif $field['type'] == 'select'}
<div class="col-lg-9">
{if $field['list']}
<select class="form-control fixed-width-xxl {if isset($field['class'])}{$field['class']}{/if}" name="{$key}{if isset($field['multiple']) && $field['multiple']}[]{/if}"{if isset($field['js'])} onchange="{$field['js']}"{/if} id="{$key}" {if isset($field['size'])} size="{$field['size']}"{/if}{if isset($field['disabled']) && $field['disabled']} disabled="disabled"{/if}{if isset($field['multiple']) && $field['multiple']} multiple size=10 style="float: left; width: auto !important;"{/if}>
{foreach $field['list'] AS $k => $option}
<option value="{$option[$field['identifier']]}"{if $field['value'] == $option[$field['identifier']]|string_format:"%s" || (is_array($field['value']) && in_array($option[$field['identifier']]|string_format:"%s", $field['value']))} selected="selected"{/if}>{$option['name']}</option>
{/foreach}
</select>
{if isset($field['multiple']) && $field['multiple']}
<a href="#" class="btn btn-default js-x13-multiselect-disable-all" style="float: left; margin-left: 10px;">{l s='Odznacz wybrane' mod='x13allegro'}</a>
{/if}
{elseif isset($input.empty_message)}
{$input.empty_message}
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{* overriden field types - fix description *}
{if in_array($field['type'], ['button', 'checkbox', 'bool', 'select']) && isset($field['desc']) && !empty($field['desc'])}
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
{if is_array($field['desc'])}
{foreach $field['desc'] as $p}
{if is_array($p)}
<span id="{$p.id}">{$p.text}</span><br />
{else}
{$p}<br />
{/if}
{/foreach}
{else}
{$field['desc']}
{/if}
</div>
</div>
{/if}
{/block}
{block name="defaultOptions"}
{if isset($xallegro_update) && $xallegro_update}
<div class="panel">
<div class="panel-heading">{l s='Aktualizacja modułu' mod='x13allegro'}</div>
<table class="table" cellspacing="0" cellpadding="0" style="width: 100%; margin: auto;">
<thead>
<tr class="nodrag nodrop">
<th width="120px" class="center">{l s='Wersja' mod='x13allegro'}</th>
<th width="200px" class="center">{l s='Data wydania' mod='x13allegro'}</th>
<th>{l s='Lista zmian' mod='x13allegro'}</th>
</tr>
</thead>
<tbody>
{foreach $xallegro_update->changelog->bundle AS $bundle}
<tr>
<td class="center">{$bundle->attributes()->version}</td>
<td class="center">{$bundle->attributes()->date|date_format:"%d.%m.%Y"}</td>
<td>
<ul style="margin: 4px 0 4px 0;">
{foreach $bundle->list AS $change}
{if !empty($change)}
<li>{$change|ltrim:'- '}</li>
{/if}
{/foreach}
</ul>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{$smarty.block.parent}
{/block}
{block name="after"}
<div class="modal" id="xallegro_offer_full_synchronization_modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Wymuszenie stanu ofert według informacji z Allegro' mod='x13allegro'}</h4>
</div>
<div class="modal-body x13allegro-modal-body">
<div class="alert alert-info">
<p><strong>{l s='Pomaga roziązać problem z nieprawidłowo ustawionym statusem/widocznością na rynkach zagranicznych, nie aktualizowaniem się ilości/cen, błędnym zarchiwizowaniem powiązania.' mod='x13allegro'}</strong></p>
<ul style="margin-top: 15px;">
<li>{l s='Aktualizuje informacje o wszystkich powiązanych ofertach, tj.: ilość, cena, status (zakończona/zaplanowana) oraz widoczność na zagranicznych rynkach, według aktualnych danych z Allegro.' mod='x13allegro'}</li>
<li>{l s='Archiwizuje powiązania do nieistniejących ofert, oraz przywraca błędnie zarchiwizowane powiązania (jeśli nie zostały trwale usunięte).' mod='x13allegro'}</li>
</ul>
</div>
<div class="form-wrapper clearfix" style="display: none;">
<h4 id="synchronization_info"><i class="icon-refresh icon-spin"></i> <span>Trwa pobieranie informacji o ofertach dla kont Allegro</span></h4>
<ul id="synchronization_accounts"></ul>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" name="closeOfferFullSynchronization" class="btn btn-default pull-left" data-dismiss="modal">{l s='Zamknij' mod='x13allegro'}</button>
<button type="button" name="startOfferFullSynchronization" class="btn btn-primary pull-right">{l s='Rozpocznij' mod='x13allegro'}</button>
<a href="{$link->getAdminLink('AdminXAllegroAuctionsList')}" id="offerFullSynchronizationAuctionsList" class="btn btn-primary pull-right" style="display: none;">{l s='Lista ofert' mod='x13allegro'}</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var XAllegro = new X13Allegro();
XAllegro.configurationForm();
</script>
{/block}

View File

@@ -0,0 +1,21 @@
{if isset($field['value'][$searchInput]['search']) && $field['value'][$searchInput]['search']}
{$searchSelected = true}
{else}
{$searchSelected = false}
{/if}
<tr>
<td>
<label>
<input type="checkbox" class="productization-search-checkbox" name="PRODUCTIZATION_SEARCH[{$searchInput}][search]" value="1" {if $searchSelected}checked="checked"{/if}>
{$searchLabel}{if isset($searchDesc)}<br><small>{$searchDesc}</small>{/if}
</label>
</td>
<td>
<select class="productization-search-select" name="PRODUCTIZATION_SEARCH[{$searchInput}][select]" {if !isset($field['value'][$searchInput]['search']) || !$field['value'][$searchInput]['search']}disabled="disabled"{/if}>
<option value="always_first" {if isset($field['value'][$searchInput]['select']) && $field['value'][$searchInput]['select'] == 'always_first'}selected="selected"{/if}>{l s='zawsze pierwszy z listy znalezionych powiązań' mod='x13allegro'}</option>
<option value="only_single" {if isset($field['value'][$searchInput]['select']) && $field['value'][$searchInput]['select'] == 'only_single'}selected="selected"{/if}>{l s='tylko gdy znaleziono jedno powiązanie' mod='x13allegro'}</option>
<option value="none" {if (isset($field['value'][$searchInput]['select']) && $field['value'][$searchInput]['select'] == 'none') || !$searchSelected}selected="selected"{/if}>{l s='nie wybieraj' mod='x13allegro'}</option>
</select>
</td>
</tr>

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,3 @@
<a href="#" title="{$title|escape:'html':'UTF-8'}" x-name="log_details" data-id="{$id}" data-displayed="{$displayed}">
<i class="icon-search"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,25 @@
<p>{$level}&nbsp;<strong>{$type}</strong></p>
<p>
<span class="x13allegro_black">{l s='Środowisko' mod='x13allegro'}:</span> {$env}<br/>
{if isset($allegroAccount)}
<span class="x13allegro_black">{l s='Konto Allegro' mod='x13allegro'}:</span> {$allegroAccount}<br/>
{/if}
{if isset($employee)}
<span class="x13allegro_black">{l s='Przypisany pracownik' mod='x13allegro'}:</span> {$employee}<br/>
{/if}
{if isset($product)}
<span class="x13allegro_black">{l s='Produkt' mod='x13allegro'}:</span> {$product}<br/>
{/if}
{if isset($order)}
<span class="x13allegro_black">{l s='Zamówienie' mod='x13allegro'}:</span> {$order}<br/>
{/if}
<span class="x13allegro_black">{l s='Data ostatniego wystąpienia' mod='x13allegro'}:</span> {$last_occurrence}
</p>
<hr>
{if isset($isJson) && $isJson}<pre>{$message}</pre>{else}<p>{$message}</p>{/if}

View File

@@ -0,0 +1,24 @@
{extends file="helpers/list/list_footer.tpl"}
{block name="after"}
<script>
$(function() {
var XAllegro = new X13Allegro();
XAllegro.logList();
});
</script>
<div class="modal" id="log_details_modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document" style="width: 650px;">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Szczegóły loga' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small"><span></span></h6>
</div>
<div class="modal-body x13allegro-modal-body"></div>
<div class="modal-footer x13allegro-modal-footer"></div>
</div>
</div>
</div>
{/block}

View File

@@ -0,0 +1,16 @@
{extends file="helpers/list/list_header.tpl"}
{block name="preTable"}
<div class="row">
<div class="col-sm-12 text-right">
{if $unreadLogsCount}
<div class="form-group">
<p>{l s='Nieprzeczytanych logów o błędach' mod='x13allegro'}: {$unreadLogsCount}</p>
<a class="btn btn-default" href="#" id="markAllLogsAsRead">
<i class="icon-check-sign"></i> {l s='Oznacz wszystkie jako przeczytane' mod='x13allegro'}
</a>
</div>
{/if}
</div>
</div>
{/block}

View File

@@ -0,0 +1,27 @@
{extends file="helpers/options/options.tpl"}
{block name="input"}
{if $field['type'] == 'checkbox'}
<div class="col-lg-9">
{foreach $field['choices'] AS $choice}
<p class="checkbox clearfix">
{strip}
<label class="col-lg-5" for="{$key}_{$choice.key}" id="choice_{$key}_{$choice.key}">
<input type="checkbox" name="{$key}[{$choice.key}]" id="{$key}_{$choice.key}" value="{$choice.key}" {if isset($field['value'][$choice.key])}checked="checked"{/if} {if isset($choice.disabled) && $choice.disabled}disabled="disabled"{/if} /> <span class="choice-label">{$choice.name}</span> {if isset($choice.desc) && $choice.desc}<span class="help-block">{$choice.desc}</span>{/if}
</label>
{/strip}
</p>
{/foreach}
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="after"}
<script type="text/javascript">
var XAllegro = new X13Allegro();
XAllegro._configurationWiderColsFix($('#xallegro_log_form'));
XAllegro._configurationDependencies();
</script>
{/block}

View File

@@ -0,0 +1,31 @@
<div class="row">
<div class="col-md-4">
<label for="return_policy" class="control-label t">Warunki zwrotów</label>
<select id="return_policy" name="return_policy" class="" {if empty($afterSales['returnPolicies'])}disabled="disabled"{/if}>
<option value="">-- Wybierz --</option>
{foreach $afterSales['returnPolicies'] as $returnPolicy}
<option value="{$returnPolicy->id}" {if $returnPolicy->id == $account->return_policy}selected="selected"{/if}>{$returnPolicy->name}</option>
{/foreach}
</select>
</div>
<div class="col-md-4">
<label for="implied_warranty" class="control-label t">Reklamacja</label>
<select id="implied_warranty" name="implied_warranty" class="" {if empty($afterSales['impliedWarranties'])}disabled="disabled"{/if}>
<option value="">-- Wybierz --</option>
{foreach $afterSales['impliedWarranties'] as $impliedWarranty}
<option value="{$impliedWarranty->id}" {if $impliedWarranty->id == $account->implied_warranty}selected="selected"{/if}>{$impliedWarranty->name}</option>
{/foreach}
</select>
</div>
<div class="col-md-4">
<label for="warranty" class="control-label t">Gwarancja (opcjonalnie)</label>
<select id="warranty" name="warranty" class="" {if empty($afterSales['warranties'])}disabled="disabled"{/if}>
<option value="">-- Wybierz --</option>
{foreach $afterSales['warranties'] as $warranty}
<option value="{$warranty->id}" {if $warranty->id == $account->warranty}selected="selected"{/if}>{$warranty->name}</option>
{/foreach}
</select>
</div>
</div>

View File

@@ -0,0 +1,62 @@
<div class="modal bulk-category-selector" id="bulk_change_category_modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Działania masowe' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">{l s='Wybierz kategorie' mod='x13allegro'}</h6>
</div>
<div class="modal-body x13allegro-modal-body clearfix">
<div class="xproductization-category-list">
<div class="allegro-category-select">
<select name="bulk_id_allegro_category[]">
<option value="0">-- Wybierz --</option>
{foreach $categories as $category}
<option value="{$category.id}">{$category.name}</option>
{/foreach}
</select>
</div>
<hr style="margin:20px 0 5px 0;">
</div>
<div class="xproductization-category-search">
<div class="form-group clearfix">
<label class="control-label">ID kategorii</label>
<input type="text" class="fixed-width-xl" value="" x-name="product_category_input" placeholder="{l s='ID Kategorii' mod='x13allegro'}">
<input type="hidden" value="" x-name="product_category_input_current">
<input type="hidden" value="0" x-name="product_category_input_is_leaf">
</div>
</div>
<hr style="margin:20px 0 5px 0;">
{include file='./bulk-product-selection.tpl' radioNameSuffix='0'}
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-primary bulk-category-submit">{l s='Ustaw wybraną kategorie' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="bulk_change_category_modal_alert_empty">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Nie wybrano żadnego produktu do masowej zmiany kategorii' mod='x13allegro'}</h2>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="bulk_change_category_modal_alert_leaf">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Nie wybrano poprawnej kategorii' mod='x13allegro'}</h2>
<p>{l s='Podano niepoprawny numer kategorii, lub wybrana kategoria nie jest najniższego rzędu' mod='x13allegro'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<ul class="nav nav-tabs" id="itemTabBulkParameters">
{foreach from=$categoryList key=categoryId item=item name=categoryList}
<li class="label-tooltip {if $smarty.foreach.categoryList.first}active{/if}" data-toggle="tooltip" data-original-title="{'/'|implode:$categoryPaths[$categoryId]}">
<a href="#itemTabBulkParameters_{$categoryId}" aria-controls="itemTabBulkParameters_{$categoryId}" role="tab" data-toggle="tab" data-item-tab="{$categoryId}">
{foreach from=$categoryPaths[$categoryId] item=categoryName name=categoryIterator}
{if $smarty.foreach.categoryIterator.last}{$categoryName} <small>({$categoryId})</small>{/if}
{/foreach}
</a>
</li>
{/foreach}
</ul>
<div class="tab-content panel clearfix" id="itemTabBulkParametersContent" role="tabpanel">
{foreach from=$categoryList key=categoryId item=item name=categoryList}
<div class="tab-pane {if $smarty.foreach.categoryList.first}active{/if}" id="itemTabBulkParameters_{$categoryId}" data-category="{$categoryId}">
<div class="xproductization-parameters-wrapper">
<div class="form-horizontal">
{$categoryParameters[$categoryId]}
</div>
</div>
<hr style="margin:20px 0 5px 0;">
<div class="xproductization-bulk-parameters-override checkbox">
<label>
<input type="checkbox" class="bulk-parameters-override" name="bulk_parameters_override[{$categoryId}]" value="1">
{l s='nadpisz uzupełnione już parametry' mod='x13allegro'}
</label>
</div>
{include file='./bulk-product-selection.tpl' productSelection=$item radioNameSuffix=$categoryId}
</div>
{/foreach}
</div>

View File

@@ -0,0 +1,42 @@
<div class="modal bulk-parameters-selector" id="bulk_parameters_modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Działania masowe' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">{l s='Ustaw parametry kategorii' mod='x13allegro'}</h6>
</div>
<div class="modal-body x13allegro-modal-body clearfix"></div>
<div class="modal-footer x13allegro-modal-footer">
<div class="x13allegro-modal-footer-left">
<span class="x13allegro-category-parameters-info-required">*</span> - pole wymagane<br/>
<span class="x13allegro-category-parameters-info-productization"></span> - parametr z <strong>Katalogu Allegro</strong>
</div>
<button type="button" class="btn btn-primary bulk-parameters-submit">{l s='Ustaw parametry' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="bulk_parameters_modal_alert_empty">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Nie wybrano żadnego produktu do masowego ustawienia parametrów kategorii' mod='x13allegro'}</h2>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="bulk_parameters_modal_alert_leaf">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Nie znaleziono żadnej poprawnej kategorii' mod='x13allegro'}</h2>
<p>{l s='W wybranych produktach nie znaleziono poprawnej katgorii, lub ustawiona kategoria nie jest najniższego rzędu' mod='x13allegro'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Ok' mod='x13allegro'}</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div class="xproductization-bulk-product">
<div class="xproductization-bulk-modal-product-selection radio pull-left">
<label>
<input type="radio" class="bulk-modal-product-radio" name="bulk_category_product_selection_{$radioNameSuffix}" value="all" checked="checked">
{l s='ustaw dla wszystkich' mod='x13allegro'}
</label>
<label>
<input type="radio" class="bulk-modal-product-radio" name="bulk_category_product_selection_{$radioNameSuffix}" value="chosen">
{l s='wybierz z listy' mod='x13allegro'}
</label>
</div>
<div class="xproductization-bulk-modal-product-table" style="display: none;">
<div class="pull-right">
<a href="#" class="btn btn-default bulk-modal-product-table-select" data-select="1"><i class="icon-check-sign"></i> {l s='Zaznacz wszystkie' mod='x13allegro'}</a>
<a href="#" class="btn btn-default bulk-modal-product-table-select" data-select="0"><i class="icon-check-empty"></i> {l s='Odznacz wszystkie' mod='x13allegro'}</a>
</div>
<table class="table">
<colgroup>
<col width="30px">
<col>
</colgroup>
<thead>
<tr>
<th colspan="2"></th>
</tr>
</thead>
<tbody>
{if isset($productSelection) && !empty($productSelection)}
{foreach $productSelection as $product}
<tr>
<td><input type="checkbox" id="bulk_product_{$product.index}_{$radioNameSuffix}" value="{$product.index}"></td>
<td><label for="bulk_product_{$product.index}_{$radioNameSuffix}">{$product.productName}{if !empty($product.productAttributeName)} - {$product.productAttributeName}{/if}</label></td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,14 @@
{$parent_id = 0}
{foreach $category_path as $id}
<select name="id_allegro_category[]" class="allegro-category-select">
<option value="0">-- Wybierz --</option>
{foreach $categories as $category}
{if $parent_id == $category.parent_id}
<option value="{$category.id}" {if $category.id == $id}selected="selected"{/if}>{$category.name}</option>
{/if}
{/foreach}
</select>
{$parent_id = $id}
{/foreach}

View File

@@ -0,0 +1,921 @@
{$isModernLayout = version_compare($smarty.const._PS_VERSION_, '1.7.7.0', '>=')}
{if isset($products) && !empty($products)}
{include file="page_header_toolbar.tpl" page_header_toolbar_btn=$toolbar_btn title=$toolbar_title}
<div class="leadin">{block name="leadin"}{/block}</div>
<div id="info-change-sandbox" class="alert alert-info" style="display: none;">
{l s='Dokonano zmiany konta sandbox, cechy kategorii zostaną zaktualizowane.' mod='x13allegro'}
</div>
<div class="bootstrap">
<div class="row">
{if isset($accountSwitch)}{$accountSwitch}{/if}
</div>
</div>
<div id="allegro-progress" class="bootstrap" style="display:none;">
<div class="row">
<div class="panel col-lg-12">
<p><i class="icon-refresh icon-spin"></i> Trwa pobieranie informacji o produktach z katalogu Allegro dla <span id="allegro-valuenow">0</span> z <span id="allegro-valuemax">0</span> produktów</p>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
{if $fees_enabled}
<div class="alert alert-info">
<p>
Zgodnie z ustawieniami tego konta, do kwoty oferty zostanie dodana wyliczona prowizja zgodnie z <a href="https://allegro.pl/pomoc/dla-sprzedajacych/oplaty-i-cenniki/jak-jest-obliczana-prowizja-od-sprzedazy-dykqgOq94iE" target="_blank" rel="noopener">cennikiem Allegro</a>.
Kwota prowizji doda się po wystawieniu oferty. <a data-toggle="modal" data-target="#fees_modal" href="#">Zobacz jak wyliczamy prowizje.</a>
</p>
</div>
{include file='./fees-modal.tpl'}
{/if}
<form id="allegro_main_form" class="bootstrap" action="" method="post" autocomplete="off">
<input type="hidden" value="x13allegro" name="x13allegro">
<input type="hidden" id="new_assoc_info_hide" name="new_assoc_info_hide" value="{$new_assoc_info}">
<div class="row">
<div id="allegro_products" class="panel col-lg-12" x-name="allegro_products">
<fieldset>
<div class="panel-heading"><i class="icon-book"></i> Produkty <span class="badge">{count($products)}</span></div>
<table class="table">
<colgroup>
<col width="30px">
<col width="350px">
<col width="160px">
<col width="150px">
<col>
<col width="315px">
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th class="center"></th>
<th><span class="title_box">Tytuł oferty</span></th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th><span class="title_box">Zdjęcia</span></th>
<th><span class="title_box">Szablon / Dodatkowe opcje</span></th>
</tr>
</thead>
<tbody>
{foreach $products AS $index => $product}
<tr
data-productization-status="0"
data-index="{$index}"
class="{if $product.disabled}product-disabled{/if} {if $product.allegro_status && $product.allegro_status.count > 0}exposed{/if} {if $index is odd}alt_row odd{/if} tr_auction_product"
>
<td class="center" style="border-bottom: 1px dashed #DDD;vertical-align:middle;padding-top:8px;padding-bottom:8px;">
<input type="checkbox" id="item_{$index}_enabled" name="item[{$index}][enabled]" value="1" x-name="product_switch" data-status="{$product.allegro_status && $product.allegro_status.count > 0}" data-disabled="{$product.disabled|intval}" class="noborder" disabled="disabled" />
</td>
<td colspan="{if !$product.disabled}5{else}7{/if}" style="border-bottom: 1px dashed #DDD;vertical-align:middle;">
<label for="item_{$index}_enabled" style="font-weight:normal; float:left; margin:0;">
{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}
- <strong>{$product.price_buy_now_default} {$marketplaces[$account->base_marketplace].currencySign}</strong>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
{if !$product.disabled}
<div class="xproductization-all-info">
<div class="xproductization-status" style="font-size: 11px; color: #999;">{l s='Trwa pobieranie informacji o produkcie' mod='x13allegro'}</div>
<div class="xproductization-category" style="font-size: 11px; color: #999; display: none;"></div>
<div class="xproductization-product-name" style="font-size: 11px; color: #999; display: none;">
{l s='Produkt' mod='x13allegro'}:&nbsp;<a href="" target="_blank" rel="nofollow"></a>
</div>
</div>
{/if}
</label>
<div class="xproductization-indicator-wrapper">
{if !$product.disabled}
<div class="text-right xproductization-indicator-wrapper-all">
<span class="xproductization-indicator">
<button type="button" class="xproductization-modal-btn label label-white" data-toggle="" data-target="#selection_modal_{$index}">
<i class="icon-refresh icon-spin"></i> Pobieranie informacji o produkcie
</button>
</span>
<span class="xproductization-mode-selector">
<select name="item[{$index}][productization_mode]" x-name="productization_mode" class="fixed-width-xl" data-current="ASSIGN" disabled="disabled">
<option value="ASSIGN" {if $productization_mode == 'ASSIGN'}selected="selected"{/if}>{l s='wystaw wg katalogu' mod='x13allegro'}</option>
<option value="NEW" {if $productization_mode == 'NEW'}selected="selected"{/if}>{l s='wystaw jako nowy produkt' mod='x13allegro'}</option>
</select>
</span>
</div>
{include file='./product-selection-modal.tpl'}
{/if}
<p class="x13allegro-product-auctio-count">{if $product.allegro_status && $product.allegro_status.count > 0}Wystawiono:<span class="x13allegro-product-auctio-count-small"> {$product.allegro_status.quantity} szt. na {$product.allegro_status.count} {if $product.allegro_status.count == 1}ofercie{else}ofertach{/if}</span>{/if}</p>
</div>
</td>
</tr>
<tr class="{if $product.allegro_status && $product.allegro_status.count > 0}exposed{/if} {if $index is odd}alt_row odd{/if}" style="display: none;" x-name="product" x-id="{$index}">
<td colspan="2" style="vertical-align: top; padding-top:10px;">
<input type="hidden" name="item[{$index}][id_auction]" value="" x-name="id_auction" />
<input type="hidden" name="item[{$index}][category_id]" value="0" x-name="category_id" />
<input type="hidden" name="item[{$index}][category_is_leaf]" value="0" x-name="category_is_leaf" />
<input type="hidden" name="item[{$index}][allegro_product_id]" value="" x-name="allegro_product_id" />
<input type="hidden" name="item[{$index}][allegro_product_name]" value="" x-name="allegro_product_name" />
<input type="hidden" name="item[{$index}][allegro_product_images]" value="" x-name="allegro_product_images" />
<input type="hidden" name="item[{$index}][allegro_product_description]" value="" x-name="allegro_product_description" />
<input type="hidden" name="item[{$index}][allegro_product_category_default]" value="" x-name="allegro_product_category_default" />
<input type="hidden" name="item[{$index}][allegro_product_category_similar]" value="" x-name="allegro_product_category_similar" />
<input type="hidden" name="item[{$index}][id_product]" value="{$product.id}" x-name="id_product" />
<input type="hidden" name="item[{$index}][id_product_attribute]" value="{$product.id_attribute}" x-name="id_product_attribute" />
<input type="hidden" name="item[{$index}][id_category_default]" value="{$product.id_category_default}" x-name="id_category_default" />
<input type="hidden" name="item[{$index}][assoc_category_id]" value="{$product.assoc_category_id}" x-name="assoc_category_id" />
<input type="hidden" name="item[{$index}][reference]" value="{$product.reference|escape}" x-name="reference" />
<input type="hidden" name="item[{$index}][ean13]" value="{$product.ean13}" x-name="ean13" />
<input type="hidden" name="item[{$index}][isbn]" value="{$product.isbn}" x-name="isbn" />
<input type="hidden" name="item[{$index}][upc]" value="{$product.upc}" x-name="upc" />
<input type="hidden" name="item[{$index}][mpn]" value="{$product.mpn}" x-name="mpn" />
<input type="hidden" name="item[{$index}][tax_rate]" value="{$product.tax_rate}" x-name="tax_rate">
<input type="hidden" name="item[{$index}][weight]" value="{$product.weight}" x-name="weight" data-cast="float">
<input type="hidden" name="item[{$index}][price_calculate_fees]" value="{$product.price_calculate_fees}">
<input type="hidden" name="item[{$index}][auction_title]" value="{$product.title|escape}" x-name="auction_title" />
<input type="hidden" name="item[{$index}][product_name]" value="{$product.name|escape}" x-name="product_name" />
<input type="hidden" name="item[{$index}][attribute_name]" value="{if isset($product.name_attribute)}{$product.name_attribute|escape}{/if}" x-name="attribute_name" />
<input type="hidden" name="item[{$index}][manufacturer]" value="{$product.manufacturer_name|escape}" x-name="manufacturer" />
<div class="title-box">
{if $productization_name == 'prestashop_copy' || $productization_name == 'allegro'}
<a class="btn btn-default button bt-icon label-tooltip allegro-productization-name-copy" x-name="productization_name_copy" data-toggle="tooltip" data-original-title="Kopiuj nazwę produktu Allegro do tytułu oferty">
<i class="icon-copy"></i>
</a>
{/if}
<input type="text" name="item[{$index}][title]" value="{$product.title|escape}" size="75" x-name="title" data-product-name="{$product.title|escape}" />
<p>Ilość znaków: <strong><span x-name="counter">{$product.title_size}</span>/{$titleMaxSize}</strong></p>
</div>
<p>
<a class="btn btn-default button bt-icon" data-toggle="modal" data-target="#description_edit_modal_{$index}" x-name="description_edit">
<i class="icon-edit"></i> <span>Edytuj opis przedmiotu</span>
</a>
</p>
{*<p>
<input type="checkbox" name="item[{$index}][product_tags]" value="1" x-name="product_tags" x-index="{$index}">
<a class="btn btn-default button bt-icon" href="#product_tags_{$index}" x-name="product_tags" x-index="{$index}" disabled="disabled">
<i class="icon-tag"></i> <span>Indywidualne tagi</span>
</a>
</p>*}
<p style="display: none;">
<a class="btn btn-default button bt-icon xproductization-category" data-toggle="modal" data-target="#category_modal_{$index}" x-name="product_category" disabled="disabled">
<i class="icon-folder-open"></i> <span>Wybór kategorii</span>
</a>
<span class="icon-warning label-tooltip xproductization-category-last-node" data-toggle="tooltip" data-original-title="Wybierz kategorię najniższego rzędu" style="display:none;"></span>
<span class="icon-info label-tooltip xproductization-category-assoc" data-toggle="tooltip" data-original-title="Wybrano kategorię na podstawie powiązania" style="display:none;"></span>
<span class="xproductization-category-loading" style="display:none;"><i class="icon-refresh icon-spin"></i></span>
</p>
<p style="display: none;">
<a class="btn btn-default button bt-icon xproductization-category-similar" x-name="product_category_similar" disabled="disabled">
<i class="icon-folder-open"></i> <span>Zmień kategorię</span>
</a>
<span class="label-tooltip xproductization-category-similar-count" data-toggle="tooltip" data-original-title="Lista podobnych kategorii, w których możesz sprzedawać ten produkt" style="display:none;"></span>
<span class="xproductization-category-similar-loading" style="display:none;"><i class="icon-refresh icon-spin"></i></span>
</p>
<p>
<a class="btn btn-default button bt-icon xproductization-parameters" data-toggle="modal" data-target="#category_fields_modal_{$index}" x-name="product_category_fields" disabled="disabled">
<i class="icon-asterisk"></i> <span>Parametry kategorii</span>
</a>
<span class="icon-warning label-tooltip xproductization-parameters-empty-required" data-toggle="tooltip" data-original-title="Uzupełnij wymagane parametry" style="display:none;"></span>
<span class="xproductization-parameters-loading" style="display:none;"><i class="icon-refresh icon-spin"></i></span>
</p>
{*<div id="product_tags_{$index}" class="product-tags bootstrap" x-name="product_tags" x-index="{$index}" style="display: none;"></div>*}
{include file='./product-description-modal.tpl'}
{include file='./product-category-modal.tpl'}
{include file='./product-category-similar-modal.tpl'}
{include file='./product-category-parameters-modal.tpl'}
</td>
<td style="vertical-align: top;padding-top:10px;">
<span class="clearfix">
<input type="text" name="item[{$index}][quantity]" value="{$product.quantity}" size="3" data-cast="integer" x-start="{$product.quantity}" x-name="quantity" x-oos="{$product.quantity_oos}" {if $product.quantity_check}x-max="{$product.quantity_max}"{/if} style="width: 73px; float: left;" />
<select name="item[{$index}][quantity_type]" x-name="quantity_type" style="width: 71px; float: left; margin-left: 2px; {if $isModernLayout}padding-left: 8px;{/if}">
<option value="UNIT">szt</option>
<option value="SET">kpl</option>
<option value="PAIR">par</option>
</select>
</span>
<p class="clearfix">Na stanie: <strong>{$product.quantity_stock}</strong></p>
<label for="item_selling_mode_{$index}" class="t">Formaty sprzedaży</label>
<select id="item_selling_mode_{$index}" name="item[{$index}][selling_mode]" x-name="selling_mode">
<option value="BUY_NOW">Kup teraz</option>
<option value="AUCTION">Licytacja</option>
</select>
<label for="item_duration_{$index}" class="t">Czas trwania</label>
<select id="item_duration_{$index}" name="item[{$index}][duration]" x-name="duration">
{foreach $durations AS $duration}
<option value="{$duration.id}" data-type="{if isset($duration.type)}{$duration.type}{else}0{/if}" {if $product.duration == $duration.id}data-default="1" selected="selected"{else}data-default="0"{/if}>{$duration.name}</option>
{/foreach}
</select>
<label for="item_auto_renew_{$index}" class="t">Wznawianie</label>
<select id="item_auto_renew_{$index}" name="item[{$index}][auto_renew]" x-name="auto_renew">
<option value="" selected="selected">Domyślnie</option>
<option value="1">Tak</option>
<option value="0">Nie</option>
</select>
</td>
<td style="vertical-align: top;padding-top:10px;">
<div class="price-buy-now">
<label for="item_price_buy_now_{$index}" class="t">Cena <b>Kup teraz</b></label>
<div class="input-group">
<input type="text" id="item_price_buy_now_{$index}" name="item[{$index}][price_buy_now]" value="{$product.price_buy_now}" data-rate="{$marketplaces[$account->base_marketplace].currencyConversionRate}" data-cast="float" x-name="price_buy_now" />
<span class="input-group-addon">{$marketplaces[$account->base_marketplace].currencySign}</span>
</div>
<div class="marketplaces-prices">
{foreach $product.marketplaces as $marketplaceId => $marketplace}
<div class="input-group" data-marketplace-id="{$marketplaceId}" {if !in_array($marketplaceId, $shippingRateMarketplaces[$shippingRateSelectedId])}style="display: none;"{/if}>
<input type="text" name="item[{$index}][marketplace][{$marketplaceId}][price_buy_now]" value="{$marketplace.price_buy_now}" data-rate="{$marketplaces[$marketplaceId].currencyConversionRate}" data-cast="float" data-cast-precision="{$marketplaces[$marketplaceId].currencyPrecision}" readonly="readonly" />
<span class="input-group-addon">{$marketplaces[$marketplaceId].currencySign}</span>
</div>
{/foreach}
</div>
<label for="send_tax_{$index}" class="t">
<input type="checkbox" id="send_tax_{$index}" name="item[{$index}][send_tax]" value="1" x-name="send_tax" style="margin-top: 5px;" {if $product.send_tax}checked="checked"{/if}>
Wyślij wartość VAT
</label>
<div class="no-category-tax">Wybierz kategorie aby wyświetlić stawki VAT</div>
<div class="marketplaces-taxes">
{foreach $marketplaces as $marketplaceId => $marketplace}
<div data-marketplace-id="{$marketplaceId}" data-marketplace-country-code="{$marketplace.countryCode}" data-tax-rate="{if $marketplaceId == $account->base_marketplace}{$product.tax_rate}{else}{$product.marketplaces[$marketplaceId].tax}{/if}" style="display: none;">
<label for="item_marketplace_tax_{$index}_{$marketplaceId}" class="t">Stawka VAT {$marketplace.countryName}</label>
<select id="item_marketplace_tax_{$index}_{$marketplaceId}" name="item[{$index}][marketplace][{$marketplaceId}][tax]">
<option value="" selected="selected">nie wysyłaj</option>
</select>
</div>
{/foreach}
</div>
</div>
<div class="price-asking" style="margin-top: 6px; display: none;">
<label for="item_price_asking_{$index}" class="t"><b>Cena wywoławcza</b></label>
<div class="input-group">
<input type="text" id="item_price_asking_{$index}" name="item[{$index}][price_asking]" value="{$product.price_asking}" size="11" data-cast="float" x-name="price_asking" disabled="disabled" />
<span class="input-group-addon">{$marketplaces[$account->base_marketplace].currencySign}</span>
</div>
</div>
<div class="price-minimal" style="margin-top: 6px; display: none;">
<label for="item_price_minimal_{$index}" class="t">Cena minimalna</label>
<div class="input-group">
<input type="text" id="item_price_minimal_{$index}" name="item[{$index}][price_minimal]" value="{$product.price_minimal}" size="11" data-cast="float" x-name="price_minimal" disabled="disabled" />
<span class="input-group-addon">{$marketplaces[$account->base_marketplace].currencySign}</span>
</div>
</div>
</td>
<td style="vertical-align: top;padding-top:10px;">
<ul id="images_sortable_{$index}" class="images-sortable" x-max="{$select_images_max}">
{foreach $product.images as $key => $item}
{capture name="image_var"}{if $image_legacy}{$product.id}-{$item.id_image}{else}{$item.id_image}{/if}{/capture}
{capture name="image_url"}{if $item.url}{$item.url}{else}{$link->getImageLink($product.link_rewrite, $smarty.capture.image_var, $images_preview_type.name)}{/if}{/capture}
{if $select_images == 'all'}
<li class="item_form image {if $key==0}main_image{/if}" x-name="images">
<input type="checkbox" name="item[{$index}][images][]" value="{$item.id_image}" {if $key < $select_images_max}checked="checked"{/if} style="position: absolute; margin: 5px 0px 0px 5px;" x-name="images" />
<span class="center-helper"></span><img src="{$smarty.capture.image_url|escape:'html':'UTF-8'}" class="" x-value="{$item.id_image}" />
</li>
{elseif $select_images == 'first'}
<li class="item_form image {if $key==0}main_image{/if}" x-name="images">
<input type="checkbox" name="item[{$index}][images][]" value="{$item.id_image}" {if $key==0}checked="checked"{/if} style="position: absolute; margin: 5px 0px 0px 5px;" x-name="images" />
<span class="center-helper"></span><img src="{$smarty.capture.image_url|escape:'html':'UTF-8'}" class="" x-value="{$item.id_image}" />
</li>
{else}
<li class="item_form image {if $item.id_image == $product.image_main}main_image{/if}" x-name="images">
<input type="checkbox" name="item[{$index}][images][]" value="{$item.id_image}" {if in_array($item.id_image, $product.images)}checked="checked"{/if} style="position: absolute; margin: 5px 0px 0px 5px;" x-name="images" />
<span class="center-helper"></span><img src="{$smarty.capture.image_url|escape:'html':'UTF-8'}" class="" x-value="{$item.id_image}" />
</li>
{/if}
{/foreach}
</ul>
{if isset($product.images[0]['id_image']) && ($select_images == 'all' || $select_images == 'first')}
<input type="hidden" name="item[{$index}][image_main]" value="{$product.images[0]['id_image']}" x-name="image_main" />
{else}
<input type="hidden" name="item[{$index}][image_main]" value="{$product.image_main}" x-name="image_main" />
{/if}
</td>
<td style="vertical-align: top;padding-top:10px;">
<p class="template-auction clearfix">
<select id="item_template_{$index}" name="item[{$index}][template]" x-name="template" style="display: inline-block; float: left; width: 245px;">
{foreach $templates as $template}
<option value="{$template.id}" {if $template.default}selected="selected"{/if}>{$template.name}</option>
{/foreach}
</select>
<a class="btn btn-default button bt-icon" style="display: inline-block; float: right;" href="#" x-name="preview" x-id="{$index}" title="Podgląd oferty">
<i class="icon-search"></i>
</a>
</p>
<ul class="nav nav-tabs" id="itemTab_{$index}">
<li class="active label-tooltip" data-toggle="tooltip" data-original-title="Opcje promowania">
<a href="#itemTab_{$index}_promotion" aria-controls="itemTab_{$index}_promotion" role="tab" data-toggle="tab">
<i class="allegro-icon allegro-icon-promotion"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Cennik hurtowy">
<a href="#itemTab_{$index}_wholesalePriceList" aria-controls="itemTab_{$index}_wholesalePriceList" role="tab" data-toggle="tab">
<i class="allegro-icon allegro-icon-wholesale-price-list"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Tabela rozmiarów">
<a href="#itemTab_{$index}_sizeTable" aria-controls="itemTab_{$index}_sizeTable" role="tab" data-toggle="tab">
<i class="allegro-icon allegro-icon-size-table"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Przedsprzedaż">
<a href="#itemTab_{$index}_preorder" aria-controls="itemTab_{$index}_preorder" role="tab" data-toggle="tab">
<i class="allegro-icon allegro-icon-preorder"></i>
</a>
</li>
</ul>
<div class="tab-content panel clearfix" id="itemTab_{$index}_Content" role="tabpanel">
<div class="tab-pane active" id="itemTab_{$index}_promotion">
<div class="promo-auction">
<label>
<input type="radio" name="item[{$index}][basePackages]" value="0" checked="checked" x-name="none">
Bez promowania
</label>
{foreach $promotionPackages->basePackages as $basePackage}
<label>
<input type="radio" name="item[{$index}][basePackages]" value="{$basePackage->id}" x-name="{$basePackage->id}">
{$basePackage->name}
</label>
{/foreach}
<p style="font-size: 85%; text-transform: uppercase; margin: 10px 0 5px;">Opcje dodatkowe</p>
{foreach $promotionPackages->extraPackages as $extraPackage}
<label>
<input type="checkbox" name="item[{$index}][extraPackages][]" value="{$extraPackage->id}" x-name="{$extraPackage->id}">
{$extraPackage->name}
</label>
{/foreach}
</div>
</div>
<div class="tab-pane" id="itemTab_{$index}_wholesalePriceList">
<label for="wholesale_price_{$index}" class="t">Cennik hurtowy</label>
{if !empty($wholesalePriceList)}
<select id="wholesale_price_{$index}" name="item[{$index}][wholesale_price]" x-name="wholesale_price">
<option value="0">-- Wybierz --</option>
{foreach $wholesalePriceList as $wholesalePrice}
<option value="{$wholesalePrice->id}">{$wholesalePrice->benefits[0]->specification->name}</option>
{/foreach}
</select>
{else}
<p class="help-block">Brak skonfigurowanych cenników hurtowych</p>
{/if}
</div>
<div class="tab-pane" id="itemTab_{$index}_sizeTable">
<label for="size_table_{$index}" class="t">Tabela rozmiarów</label>
{if !empty($sizeTables)}
<select id="size_table_{$index}" name="item[{$index}][size_table]" x-name="size_table">
<option value="0">-- Wybierz --</option>
{foreach $sizeTables as $sizeTable}
<option value="{$sizeTable->id}">{$sizeTable->name}</option>
{/foreach}
</select>
{else}
<p class="help-block">Brak skonfigurowanych tabel rozmiarów</p>
{/if}
</div>
<div class="tab-pane" id="itemTab_{$index}_preorder">
<div class="preorder-auction">
<label for="item_preorder_{$index}" class="t">
<input type="checkbox" id="item_preorder_{$index}" name="item[{$index}][preorder]" value="1" x-name="preorder">
Przedsprzedaż
</label>
<input type="text" name="item[{$index}][preorder_date]" class="datepicker fixed-width-md" value="{$smarty.now|date_format:'%d.%m.%Y'}" x-name="preorder_date" disabled="disabled" style="display: none;">
</div>
</div>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
</fieldset>
</div>
</div><!--/.row-->
<div id="bulk_container" class="row is-hidden" style="visibility: hidden;">
<div class="panel col-lg-12" x-name="allegro_bulk">
<fieldset>
<div class="panel-heading">
<i class="icon-copy"></i> Masowe ustawienia dla wszystkich ofert
<span id="bulk_container_chevron">
<a href="#" id="bulk_container_hide">zwiń<i class="icon-angle-down"></i></a>
<a href="#" id="bulk_container_show">rozwiń<i class="icon-angle-up"></i></a>
</span>
</div>
<div style="border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px;">
<div style="display: inline-block;">
<div class="btn-group dropup">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
{l s='Działania masowe' mod='x13allegro'} <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" x-name="bulk_select_all"><i class="icon-check-sign"></i> <span>{l s='Zaznacz wszystkie' mod='x13allegro'}</span></a></li>
<li><a href="#" x-name="bulk_select_not_exposed"><i class="icon-check-square-o"></i> <span>{l s='Zaznacz tylko niewystawione' mod='x13allegro'}</span></a></li>
<li><a href="#" x-name="bulk_select_none"><i class="icon-check-empty"></i> <span>{l s='Odznacz wszystkie' mod='x13allegro'}</span></a></li>
<li class="divider"></li>
<li><a href="#" x-name="bulk_change_category"><i class="icon-folder-open"></i> <span>{l s='Zmień kategorię' mod='x13allegro'}</span></a></li>
<li><a href="#" x-name="bulk_category_parameters"><i class="icon-asterisk"></i> <span>{l s='Ustaw parametry kategorii' mod='x13allegro'}</span></a></li>
</ul>
</div>
</div>
<div class="bulk-mode-selector" style="display: inline-block; float: right; margin-right: 147px;">
<select x-name="bulk_productization_mode" class="fixed-width-lg">
<option value="0">{l s='-- wybierz sposób wystawiania --' mod='x13allegro'}</option>
<option value="ASSIGN">{l s='wystaw wg katalogu' mod='x13allegro'}</option>
<option value="NEW">{l s='wystaw jako nowy produkt' mod='x13allegro'}</option>
</select>
</div>
</div>
<table class="table">
<colgroup>
<col width="380px"/>
<col width="160px"/>
<col width="150px"/>
<col>
<col width="315px"/>
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th><span class="title_box">Tytuł oferty</span></th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th><span class="title_box">Zdjęcia</span></th>
<th><span class="title_box">Szablon / Dodatkowe opcje</span></th>
</tr>
</thead>
<tbody>
<tr style="background-color: #ececec;">
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<p>
<input type="text" name="bulk_title" value="" size="50" x-name="bulk_title">
</p>
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_title_before">
<i class="icon-plus-sign"></i> <span>Dodaj przed</span>
</a>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_title_after">
<i class="icon-plus-sign"></i> <span>Dodaj po</span>
</a>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_title_change">
<i class="icon-retweet"></i> <span>Zamień tytuł</span>
</a>
</p>
<div class="help-block">
<a href="#" id="show_bulk_title_tags">Pokaż dostępne znaczniki</a>
<div id="bulk_title_tags" style="display: none;">
{literal}
<u>Dostępne znaczniki:</u><br>
<span class="x13allegro_black">{auction_title}</span> - Indywidualnie wygenerowany tytuł oferty<br>
<span class="x13allegro_black">{product_id}</span> - ID produktu<br>
<span class="x13allegro_black">{product_name}</span> - Nazwa produktu<br>
<span class="x13allegro_black">{product_name_attribute}</span> - Nazwa atrybutu<br>
<span class="x13allegro_black">{product_reference}</span> - Kod referencyjny (indeks) produktu<br>
<span class="x13allegro_black">{product_ean13}</span> - Kod EAN13<br>
<span class="x13allegro_black">{product_weight}</span> - Waga produktu<br>
<span class="x13allegro_black">{manufacturer_name}</span> - Nazwa producenta
{/literal}
</div>
</div>
{if $productization_name == 'prestashop_copy' || $productization_name == 'allegro'}
<p>
<a class="btn btn-default button bt-icon" x-name="bulk_productization_name_copy">
<i class="icon-copy"></i> <span>Kopiuj nazwę produktu Allegro do tytułu oferty</span>
</a>
</p>
{/if}
</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<input type="text" value="" size="3" id="bulk_quantity" x-name="bulk_quantity" data-cast="integer" style="width: 73px; float: left;" />
<select x-name="bulk_quantity_type" style="width: 71px; float: left; margin-left: 2px; {if $isModernLayout}padding-left: 8px;{/if}">
<option value="UNIT">szt</option>
<option value="SET">kpl</option>
<option value="PAIR">par</option>
</select>
<label for="bulk_selling_mode" class="t">Formaty sprzedaży</label>
<select id="bulk_selling_mode" name="bulk_selling_mode" x-name="bulk_selling_mode">
<option value="BUY_NOW">Kup teraz</option>
<option value="AUCTION">Licytacja</option>
</select>
<label for="bulk_duration" class="t">Czas trwania</label>
<select id="bulk_duration" x-name="bulk_duration">
{foreach $durations AS $duration}
<option value="{$duration.id}" {if $product.duration == $duration.id}selected="selected"{/if}>{$duration.name}</option>
{/foreach}
</select>
<label for="bulk_auto_renew" class="t">Wznawianie</label>
<select id="bulk_auto_renew" x-name="bulk_auto_renew">
<option value="" selected="selected">Domyślnie</option>
<option value="1">Tak</option>
<option value="0">Nie</option>
</select>
</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<label for="bulk_price_buy_now" class="t">
Cena Kup teraz (narzut)
<a href="#" title="Dodaj marżę" x-name="bulk_price_buy_now" x-action="up"><i class="icon-plus-sign"></i></a>
<a href="#" title="Usuń marżę" x-name="bulk_price_buy_now" x-action="down"><i class="icon-minus-sign"></i></a>
</label>
<div class="input-group">
<input type="text" value="" size="11" id="bulk_price_buy_now" x-name="bulk_price_buy_now" data-cast="float" />
<span class="input-group-addon">%</span>
</div>
<label for="bulk_send_tax" class="t">
<input type="checkbox" id="bulk_send_tax" value="1" x-name="bulk_send_tax" style="margin-top: 5px;" {if $bulk_send_tax}checked="checked"{/if}>
Wyślij wartość VAT
</label>
<label for="bulk_price_asking" class="t" style="margin-top: 6px">Cena wywoławcza</label>
<div class="input-group">
<input type="text" value="" size="11" id="bulk_price_asking" x-name="bulk_price_asking" data-cast="float" />
<span class="input-group-addon">{$marketplaces[$account->base_marketplace].currencySign}</span>
</div>
<label for="bulk_price_minimal" class="t" style="margin-top: 6px">Cena minimalna</label>
<div class="input-group">
<input type="text" value="" size="11" id="bulk_price_minimal" x-name="bulk_price_minimal" data-cast="float" />
<span class="input-group-addon">{$marketplaces[$account->base_marketplace].currencySign}</span>
</div>
</td>
<td style="vertical-align: top; border-bottom: none; padding-top:10px;">
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_images_all">
<i class="icon-sitemap"></i> <span>Zaznacz wszystkie zdjęcia</span>
</a>
</p>
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_images_del">
<i class="icon-times"></i> <span>Odznacz wszystkie zdjęcia</span>
</a>
</p>
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_images_first">
<i class="icon-photo"></i> <span>Zaznacz pierwsze zdjęcie</span>
</a>
</p>
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_images_invert">
<i class="icon-retweet"></i> <span>Odwróć zaznaczenie zdjęć</span>
</a>
</p>
</td>
<td style="vertical-align: top; border-bottom: none; padding-top:10px;">
<p>
<select id="bulk_template" x-name="bulk_template" style="width: 100%;">
{foreach $templates AS $template}
<option value="{$template.id}">{$template.name}</option>
{/foreach}
</select>
</p>
<ul class="nav nav-tabs" id="itemTabBulk">
<li class="active label-tooltip" data-toggle="tooltip" data-original-title="Opcje promowania">
<a href="#itemTabBulk_promotion" aria-controls="itemTabBulk_promotion" role="tab" data-toggle="tab" data-item-tab="promotion">
<i class="allegro-icon allegro-icon-promotion"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Cennik hurtowy">
<a href="#itemTabBulk_wholesalePriceList" aria-controls="itemTabBulk_wholesalePriceList" role="tab" data-toggle="tab" data-item-tab="wholesalePriceList">
<i class="allegro-icon allegro-icon-wholesale-price-list"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Tabela rozmiarów">
<a href="#itemTabBulk_sizeTable" aria-controls="itemTabBulk_sizeTable" role="tab" data-toggle="tab" data-item-tab="sizeTable">
<i class="allegro-icon allegro-icon-size-table"></i>
</a>
</li>
<li class="label-tooltip" data-toggle="tooltip" data-original-title="Przedsprzedaż">
<a href="#itemTabBulk_preorder" aria-controls="itemTabBulk_preorder" role="tab" data-toggle="tab" data-item-tab="preorder">
<i class="allegro-icon allegro-icon-preorder"></i>
</a>
</li>
</ul>
<div class="tab-content panel clearfix" id="itemTabBulk_Content" role="tabpanel">
<div class="tab-pane active" id="itemTabBulk_promotion">
<div x-name="promotionPackages" class="promo-auction">
<label>
<input type="radio" name="bulk[basePackages]" value="0" checked="checked" x-name="none">
Bez promowania
</label>
{foreach $promotionPackages->basePackages as $basePackage}
<label>
<input type="radio" name="bulk[basePackages]" value="{$basePackage->id}" x-name="{$basePackage->id}">
{$basePackage->name}
</label>
{/foreach}
<p style="font-size: 85%; text-transform: uppercase; margin: 10px 0 5px;">Opcje dodatkowe</p>
{foreach $promotionPackages->extraPackages as $extraPackage}
<label>
<input type="checkbox" value="{$extraPackage->id}" x-name="{$extraPackage->id}">
{$extraPackage->name}
</label>
{/foreach}
</div>
</div>
<div class="tab-pane" id="itemTabBulk_wholesalePriceList">
<label for="bulk_wholesale_price" class="t">Cennik hurtowy</label>
{if !empty($wholesalePriceList)}
<select id="bulk_wholesale_price" name="bulk_wholesale_price" x-name="bulk_wholesale_price">
<option value="0">-- Wybierz --</option>
{foreach $wholesalePriceList as $wholesalePrice}
<option value="{$wholesalePrice->id}">{$wholesalePrice->benefits[0]->specification->name}</option>
{/foreach}
</select>
{else}
<p class="help-block">Brak skonfigurowanych cenników hurtowych</p>
{/if}
</div>
<div class="tab-pane" id="itemTabBulk_sizeTable">
<label for="bulk_size_table" class="t">Tabela rozmiarów</label>
{if !empty($sizeTables)}
<select id="bulk_size_table" name="bulk_size_table" x-name="bulk_size_table">
<option value="0">-- Wybierz --</option>
{foreach $sizeTables as $sizeTable}
<option value="{$sizeTable->id}">{$sizeTable->name}</option>
{/foreach}
</select>
{else}
<p class="help-block">Brak skonfigurowanych tabel rozmiarów</p>
{/if}
</div>
<div class="tab-pane" id="itemTabBulk_preorder">
<div class="preorder-auction">
<label for="bulk_preorder" class="t">
<input type="checkbox" id="bulk_preorder" name="bulk_preorder" value="1" x-name="bulk_preorder">
Przedsprzedaż
</label>
<input type="text" name="bulk_preorder_date" class="datepicker fixed-width-md" value="{$smarty.now|date_format:'%d.%m.%Y'}" x-name="bulk_preorder_date" disabled="disabled" style="display: none;">
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</div><!--/.row-->
<div class="row">
<div class="panel clearfix form-horizontal">
<fieldset>
<div class="panel-heading">
<i class="icon-asterisk"></i> Dodatkowe ustawienia
</div>
<div class="row">
<div class="col-md-5">
<div class="form-group">
<div class="row">
<div class="col-md-6">
<label for="start" class="control-label t">Oferta pojawi się na Allegro</label>
<select id="start" name="start">
<option value="0" selected="selected">Natychmiast</option>
<option value="1">Rozpocznij w innym terminie</option>
</select>
</div>
<div class="col-md-3">
<label for="start_time" class="control-label t">&nbsp;</label>
<input type="text" id="start_time" name="start_time" class="datetimepicker fixed-width-xxl" value="{$smarty.now|date_format:'%d.%m.%Y %H:%M'}" disabled="disabled" style="display: none;">
</div>
</div>
</div>
<div class="form-group after-sales-fields" x-name="after_sales">
{include file='./after-sales.tpl'}
</div>
<div class="form-group" x-name="responsible_persons">
<div class="row">
<div class="col-md-12">
<label for="responsible_person" class="control-label t">Osoba odpowiedzialna za zgodność produktu (opcjonalnie)</label>
</div>
<div class="col-md-6">
<select id="responsible_person" name="responsible_person">
<option value="">-- Wybierz --</option>
{foreach $responsiblePersons as $responsiblePerson}
<option value="{$responsiblePerson->id}" {if $responsiblePerson->id === $responsiblePersonSelectedId}selected="selected"{/if}>{$responsiblePerson->name}</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
<div class="col-md-offset-1 col-md-3">
<div class="form-group" x-name="message_to_seller">
<label for="message_to_seller" class="control-label t">Uwagi do zakupu (wiadomość dla sprzedającego)</label>
<select id="message_to_seller" name="message_to_seller">
<option value="OPTIONAL" {if $message_to_seller}selected="selected"{/if}>Tak - opcjonalne pole "uwagi do zakupu"</option>
<option value="HIDDEN" {if !$message_to_seller}selected="selected"{/if}>Nie - brak pola "uwagi do zakupu"</option>
</select>
</div>
<div class="form-group" x-name="offer_b2b">
<label for="offer_b2b_only" class="control-label t">Kto może kupić ofertę</label>
<select id="offer_b2b_only" name="offer_b2b_only">
<option value="0" {if !$b2b_only}selected="selected"{/if}>wszyscy klienci</option>
<option value="1" {if $b2b_only}selected="selected"{/if}>tylko klienci biznesowi</option>
</select>
</div>
<div class="form-group" x-name="additional_services">
<label for="additional_services" class="control-label t">Grupa dodatkowych usług</label>
{if !empty($additionalServices)}
<select id="additional_services" name="additional_services">
<option value="0">-- Wybierz --</option>
{foreach $additionalServices as $additionalService}
<option value="{$additionalService->id}">{$additionalService->name}</option>
{/foreach}
</select>
{else}
<p class="help-block">Brak skonfigurowanych dodatkowych usług</p>
{/if}
</div>
</div>
</div>
</fieldset>
</div>
</div><!--/.row-->
<div class="row">
<div class="panel form-horizontal col-lg-12">
<fieldset>
<div class="panel-heading">
<i class="icon-truck"></i> Płatność i dostawa
</div>
<div class="row">
<div class="col-md-12 col-lg-3 pas-fields" x-name="pas">
{$pas_fields}
</div>
<div class="col-md-12 col-lg-9" x-name="shipping_rates">
<div class="pas-fields clearfix">
<div class="form-group">
<label for="shipping_rate" class="control-label col-lg-3">Cennik dostawy</label>
<div class="col-lg-4">
<select id="shipping_rate" name="shipping_rate" class="fixed-width-xxl fixed-width-xl" id="shipping_rate">
{foreach $shipping_rates as $shipping_rate}
<option value="{$shipping_rate.id}" {if $shipping_rate.id == $shippingRateSelectedId}selected="selected"{/if}>{$shipping_rate.name}</option>
{/foreach}
</select>
</div>
<div class="col-lg-8">
{include file='../marketplace-list.tpl' marketplaces=$marketplaces availableMarketplaces=$shippingRateMarketplaces[$shippingRateSelectedId]}
</div>
</div>
</div>
<hr />
{include file='../shipments.tpl' shipments=$shipments editable=false}
</div>
</div>
</fieldset>
</div>
</div><!--/.row-->
</form>
{include file='./bulk-category-modal.tpl'}
{include file='./bulk-category-parameters-modal.tpl'}
<div class="modal_alert xallegro_modal_alert" id="account_change_modal_alert">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Czy na pewno chcesz zmienić konto?' mod='x13allegro'}</h2>
<p>{l s='Spowoduje to utratę wcześniej wprowadzonych zmian' mod='x13allegro'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-default modal_alert-cancel">{l s='Nie' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Tak' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="price_edit_modal_alert">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Czy chcesz ustawić cenę dla tej waluty ręcznie?' mod='x13allegro'}</h2>
<p>{l s='Spowoduje to wyłączenie automatycznego przeliczania tej ceny według kursu wymiany' mod='x13allegro'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-default modal_alert-cancel">{l s='Nie' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Tak' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="xproductization_product_preview_description_modal">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header modal_alert-header">
<button type="button" class="close x13allegro-modal-close modal_alert-cancel"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Podgląd opisu produktu z katalogu' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">{* product name from product-selection-modal-content *}</h6>
</div>
<div class="modal-body x13allegro-modal-body clearfix">
{* html from product-selection-modal-content *}
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="xproductization_product_preview_images_modal">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header modal_alert-header">
<button type="button" class="close x13allegro-modal-close modal_alert-cancel"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Podgląd zdjęć produktu z katalogu' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">{* product name from product-selection-modal-content *}</h6>
</div>
<div class="modal-body x13allegro-modal-body clearfix">
{* html from product-selection-modal-content *}
</div>
</div>
</div>
<script type="text/javascript">
var iso = '{$iso}';
var pathCSS = '{$path_css}';
var ad = '{$ad}';
var xBackLink = '{$link->getAdminLink('AdminXAllegroPerform')}';
var xOffersListList = '{$link->getAdminLink('AdminXAllegroAuctionsList')}';
var XAllegro = new X13Allegro();
XAllegro.productizationName = '{$productization_name}';
XAllegro.productizationDescription = '{$productization_description}';
XAllegro.productizationMode = '{$productization_mode}';
XAllegro.productSelectMode = {$product_select_mode};
XAllegro.shippingRateMarketplaces = {$shippingRateMarketplaces|json_encode};
XAllegro.initPerformProductization();
XAllegro.auctionForm();
$(document).ready(function() {
if ($(".datepicker").length > 0) {
$(".datepicker").datepicker({
onClose: function (date, el) {
$(el).trigger('change');
}
});
}
if ($(".datetimepicker").length > 0) {
$(".datetimepicker").datetimepicker();
}
{foreach $products AS $index => $product}
$('#images_sortable_' + {$index}).sortable({
update: function(event, ui) {
XAllegro.updateImagesPositions({$index});
}
});
{/foreach}
});
</script>
{else}
{l s='Brak wybranych produktów' mod='x13allegro'}
{/if}

View File

@@ -0,0 +1,78 @@
<div class="modal" id="fees_modal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Jak integracja od X13 dolicza prowizje?' mod='x13allegro'}</h4>
</div>
<div class="modal-body x13allegro-modal-body">
<p>
{l s='Od wersji 6.6.0 (sierpień 2021) dodaliśmy możliwość automatycznego dodawania opłat do wystawianych ofert.'}<br/><br/>
Doliczamy zarówno <strong>prowizję</strong> od sprzedaży jak i <strong>opłaty za promowanie</strong>.<br/>
Przy wystawianiu, do obliczenia prowizji oprócz ceny produktu doliczamy również koszt promowania (podzielony przez 10).<br/><br/>
Przykład obliczania kwoty, na podstawie produktu za <strong>100 zł brutto</strong>, w kategorii z prowizją 9%:
</p>
<br/>
<h4>a) oferta <strong>bez opcji promowania</strong></h4>
<table class="table table-bordered table-striped">
<tr>
<td>Kwota do obliczeń</td>
<td><strong>100 zł</strong></td>
</tr>
<tr>
<td>Produkt zostanie wystawiony za</td>
<td><strong>109,81 zł</strong></td>
</tr>
<tr>
<td>Realnie zarobiona kwota z Allegro</td>
<td><strong>99,92 zł</strong></td>
</tr>
</table>
<br/>
<h4>b) oferta <strong>z wyróżnieniem - przykład z tabelką</strong></h4>
<table class="table table-bordered table-striped">
<tr>
<td>Kwota do obliczeń</td>
<td><strong>101,90zł</strong>
<br/>100 zł produkt + 1,90 zł (19 zł/10 za wyróznienie)</td>
</tr>
<tr>
<td>Produkt zostanie wystawiony za</td>
<td><strong>120,49 zł</strong></td>
</tr>
<tr>
<td>Realnie zarobiona kwota z Allegro</td>
<td><strong>99,23 zł</strong></td>
</tr>
</table>
<br/>
<h4>c) oferta <strong>z wyróżnieniem i promowaniem w dziale</strong></h4>
<table class="table table-bordered table-striped">
<tr>
<td>Kwota do obliczeń</td>
<td><strong>104,80zł</strong>
<br/>100 zł produkt + 1,90 zł (19 zł/10 za wyróznienie) + 2,90 (29zł/10 za promowanie)</td>
</tr>
<tr>
<td>Produkt zostanie wystawiony za</td>
<td><strong>123,92 zł</strong></td>
</tr>
<tr>
<td>Realnie zarobiona kwota z Allegro</td>
<td><strong>99,59 zł</strong></td>
</tr>
</table>
<br/><br/>
<p>
Pomimo obliczenia prowizji od sprzedaży, prowizji od sprzedaży oferty wyróżnionej i kosztów wystawienia,
realna kwota bez opłat Allegro będzie mimimalnie różna od zakładanej.
Sposób liczenia jaki jest obecnie dostępny w naszej integracji ma na celu maksymalne ograniczenie wpływu opłat na Państwa zysk.
</p>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s='Zamknij' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'checkbox'}
{foreach $input.values.query as $value}
<div class="checkbox">
{strip}
<label for="{$input.name}[{$value[$input.values.id]}]">
<input type="checkbox" name="{$input.name}[{$value[$input.values.id]}]" id="{$input.name}[{$value[$input.values.id]}]" class="{if isset($input.class)}{$input.class}{/if}"{if isset($value.val)} value="{$value.val|escape:'html':'UTF-8'}"{/if} {if isset($fields_value[$input.name][$value[$input.values.id]])}checked="checked"{/if} />
{$value[$input.values.name]}
</label>
{/strip}
</div>
{/foreach}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,43 @@
<div class="modal xproductization-category-selector" id="category_modal_{$index}" x-name="product_category" x-index="{$index}" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Wybierz kategorie' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">dla produktu: <span>{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}</span></h6>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
</div>
<div class="modal-body x13allegro-modal-body">
<div class="xproductization-category-list">
<div class="allegro-category-select">
<select name="id_allegro_category[{$index}][]" data-index="{$index}">
<option value="0">-- Wybierz --</option>
{foreach $categories as $category}
<option value="{$category.id}">{$category.name}</option>
{/foreach}
</select>
</div>
<hr style="margin:20px 0 5px 0;">
</div>
<div class="xproductization-category-search">
<div class="form-group clearfix">
<label class="control-label">ID kategorii</label>
<input type="text" class="fixed-width-xl" value="" x-name="product_category_input" data-index="{$index}" placeholder="{l s='ID Kategorii' mod='x13allegro'}" />
</div>
</div>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">{l s='Zatwierdź wybraną kategorie' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
<div class="modal xproductization-parameters-selector product-category-fields bootstrap" id="category_fields_modal_{$index}" x-name="product_category_fields" x-index="{$index}" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Uzupełnij parametry kategorii' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">dla produktu: <span>{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}</span></h6>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
</div>
<div class="modal-body x13allegro-modal-body">
<div class="xproductization-parameters-wrapper"></div>
</div>
<div class="modal-footer x13allegro-modal-footer">
<div class="x13allegro-modal-footer-left">
<span class="x13allegro-category-parameters-info-required">*</span> - pole wymagane<br/>
<span class="x13allegro-category-parameters-info-productization"></span> - parametr z <strong>Katalogu Allegro</strong>
</div>
<button type="button" class="btn btn-primary" data-dismiss="modal">{l s='Zapisz parametry' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="category-similar-list">
{foreach $categoryList as $categoryId => $categoryPath}
<label>
<input type="radio" name="item[{$index}][category_similar]" value="{$categoryId}" {if $categoryId == $categoryCurrent}checked="checked"{/if}>
{$categoryPath} ({$categoryId})
</label>
{/foreach}
</div>

View File

@@ -0,0 +1,27 @@
<div class="modal xproductization-category-similar-selector" id="category_similar_modal_{$index}" x-name="product_category_similar" x-index="{$index}" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Zmień kategorię' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">dla produktu: <span>{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}</span></h6>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
</div>
<div class="modal-body x13allegro-modal-body">
{* ajax content *}
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-primary xproductization-category-similar" data-dismiss="modal">{l s='Zatwierdź wybraną kategorie' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
<div class="modal xproductization-description-edit" id="description_edit_modal_{$index}" x-name="description_edit" x-index="{$index}" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" x-name="description_cancel"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Edytuj opis' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">dla produktu: <span>{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}</span></h6>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
</div>
<div class="modal-body x13allegro-modal-body">
<textarea name="item[{$index}][description]" x-name="description" style="display:none;">{$product.description}</textarea>
<textarea id="description_edit_mce_{$index}" x-name="description_edit_mce" rows="10" cols="128"></textarea>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-left btn-default" x-name="description_cancel">{l s='Anuluj' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary" x-name="description_save">{l s='Zapisz' mod='x13allegro'}</button>
</div>
</div>
</div>
<div class="modal_alert xallegro_modal_alert" id="description_edit_modal_alert_confirm">
<div class="modal_alert-content">
<div class="modal_alert-message">
<h2>{l s='Czy na pewno chcesz anulować edycję opisu?' mod='x13allegro'}</h2>
<p>{l s='Spowoduje to utratę wcześniej wprowadzonych zmian' mod='x13allegro'}</p>
</div>
<div class="modal_alert-buttons">
<button type="button" class="btn btn-default modal_alert-cancel">{l s='Nie' mod='x13allegro'}</button>
<button type="button" class="btn btn-primary modal_alert-confirm">{l s='Tak' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,87 @@
<div class="row xproductization-allegro-products">
{foreach $products_from_allegro as $allegro_product}
<div class="col-xs-12 col-md-4">
<div class="thumbnail xproductization-allegro-products-wrap">
<div class="row">
<div class="col-xs-4 col-lg-3">
<div class="thumbnail-img">
{if !empty($allegro_product->images)}
<img style="max-height: 130px; margin: auto;" class="img-responsive" src="{$allegro_product->images[0]->url|regex_replace:'/original/':'s128'}" alt="{$allegro_product->name|escape:html}">
{/if}
</div>
</div>
<div class="col-xs-8 col-lg-9">
<div class="caption">
<a href="{$products_url}/produkt/{$allegro_product->id}" target="_blank" rel="nofollow">
<h4 class="xproductization-product-name">{$allegro_product->name}</h4>
</a>
<p>
<em>{l s='Kategoria:' mod='x13allegro'} {$products_categories[$allegro_product->id]} ({$allegro_product->category->id})</em>
</p>
<ul class="list-group" style="max-height: 145px; overflow: auto;">
{foreach $allegro_product->parameters as $parameter}
<li class="list-group-item">{$parameter->name}: <strong>{if !empty($parameter->valuesLabels)}{', '|implode:$parameter->valuesLabels}{else}n/a{/if}</strong></li>
{/foreach}
</ul>
<div class="xproductization-bottom">
<div>
<a href="{$products_url}/moje-allegro/sprzedaz/zglos-blad-w-produkcie/{$allegro_product->id}" target="_blank" rel="nofollow" class="xproductization-report-an-error">
<span>Zgłość błąd w produktyzacji</span>
</a>
</div>
<div class="text-right">
<div class="btn-group dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
<i class="icon-search"></i>
</button>
{if isset($allegro_product->description) || !empty($allegro_product->images)}
<ul class="dropdown-menu">
{if isset($allegro_product->description)}<li><a href="#" class="xproductization-product-preview-description-button">{l s='Podgląd opisu' mod='x13allegro'}</a></li>{/if}
{if !empty($allegro_product->images)}<li><a href="#" class="xproductization-product-preview-images-button">{l s='Podgląd zdjęć' mod='x13allegro'}</a></li>{/if}
</ul>
{/if}
</div>
<a data-allegro-product="{$allegro_product->id}" href="#" class="btn btn-primary" role="button">
<i class="icon-plus"></i><span>{l s='Wybierz' mod='x13allegro'}</span>
</a>
</div>
</div>
</div>
</div>
<div class="xproductization-product-preview-description" style="display: none;">
<div class="allegro-description">
{if isset($allegro_product->description)}
{foreach $allegro_product->description->sections as $section}
<section class="section">
{foreach $section->items as $item}
<div class="item {if $section->items|@count > 1}item-6{else}item-12{/if}">
<section class="{if $item->type == 'TEXT'}text{else}image{/if}-item">
{if $item->type == 'TEXT'}
{$item->content}
{else}
<img src="{$item->url|regex_replace:'/original/':'s512'}" alt="">
{/if}
</section>
</div>
{/foreach}
</section>
{/foreach}
{/if}
</div>
</div>
<div class="xproductization-product-preview-images" style="display: none;">
{foreach $allegro_product->images as $image}
<img src="{$image->url|regex_replace:'/original/':'s256'}" alt="" style="width: auto; max-height: 250px; margin: 0 10px 10px 0; border: 1px solid #ccc;">
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
</div>

View File

@@ -0,0 +1,40 @@
<div class="modal xproductization-product-selector" id="selection_modal_{$index}" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header x13allegro-modal-header">
<button type="button" class="close x13allegro-modal-close" data-dismiss="modal"><span>&times;</span></button>
<h4 class="x13allegro-modal-title">{l s='Wybierz produkt' mod='x13allegro'}</h4>
<h6 class="x13allegro-modal-title-small">dla produktu: <span>{$product.name}{if $product.name_attribute} - {$product.name_attribute}{/if}</span></h6>
<span class="xproductization-product-label">
{if $productization_show_reference && !empty($product.reference)}<strong>Ref:</strong> {$product.reference}{/if}
{if $productization_show_gtin}
{if !empty({$product.ean13})}<strong>EAN13:</strong> {$product.ean13}{/if}
{if !empty({$product.isbn})}<strong>ISBN:</strong> {$product.isbn}{/if}
{if !empty({$product.upc})}<strong>UPC:</strong> {$product.upc}{/if}
{/if}
{if $productization_show_mpn && !empty($product.mpn)}<strong>MPN:</strong> {$product.mpn}{/if}
</span>
</div>
<div class="modal-body x13allegro-modal-body">
<div class="xproductization-search">
<div class="form-group clearfix">
<input type="text" name="productizationSearch_{$index}" x-name="productization_search" value="" placeholder="{l s='Szukaj w katalogu, wpisz EAN, kod lub nazwę produktu' mod='x13allegro'}">
<button type="button" name="productizationSearch" data-index="{$index}" class="btn btn-primary"><i class="icon-search"></i> {l s='Szukaj' mod='x13allegro'}</button>
</div>
<hr>
</div>
<div class="xproductization-search-progress">
<p><i class="icon-refresh icon-spin"></i> Trwa wyszukiwanie produktów w katalogu Allegro</p>
</div>
<div class="xproductization-product-list">
{* content from API *}
</div>
</div>
<div class="modal-footer x13allegro-modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s='Zamknij' mod='x13allegro'}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
{extends file="helpers/form/form.tpl"}
{block name="field"}
{if $input.name == 'tag-manager'}
{if empty($input.content)}
<div class="alert alert-info">
<p>{l s='Zapisz tego producenta aby umożliwić mapowanie tagów.' mod='x13allegro'}</p>
</div>
{else}
{$input.content}
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" >
<i class="icon-power-off {$icon}"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" >
<i class="icon-send"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" >
<i class="icon-search-plus"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

Some files were not shown because too many files have changed in this diff Show More