add empik module

This commit is contained in:
2025-05-30 09:08:26 +02:00
parent 87a41f4cfc
commit 56aa2cdc2d
1466 changed files with 138249 additions and 146 deletions

View File

@@ -0,0 +1,4 @@
<a href="{$url_export_offers}" class="btn btn-primary js-empik-offers-export">
<i class="icon-send"></i>&nbsp;
{l s='Export offers' mod='empikmarketplace'}
</a>

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,4 @@
<a href="{$url_manage_price}" class="btn btn-primary">
<i class="icon-dollar"></i>&nbsp;
{l s='Manage dedicated EmpikPlace prices' mod='empikmarketplace'}
</a>

View File

@@ -0,0 +1,39 @@
<table class="table table-striped">
<thead>
<tr>
<th>{l s='Empik Marketplace carrier' mod='empikmarketplace'}</th>
<th>{l s='Shop carrier' mod='empikmarketplace'}</th>
<th>{l s='Carrier type' mod='empikmarketplace'}</th>
</tr>
</thead>
<tbody>
{foreach from=$empik_shipping_types item=empik_shipping_type}
<tr>
<td><b>{$empik_shipping_type.label}</b> ({$empik_shipping_type.code})</td>
<td>
<select name="carrier[{$empik_shipping_type.code}][id_carrier]">
{foreach from=$shop_carriers item=shop_carrier}
<option
value="{$shop_carrier.id_carrier}"
{if $map[$empik_shipping_type.code].id_carrier|default == $shop_carrier.id_carrier} selected{/if}>
{$shop_carrier.name}
</option>
{/foreach}
</select>
</td>
<td>
<select name="carrier[{$empik_shipping_type.code}][type]">
{foreach from=$empik_carriers item=empik_carrier}
<option
value="{$empik_carrier.code}"
{if $map[$empik_shipping_type.code].type|default == $empik_carrier.code} selected{/if}
>
{$empik_carrier.label}
</option>
{/foreach}
</select>
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,40 @@
<table class="table table-striped">
<thead>
<tr>
<th>{l s='Empik Marketplace carrier' mod='empikmarketplace'}</th>
<th>{l s='Shop carrier' mod='empikmarketplace'}</th>
<th>{l s='Carrier type' mod='empikmarketplace'}</th>
</tr>
</thead>
<tbody>
{foreach from=$empik_shipping_types item=empik_shipping_type}
<tr>
<td><b>{$empik_shipping_type.label}</b> ({$empik_shipping_type.code})</td>
<td>
<select name="carrier[{$empik_shipping_type.code}][id_carrier]">
{foreach from=$shop_carriers item=shop_carrier}
<option
value="{$shop_carrier.id_carrier}"
{if $map[$empik_shipping_type.code].id_carrier|default == $shop_carrier.id_carrier} selected{/if}
>
{$shop_carrier.name}
</option>
{/foreach}
</select>
</td>
<td>
<select name="carrier[{$empik_shipping_type.code}][type]">
{foreach from=$empik_carriers item=empik_carrier}
<option
value="{$empik_carrier.code}"
{if $map[$empik_shipping_type.code].type|default == $empik_carrier.code} selected{/if}
>
{$empik_carrier.label}
</option>
{/foreach}
</select>
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,3 @@
<button id="configuration_form_submit_btn" type="submit" href="{$url_test_connection}" class="btn btn-primary">
{l s='Zapisz' mod='empikmarketplace'}
</button>

View File

@@ -0,0 +1,3 @@
<a href="{$url_test_connection}" class="btn btn-primary pull-right">
{l s='Przetestuj połączenie' mod='empikmarketplace'}
</a>