Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="header-back-colissimo">
<p class="colissimo-version">
<i class="icon icon-info-circle"></i> v{$data['module_version']|escape:'htmlall':'UTF-8'}
-
<a data-toggle="modal" data-target="#colissimo-modal-whatsnew" href="#">
{l s='What\'s new?' mod='colissimo'}
</a>
</p>
<div class="bootstrap panel">
<div class="row">
<div class="col-xs-12 colissimo-header">
<img class="colissimo-logo" src="{$data['img_path']|escape:'htmlall':'UTF-8'}Colissimo_Logo_H.png"/>
<div class="colissimo-contact">
<i class="icon icon-question-circle icon-big"></i>
<p>
<b>{l s='Do you have a question?' mod='colissimo'}</b><br/>
{l s='Contact us using ' mod='colissimo'}
<a href="https://addons.prestashop.com/contact-form.php?id_product={$data['id_product_addons']|intval}"
target="_blank">
{l s='this link' mod='colissimo'}
</a>
{l s='or by phone at:' mod='colissimo'}<br/>
<img src="{$data['img_path']|escape:'html':'UTF-8'}phone-support.png" class="colissimo-phone-number" />
</p>
<a href="{$data['module_path']|escape:'html':'UTF-8'}readme.pdf" target="_blank" class="btn btn-primary">
<i class="icon-arrow-circle-down"></i> {l s='Download documentation' mod='colissimo'}
</a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,67 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="bootstrap panel colissimo-quick-access">
<div class="row">
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminColissimoDashboard')|escape:'htmlall':'UTF-8'}">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-dashboard.png"><span>{l s='Dashboard' mod='colissimo'}</span>
</a>
</div>
{if $coliship_enabled}
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminColissimoColiship')|escape:'htmlall':'UTF-8'}">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-labels.png"><span>{l s='Coliship' mod='colissimo'}</span>
</a>
</div>
{else}
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminColissimoAffranchissement')|escape:'htmlall':'UTF-8'}">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-labels.png"><span>{l s='Postage' mod='colissimo'}</span>
</a>
</div>
{/if}
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminColissimoColiship')|escape:'htmlall':'UTF-8'}&importCsv=1">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-import-csv.png"><span>{l s='Shipping numbers import' mod='colissimo'}</span>
</a>
</div>
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-deposit-slip.png"><span>{l s='Deposit slip' mod='colissimo'}</span>
</a>
</div>
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$link->getAdminLink('AdminModules')|escape:'htmlall':'UTF-8'}&configure=colissimo">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-config.png"><span>{l s='Configuration' mod='colissimo'}</span>
</a>
</div>
<div class="col-md-2 col-sm-6 colissimo-qa-link">
<a href="{$data['coliview_url']|escape:'htmlall':'UTF-8'}" target="_blank">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon-coliview.png">
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,291 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{literal}
<script type="text/javascript">
var genericErrorMessage = "{/literal}{l s='An error occurred while displaying order details.' mod='colissimo'}{literal}";
var genericEmailErrorMessage = "{/literal}{l s='An error occurred while sending mail.' mod='colissimo'}{literal}";
var genericDeleteErrorMessage = "{/literal}{l s='An error occurred while deleting label.' mod='colissimo'}{literal}";
var channel = '{/literal}{if isset($colissimo_channel)}{$colissimo_channel|escape:'htmlall':'UTF-8'}{/if}{literal}';
var tokenDashboard = '{/literal}{getAdminToken tab='AdminColissimoDashboard'}{literal}';
var tokenLabel = '{/literal}{getAdminToken tab='AdminColissimoLabel'}{literal}';
var tokenAffranchissement = '{/literal}{getAdminToken tab='AdminColissimoAffranchissement'}{literal}';
var colissimoBlock = $('#view_colissimo_block, #form-colissimo_dashboard');
colissimoBlock
.off('click', '.js-colissimo-show-hidden-order')
.on('click', '.js-colissimo-show-hidden-order', function (e) {
e.preventDefault();
var idColissimoOrder = $(this).attr('data-colissimo-order-id');
var btn = $(this);
btn.find('i').attr('class', 'icon icon-spin icon-spinner');
btn.addClass('disabled');
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoDashboard',
ajax: 1,
token: tokenDashboard,
action: 'updatePostageVisibility',
id_colissimo_order: parseInt(idColissimoOrder),
channel: channel
}
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericErrorMessage);
}).done(function (data) {
btn.remove();
if (data.errors) {
showErrorMessage(data.message);
} else {
showSuccessMessage(data.message);
}
});
});
colissimoBlock
.off('click', '.colissimo-update-order-tracking button')
.on('click', '.colissimo-update-order-tracking button', function (e) {
e.preventDefault();
var idColissimoOrder = $(this).attr('data-colissimo-order-id');
var btn = $(this);
var shipmentsTable = $('.colissimo-shipments-' + parseInt(idColissimoOrder));
btn.find('i').attr('class', 'icon icon-spin icon-spinner');
btn.addClass('disabled');
shipmentsTable.fadeTo('fast', 0.4);
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoDashboard',
ajax: 1,
token: tokenDashboard,
action: 'updateOrderTracking',
newTheme: newTheme,
id_colissimo_order: parseInt(idColissimoOrder),
channel: channel
}
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericErrorMessage);
}).done(function (data) {
if (data.errors.length) {
for (var i = 0; i < data.errors.length; i++) {
showErrorMessage(data.errors[i]);
}
}
if (data.success.length) {
for (i = 0; i < data.success.length; i++) {
showSuccessMessage(data.success[i]);
}
}
shipmentsTable.html(data.html);
}).always(function (data) {
btn.find('i').attr('class', 'icon icon-refresh');
btn.removeClass('disabled');
shipmentsTable.fadeTo('fast', 1);
});
});
colissimoBlock
.off('click', 'a.colissimo-delete-label')
.on('click', 'a.colissimo-delete-label', function (e) {
e.preventDefault();
var idColissimoLabel = $(this).attr('data-colissimo-label-id');
var idColissimoOrder = $(this).closest('.colissimo-hook-admin-order').find('.colissimo-update-order-tracking button').attr('data-colissimo-order-id');
var className = '.colissimo-modal-delete-label-' + idColissimoOrder;
$(className + ' #colissimo-shipment-number').html($(this).attr('data-colissimo-label-number'));
$(className + ' input[name="colissimo-modal-label-id"]').val(idColissimoLabel);
$(className + '.colissimo-modal-delete-label').modal('show');
});
colissimoBlock
.off('click', '.colissimo-modal-confirm-mail-label')
.on('click', '.colissimo-modal-confirm-mail-label', function (e) {
e.preventDefault();
var sendMail = 1;
var idColissimoOrder = $(this).closest('.colissimo-modal-mail-label').find('input[name="colissimo-modal-order-id"]').val();
var idColissimoLabel = $(this).closest('.colissimo-modal-mail-label').find('input[name="colissimo-modal-label-id"]').val();
generateReturnLabel(sendMail, idColissimoOrder, idColissimoLabel);
});
colissimoBlock
.off('click', '.colissimo-modal-no-confirm-mail-label')
.on('click', '.colissimo-modal-no-confirm-mail-label', function (e) {
e.preventDefault();
var sendMail = 0;
var idColissimoOrder = $(this).closest('.colissimo-modal-mail-label').find('input[name="colissimo-modal-order-id"]').val();
var idColissimoLabel = $(this).closest('.colissimo-modal-mail-label').find('input[name="colissimo-modal-label-id"]').val();
generateReturnLabel(sendMail, idColissimoOrder, idColissimoLabel);
});
colissimoBlock
.off('click', '.colissimo-mail-return-label')
.on('click', '.colissimo-mail-return-label', function (e) {
e.preventDefault();
var idColissimoReturnLabel = $(this).attr('data-colissimo-return-label-id');
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoLabel',
ajax: 1,
token: tokenLabel,
action: 'mailReturnLabel',
id_colissimo_return_label: parseInt(idColissimoReturnLabel),
channel: channel
}
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericEmailErrorMessage);
}).done(function (data) {
if (!data.error) {
showSuccessMessage(data.message);
} else {
showErrorMessage(data.message);
}
});
});
colissimoBlock
.off('click', '.colissimo-generate-return-label')
.on('click', '.colissimo-generate-return-label', function (e) {
e.preventDefault();
var idColissimoLabel = parseInt($(this).attr('data-colissimo-label-id'));
var idColissimoOrder = $(this).closest('.colissimo-hook-admin-order').find('.colissimo-update-order-tracking button').attr('data-colissimo-order-id');
var className = '.colissimo-modal-mail-label-' + idColissimoOrder;
$(className + ' input[name="colissimo-modal-label-id"]').val(idColissimoLabel);
$(className + '.colissimo-modal-mail-label').modal('show');
});
colissimoBlock
.off('click', '.colissimo-modal-confirm-delete-label')
.on('click', '.colissimo-modal-confirm-delete-label', function (e) {
e.preventDefault();
var idColissimoOrder = $(this).closest('.colissimo-modal-delete-label').find('input[name="colissimo-modal-order-id"]').val();
var idColissimoLabel = $(this).closest('.colissimo-modal-delete-label').find('input[name="colissimo-modal-label-id"]').val();
var shipmentsTable = $('.colissimo-shipments-' + parseInt(idColissimoOrder));
$('.colissimo-modal-delete-label').modal('hide');
shipmentsTable.fadeTo('fast', 0.4);
shipmentsTable.css('pointer-events', 'none');
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoLabel',
ajax: 1,
token: tokenLabel,
action: 'deleteLabel',
newTheme: newTheme,
id_colissimo_label: parseInt(idColissimoLabel),
channel: channel
}
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericDeleteErrorMessage);
}).done(function (data) {
if (data === null) {
showErrorMessage(genericDeleteErrorMessage);
return;
}
if (!data.error) {
showSuccessMessage(data.message);
} else {
showErrorMessage(data.message);
}
if (data.html) {
shipmentsTable.html(data.html);
}
}).always(function (data) {
shipmentsTable.fadeTo('fast', 1);
shipmentsTable.css('pointer-events', 'auto');
});
});
colissimoBlock
.off('click', '.colissimo-service-selection')
.on('click', '.colissimo-service-selection', function (e) {
e.preventDefault();
var idOrder = $(this).attr('data-id-order');
$(this).find('i').toggleClass('icon-spin icon-spinner');
$(this).toggleClass('disabled');
loadColissimoServiceModalUpdate(idOrder);
});
function generateReturnLabel(sendMail, idColissimoOrder, idColissimoLabel) {
var btn = $('.colissimo-generate-return-label[data-colissimo-label-id=' + idColissimoLabel + ']');
var shipmentsTable = $('.colissimo-shipments-' + idColissimoOrder);
var tokenLabel = '{/literal}{getAdminToken tab='AdminColissimoLabel'}{literal}';
$('.colissimo-modal-mail-label-' + parseInt(idColissimoOrder)).modal('hide');
btn.find('i').attr('class', 'icon icon-spin icon-spinner');
btn.addClass('disabled');
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoLabel',
ajax: 1,
token: tokenLabel,
action: 'generateReturn',
newTheme: newTheme,
id_colissimo_label: parseInt(idColissimoLabel),
send_mail: sendMail,
channel: channel
}
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericErrorMessage);
}).done(function (data) {
if (!data.error) {
showSuccessMessage(data.message);
} else {
showErrorMessage(data.message);
}
if (data.warning_message !== undefined && data.warning_message != false) {
showNoticeMessage(data.warning_message);
}
shipmentsTable.html(data.html);
}).always(function (data) {
btn.find('i').attr('class', 'icon icon-refresh');
btn.removeClass('disabled');
});
}
</script>
{/literal}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,318 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="table-responsive colissimo-legacy colissimo-shipments colissimo-shipments-{$id_colissimo_order|intval}">
<table class="table">
<thead>
<tr>
<th class="text-center">
<span class="title_box "><i class="icon icon-info"></i> {l s='Last status known' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-barcode"></i> {l s='Label' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-euro"></i> {l s='Shipment insured' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-barcode"></i> {l s='Return label' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-euro"></i> {l s='Return shipment insured' mod='colissimo'}</span>
</th>
<th class="text-center">
<span class="title_box "><i class="icon icon-file-pdf-o"></i> {l s='CN23' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-file-pdf-o"></i> {l s='Return CN23' mod='colissimo'}</span></th>
<th class="text-center">
<span class="title_box "><i class="icon icon-file-pdf-o"></i> {l s='Deposit Slip' mod='colissimo'}</span></th>
</tr>
</thead>
<tbody>
{foreach $shipments as $shipment}
<tr class="product-line-row">
<td class="tracking-label-{$shipment.id_label|intval}">
{if $shipment.status_text}
{$shipment.status_text|escape:'htmlall':'UTF-8'}
{else}
<span class="text-muted">--</span>
{/if}
<br/>
{if $shipment.status_upd}
<span class="text-muted">({l s='last update on' mod='colissimo'} {$shipment.status_upd|escape:'htmlall':'UTF-8'}
)</span>
{/if}
</td>
<td class="tracking-number text-center">
{if $shipment.is_downloadable}
<div>
<a target="_blank"
title="{l s='Download label' mod='colissimo'}"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_label|intval}">
{$shipment.shipping_number|escape:'htmlall':'UTF-8'}
</a>
</div>
<a target="_blank"
title="{l s='Download label' mod='colissimo'}"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_label|intval}">
<i class="icon icon-download icon-xl"></i>
</a>
{if $shipment.is_printable_pdf}
<a class="icon-action"
title="{l s='Print label' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$shipment.id_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-xl icon-print"></i>
</a>
{else}
<a class="icon-action"
title="{l s='Print label' mod='colissimo'}"
onclick="printThermal('{$shipment['base64']|escape:'html':'UTF-8'}')">
<i class="icon icon-xl icon-print"></i>
</a>
{/if}
{else}
<div>
{$shipment.shipping_number|escape:'htmlall':'UTF-8'}
</div>
{/if}
{if $shipment.is_deletable}
<a data-colissimo-label-id="{$shipment.id_label|intval}"
data-colissimo-label-number="{$shipment.shipping_number|escape:'htmlall':'UTF-8'}"
title="{l s='Delete label' mod='colissimo'}"
class="colissimo-delete-label icon-action"
href="#">
<i class="icon icon-trash icon-xl"></i>
</a>
{/if}
</td>
<td class="text-center">
{if $shipment.insurance === '1'}
<i class="icon icon-check"></i>
{elseif $shipment.insurance === '0'}
<i class="icon icon-times"></i>
{else}
--
{/if}
</td>
<td class="tracking-number text-center">
{if isset($shipment.id_return_label)}
{if $shipment.return_is_downloadable}
<div>
<a target="_blank"
title="{l s='Download label' mod='colissimo'}"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_return_label|intval}">
{$shipment.return_shipping_number|escape:'htmlall':'UTF-8'}
</a>
</div>
<a target="_blank"
title="{l s='Download label' mod='colissimo'}"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_return_label|intval}">
<i class="icon icon-download icon-xl"></i>
</a>
<a class="icon-action"
title="{l s='Print label' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$shipment.id_return_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['return_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-xl icon-print"></i>
</a>
<a data-colissimo-return-label-id="{$shipment.id_return_label|intval}"
class="colissimo-mail-return-label icon-action"
title="{l s='Send by mail to customer' mod='colissimo'}"
href="#">
<i class="icon icon-envelope icon-xl"></i>
</a>
{else}
<div>
{$shipment.return_shipping_number|escape:'htmlall':'UTF-8'}
</div>
{/if}
{if $shipment.return_is_deletable}
<a data-colissimo-label-id="{$shipment.id_return_label|intval}"
data-colissimo-label-number="{$shipment.return_shipping_number|escape:'htmlall':'UTF-8'}"
title="{l s='Delete label' mod='colissimo'}"
class="colissimo-delete-label icon-action"
href="#">
<i class="icon icon-trash icon-xl"></i></a>
{/if}
{else}
{if $shipment.return_available < 1}
--
{else}
<button class="btn btn-primary colissimo-generate-return-label"
data-colissimo-label-id="{$shipment.id_label|intval}">
<i class="icon icon-refresh"></i>
{l s='Generate' mod='colissimo'}
</button>
{/if}
{/if}
</td>
<td class="text-center">
{if isset($shipment.id_return_label)}
{if $shipment.return_insurance === '1'}
<i class="icon icon-check"></i>
{elseif $shipment.return_insurance === '0'}
<i class="icon icon-times"></i>
{else}
--
{/if}
{else}
--
{/if}
</td>
<td class="text-center">
{if isset($shipment.cn23) && $shipment.cn23}
<a target="_blank"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$shipment.id_label|intval}">
<i class="icon icon-xl icon-download"></i>
</a>
<a class="icon-action"
title="{l s='Print CN23' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$shipment.id_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-xl icon-print"></i>
</a>
{else}
--
{/if}
</td>
<td class="text-center">
{if isset($shipment.return_cn23) && $shipment.return_cn23}
<a target="_blank"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$shipment.id_return_label|intval}">
<i class="icon icon-xl icon-download"></i>
</a>
<a class="icon-action"
title="{l s='Print CN23' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$shipment.id_return_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['return_cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-xl icon-print"></i>
</a>
{else}
--
{/if}
</td>
<td class="text-center">
{if isset($shipment.id_deposit_slip) && $shipment.id_deposit_slip}
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}&action=download&id_deposit_slip={$shipment.id_deposit_slip|intval}">
{l s='Deposit slip #%d' sprintf=$shipment.id_deposit_slip mod='colissimo'}<br/>
<i class="icon icon-xl icon-download"></i>
</a>
{else}
--
{/if}
</td>
</tr>
{foreachelse}
<tr>
<td class="list-empty hidden-print" colspan="6">
<div class="list-empty-msg">
<i class="icon-warning-sign list-empty-icon"></i>
{l s='You have not generated any labels yet.' mod='colissimo'}
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="colissimo-modal-delete-label colissimo-modal-delete-label-{$id_colissimo_order|intval} modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
{l s='Confirm label deleting' mod='colissimo'}
</h4>
</div>
<div class="modal-body">
<input type="hidden" name="colissimo-modal-order-id" value="{$id_colissimo_order|intval}"/>
<input type="hidden" name="colissimo-modal-label-id" value=""/>
<p class="alert alert-info">
{l s='Documents like CN23 and return labels associated with this label will be deleted as well.' mod='colissimo'}
</p>
<p class="modal-confirm">
{l s='Do you wan\'t to delete label' mod='colissimo'} <span id="colissimo-shipment-number"></span> ?
</p>
<div class="modal-actions">
<button class="btn btn-danger" data-dismiss="modal">
<i class="icon icon-times"></i>
{l s='No' mod='colissimo'}
</button>
<button class="btn btn-primary colissimo-modal-confirm-delete-label">
<i class="icon- icon-check"></i>
{l s='Yes' mod='colissimo'}
</button>
</div>
</div>
</div>
</div>
</div>
<div class="colissimo-modal-mail-label colissimo-modal-mail-label-{$id_colissimo_order|intval} modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
{l s='The return label is about to be generated' mod='colissimo'}
</h4>
</div>
<div class="modal-body">
<input type="hidden" name="colissimo-modal-order-id" value="{$id_colissimo_order|intval}"/>
<input type="hidden" name="colissimo-modal-label-id" value=""/>
<p class="modal-confirm">
{l s='Do you want to send it by mail to your customer' mod='colissimo'} ?
</p>
<div class="modal-actions">
<button class="btn btn-danger colissimo-modal-no-confirm-mail-label">
<i class="icon icon-times"></i>
{l s='No' mod='colissimo'}
</button>
<button class="btn btn-primary colissimo-modal-confirm-mail-label">
<i class="icon- icon-check"></i>
{l s='Yes' mod='colissimo'}
</button>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,34 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-hook-admin-order">
{block name="customer_detail"}{/block}
{block name="labels_actions_top"}{/block}
{block name="colissimo_table"}{/block}
{block name="labels_actions_bottom"}{/block}
{block name="javascript_block"}
{include file="../_javascript.tpl"}
{/block}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,44 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel" id="view_colissimo_block">
<div class="panel-heading">
Colissimo v{$data.module_version|escape:'htmlall':'UTF-8'}
</div>
<div class="colissimo-order">
<img class="logo" src="{$data.img_path|escape:'htmlall':'UTF-8'}Colissimo_Logo_H.png">
</div>
<div class="row colissimo-hook-admin-order">
{block name="order_detail"}{/block}
{block name="customer_detail"}{/block}
{block name="labels_actions_top"}{/block}
{block name="colissimo_table"}{/block}
{block name="labels_actions_bottom"}{/block}
</div>
</div>
{block name="javascript_block"}
{include file="../_javascript.tpl"}
{/block}

View File

@@ -0,0 +1,52 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name="order_detail"}
<div class="alert alert-info">
<p>{l s='This order has not been placed using a Colissimo carrier.' mod='colissimo'}</p>
<p>{l s='However, you can still associate it to Colissimo in order to generate label, track shipments etc...' mod='colissimo'}</p>
<p>{l s='Choose between home delivery or pickup delivery...' mod='colissimo'}</p>
</div>
<div class="row">
<a class="colissimo-service-selection btn btn-primary" href="#" data-id-order="{$id_order|intval}">
<i class="icon icon-link"></i>
{l s='Associate order to Colissimo' mod='colissimo'}
</a>
</div>
{/block}
{block name="customer_detail"}{/block}
{block name="labels_actions_top"}{/block}
{block name="colissimo_table"}{/block}
{block name="labels_actions_bottom"}{/block}
{block name="javascript_block"}
{literal}
<script type="text/javascript">
var newTheme = 0;
</script>
{/literal}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,131 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name="order_detail"}
{/block}
{block name="customer_detail"}
{if $show_visibility_btn}
<button name="submitShowColissimoOrder" type="submit" class="btn btn-outline-primary js-colissimo-show-hidden-order colissimo-show-hidden-order" data-colissimo-order-id="{$id_colissimo_order|intval}">
<i class="icon icon-eye-open"></i>
{l s='Make order visible in Postage list' mod='colissimo'}
</button>
{/if}
<p class="colissimo-order-summary-title">{l s='Order summary' mod='colissimo'}</p>
<div class="row">
<div class="col-sm-4">
<p class="colissimo-order-summary">
<span><b>{l s='Total order (tax incl.):' mod='colissimo'}</b></span>&nbsp;{displayPrice price=$order_totals.amount currency=$order_totals.id_currency}
<br/>
<span><b>{l s='Total shipping (tax incl.):' mod='colissimo'}</b></span>&nbsp;{displayPrice price=$order_totals.shipping currency=$order_totals.id_currency}
<br/>
<span><b>{l s='Total weight:' mod='colissimo'}</b></span>&nbsp;{$order_totals.weight|floatval} {$order_totals.weight_unit|escape:'htmlall':'UTF-8'}
<br/><br/>
<a class="btn btn-default colissimo-order-page"
target="_blank"
href="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$id_order|intval}">
<i class="icon icon-external-link"></i> {l s='Go to order page' mod='colissimo'}
</a>
</p>
</div>
<div class="col-sm-4">
<p class="colissimo-order-summary">
<span><i class="icon icon-truck"></i>&nbsp;<b>{l s='Delivery address' mod='colissimo'}</b></span><br/>
<span>
{if $delivery_addr->company}
{$delivery_addr->company|escape:'htmlall':'UTF-8'}
<br/>
{/if}
{$delivery_addr->firstname|escape:'htmlall':'UTF-8'} {$delivery_addr->lastname|escape:'htmlall':'UTF-8'}<br/>
{$delivery_addr->address1|escape:'htmlall':'UTF-8'}<br/>
{if $delivery_addr->address2}
{$delivery_addr->address2|escape:'htmlall':'UTF-8'}
<br/>
{/if}
{$delivery_addr->postcode|escape:'htmlall':'UTF-8'} {$delivery_addr->city|escape:'htmlall':'UTF-8'}{if $delivery_addr->id_state}, {State::getNameById($delivery_addr->id_state)|escape:'htmlall':'UTF-8'}{/if}
<br/>
{$delivery_addr->country|escape:'htmlall':'UTF-8'}<br/>
</span>
{if $pickup_point_id}
<br/>
<span class="colissimo-pickup-point-number">
{l s='Pickup point No.:' mod='colissimo'}
{$pickup_point_id|escape:'htmlall':'UTF-8'}
</span>
{/if}
</p>
</div>
<div class="col-sm-4">
<p class="colissimo-order-summary">
<span><i class="icon icon-user"></i>&nbsp;<b>{l s='Contact details' mod='colissimo'}</b></span><br/>
<span>
{$customer->firstname|escape:'htmlall':'UTF-8'} {$customer->lastname|escape:'htmlall':'UTF-8'}<br/>
{l s='Phone:' mod='colissimo'} {$delivery_addr->phone|escape:'htmlall':'UTF-8'}<br/>
{l s='Mobile:' mod='colissimo'} {$delivery_addr->phone_mobile|escape:'htmlall':'UTF-8'}<br/>
<a href="mailto:{$customer->email|escape:'htmlall':'UTF-8'}">{$customer->email|escape:'htmlall':'UTF-8'}</a>
</span>
</p>
</div>
</div>
{/block}
{block name="labels_actions_top"}
<div class="row">
<div class="col-sm-12 colissimo-create-label {if $coliship_enabled}coliship-enabled{/if}">
<form method="post" action="{$link->getAdminLink('AdminColissimoAffranchissement')|escape:'htmlall':'UTF-8'}">
<input type="hidden" name="colissimo_orderBox[]" value="{$id_colissimo_order|intval}"/>
<button name="submitProcessColissimoSelection" type="submit" class="btn btn-primary">
<i class="icon icon-plus-circle"></i>
{l s='Create a label' mod='colissimo'}
</button>
</form>
</div>
</div>
{/block}
{block name="colissimo_table"}
<div id="block-colissimo-shipments" class="colissimo-shipments-{$id_colissimo_order|intval}">
{include file="./_shipments.tpl"}
</div>
{/block}
{block name="labels_actions_bottom"}
{if $shipments}
<p class="colissimo-update-order-tracking">
<button class="btn btn-primary" data-colissimo-order-id="{$id_colissimo_order|intval}">
<i class="icon icon-refresh"></i> {l s='Update tracking of this order' mod='colissimo'}
</button>
</p>
{/if}
{/block}
{block name="javascript_block"}
{literal}
<script type="text/javascript">
var newTheme = 0;
</script>
{/literal}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,324 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="table-responsive colissimo-new-theme colissimo-shipments">
<table class="table">
<thead>
<tr>
<th class="text-center">
<span class="title_box "><i class="icon icon-info"></i> {l s='#' mod='colissimo'}</span></th>
<th class="text-center" style="width: 45%">
<span class="title_box "><i class="icon icon-barcode"></i> {l s='Shipment' mod='colissimo'}</span></th>
<th class="text-center" style="width: 45%">
<span class="title_box "><i class="icon icon-euro"></i> {l s='Return shipment' mod='colissimo'}</span></th>
</tr>
</thead>
<tbody>
{foreach from=$shipments key=$i item=$shipment name=shipments}
<tr class="product-line-row">
<td style="width: 10%">#{$smarty.foreach.shipments.iteration}</td>
<td colspan="2" class="tracking-label-1">
<div class="container">
<div class="row text-center">
<div class="col-6">
<p>
<span class="font-weight-bold colissimo-shipment-number">{$shipment.shipping_number|escape:'htmlall':'UTF-8'}</span>
{if $shipment.status_text}
<span class="d-block">{$shipment.status_text|escape:'htmlall':'UTF-8'}</span>
{/if}
{if $shipment.status_upd}
<span class="text-muted colissimo-shipment-status">
({l s='last update on' mod='colissimo'} {$shipment.status_upd|escape:'htmlall':'UTF-8'})
</span>
{/if}
</p>
</div>
<div class="col-6">
{if isset($shipment.id_return_label)}
<p>
<span class="font-weight-bold colissimo-shipment-number">{$shipment.return_shipping_number|escape:'htmlall':'UTF-8'}</span>
</p>
{/if}
</div>
</div>
<div class="row">
<div class="col-6">
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right text-sm-center">{l s='Label' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if $shipment.is_downloadable}
<a target="_blank"
title="{l s='Download label' mod='colissimo'}"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_label|intval}">
<i class="material-icons">get_app</i>
</a>
{/if}
{if $shipment.is_printable_pdf}
<a class="icon-action"
title="{l s='Print label' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$shipment.id_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="material-icons">print</i>
</a>
{else}
<a class="icon-action"
title="{l s='Print label' mod='colissimo'}"
onclick="printThermal('{$shipment['base64']|escape:'html':'UTF-8'}')">
<i class="material-icons">print</i>
</a>
{/if}
{if $shipment.is_deletable}
<a data-colissimo-label-id="{$shipment.id_label|intval}"
data-colissimo-label-number="{$shipment.shipping_number|escape:'htmlall':'UTF-8'}"
title="{l s='Delete label' mod='colissimo'}"
class="colissimo-delete-label icon-action icon-action-red"
href="#">
<i class="material-icons">delete_forever</i>
</a>
{/if}
</div>
</div>
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right text-sm-center">{l s='CN23' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if isset($shipment.cn23) && $shipment.cn23}
<a target="_blank"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$shipment.id_label|intval}">
<i class="material-icons">get_app</i>
</a>
<a class="icon-action"
title="{l s='Print CN23' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$shipment.id_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="material-icons">print</i>
</a>
{else}
<span class="ml-2">--</span>
{/if}
</div>
</div>
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right text-sm-center">{l s='Deposit slip' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if isset($shipment.id_deposit_slip) && $shipment.id_deposit_slip}
<a target="_blank"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}&action=download&id_deposit_slip={$shipment.id_deposit_slip|intval}">
<i class="material-icons">get_app</i>
</a>
{else}
<span class="ml-2">--</span>
{/if}
</div>
</div>
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right">{l s='Shipment insured' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if $shipment.insurance === '1'}
<i class="ml-1 material-icons icon-action-green">done</i>
{elseif $shipment.insurance === '0'}
<i class="ml-1 material-icons icon-action-red">clear</i>
{else}
--
{/if}
</div>
</div>
</div>
<div class="col-6">
{if isset($shipment.id_return_label)}
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right">{l s='Return label' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if $shipment.return_is_downloadable}
<a target="_blank"
title="{l s='Download return label' mod='colissimo'}"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$shipment.id_return_label|intval}">
<i class="material-icons">get_app</i>
</a>
<a class="icon-action"
title="{l s='Print return label' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$shipment.id_return_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['return_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="material-icons">print</i>
</a>
<a data-colissimo-return-label-id="{$shipment.id_return_label|intval}"
class="colissimo-mail-return-label icon-action"
title="{l s='Send by mail to customer' mod='colissimo'}"
href="#">
<i class="material-icons">mail_outline</i>
</a>
{/if}
{if $shipment.return_is_deletable}
<a data-colissimo-label-id="{$shipment.id_return_label|intval}"
data-colissimo-label-number="{$shipment.return_shipping_number|escape:'htmlall':'UTF-8'}"
title="{l s='Delete return label' mod='colissimo'}"
class="colissimo-delete-label icon-action icon-action-red"
href="#">
<i class="material-icons">delete_forever</i>
</a>
{/if}
</div>
</div>
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right">{l s='Return CN23' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if isset($shipment.return_cn23) && $shipment.return_cn23}
<a target="_blank"
class="icon-action"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$shipment.id_return_label|intval}">
<i class="material-icons">get_app</i>
</a>
<a class="icon-action"
title="{l s='Print return CN23' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$shipment.id_return_label|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$shipment['return_cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="material-icons">print</i>
</a>
{else}
<span class="ml-2">--</span>
{/if}
</div>
</div>
<div class="row align-items-center mb-sm-2 mb-xl-0 text-sm-center">
<div class="col-xl-4 text-xl-right">{l s='Return shipment insured' mod='colissimo'}</div>
<div class="col-xl-8 text-xl-left">
{if $shipment.return_insurance === '1'}
<i class="ml-1 material-icons icon-action-green">done</i>
{elseif $shipment.return_insurance === '0'}
<i class="ml-1 material-icons icon-action-red">clear</i>
{else}
--
{/if}
</div>
</div>
{else}
<div class="row">
<div class="col-xl-12 text-center">
{if $shipment.return_available >= 1}
<button class="btn btn-primary colissimo-generate-return-label"
data-colissimo-label-id="{$shipment.id_label|intval}">
{l s='Generate' mod='colissimo'}
</button>
{/if}
</div>
</div>
{/if}
</div>
</div>
</div>
</td>
</tr>
{foreachelse}
<tr>
<td class="list-empty hidden-print" colspan="3">
<div class="list-empty-msg">
<i class="icon-warning-sign list-empty-icon"></i>
{l s='You have not generated any labels yet.' mod='colissimo'}
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="colissimo-modal-delete-label colissimo-modal-delete-label-{$id_colissimo_order|intval} modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
{l s='Confirm label deleting' mod='colissimo'}
</h4>
</div>
<div class="modal-body">
<input type="hidden" name="colissimo-modal-order-id" value="{$id_colissimo_order|intval}"/>
<input type="hidden" name="colissimo-modal-label-id" value=""/>
<p class="alert alert-info">
{l s='Documents like CN23 and return labels associated with this label will be deleted as well.' mod='colissimo'}
</p>
<p class="modal-confirm">
{l s='Do you wan\'t to delete label' mod='colissimo'} <span id="colissimo-shipment-number"></span> ?
</p>
<div class="modal-actions">
<button class="btn btn-danger" data-dismiss="modal">
<i class="icon icon-times"></i>
{l s='No' mod='colissimo'}
</button>
<button class="btn btn-primary colissimo-modal-confirm-delete-label">
<i class="icon- icon-check"></i>
{l s='Yes' mod='colissimo'}
</button>
</div>
</div>
</div>
</div>
</div>
<div class="colissimo-modal-mail-label colissimo-modal-mail-label-{$id_colissimo_order|intval} modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
{l s='The return label is about to be generated' mod='colissimo'}
</h4>
</div>
<div class="modal-body">
<input type="hidden" name="colissimo-modal-order-id" value="{$id_colissimo_order|intval}"/>
<input type="hidden" name="colissimo-modal-label-id" value=""/>
<p class="modal-confirm">
{l s='Do you want to send it by mail to your customer' mod='colissimo'} ?
</p>
<div class="modal-actions">
<button class="btn btn-danger colissimo-modal-no-confirm-mail-label">
<i class="icon icon-times"></i>
{l s='No' mod='colissimo'}
</button>
<button class="btn btn-primary colissimo-modal-confirm-mail-label">
<i class="icon- icon-check"></i>
{l s='Yes' mod='colissimo'}
</button>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,44 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="card mt-2" id="view_colissimo_block">
<div class="card-header">
<h3 class="card-header-title">
<img class="logo" src="{$data.img_path|escape:'htmlall':'UTF-8'}Colissimo_Logo_H.png"/>
</h3>
</div>
<div class="card-body colissimo-hook-admin-order">
{block name="order_detail"}{/block}
{block name="customer_detail"}{/block}
{block name="labels_actions_top"}{/block}
{block name="colissimo_table"}{/block}
{block name="labels_actions_bottom"}{/block}
</div>
</div>
{block name="javascript_block"}
{include file="../_javascript.tpl"}
{/block}

View File

@@ -0,0 +1,52 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name="order_detail"}
<div class="alert alert-info">
<p>{l s='This order has not been placed using a Colissimo carrier.' mod='colissimo'}</p>
<p>{l s='However, you can still associate it to Colissimo in order to generate label, track shipments etc...' mod='colissimo'}</p>
<p>{l s='Choose between home delivery or pickup delivery...' mod='colissimo'}</p>
</div>
<div class="row">
<a class="colissimo-service-selection btn btn-primary ml-3" href="#" data-id-order="{$id_order|intval}">
<i class="icon icon-link"></i>
{l s='Associate order to Colissimo' mod='colissimo'}
</a>
</div>
{/block}
{block name="customer_detail"}{/block}
{block name="labels_actions_top"}{/block}
{block name="colissimo_table"}{/block}
{block name="labels_actions_bottom"}{/block}
{block name="javascript_block"}
{literal}
<script type="text/javascript">
var newTheme = 1;
</script>
{/literal}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,138 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name="order_detail"}
{if $show_visibility_btn}
<button name="submitShowColissimoOrder" type="submit" class="mb-2 btn btn-outline-primary js-colissimo-show-hidden-order colissimo-show-hidden-order" data-colissimo-order-id="{$id_colissimo_order|intval}">
<i class="icon icon-eye-open"></i>
{l s='Make order visible in Postage list' mod='colissimo'}
</button>
{/if}
<div class="info-block">
<div class="row">
<div class="col-sm text-center">
<p class="text-muted mb-0">
<strong>{l s='Service' mod='colissimo'}</strong>
</p>
<strong>{$colissimo_service}</strong>
</div>
<div class="col-sm text-center">
<p class="text-muted mb-0">
<strong>{l s='Total shipping (tax incl.):' mod='colissimo'}</strong>
</p>
<strong>{displayPrice price=$order_totals.shipping currency=$order_totals.id_currency}</strong>
</div>
<div class="col-sm text-center">
<p class="text-muted mb-0">
<strong>{l s='Total weight:' mod='colissimo'}</strong>
</p>
<strong>{$order_totals.weight|floatval} {$order_totals.weight_unit|escape:'htmlall':'UTF-8'}</strong>
</div>
</div>
</div>
{/block}
{block name="customer_detail"}
<div class="info-block mt-2">
<div class="row">
<div class="info-block-col col-md-6">
<div class="row justify-content-between no-gutters">
<strong>{l s='Delivery address' mod='colissimo'}</strong>
</div>
{if $delivery_addr->company}
<p class="mb-0">{$delivery_addr->company|escape:'htmlall':'UTF-8'}</p>
{/if}
<p class="mb-0">{$delivery_addr->firstname|escape:'htmlall':'UTF-8'} {$delivery_addr->lastname|escape:'htmlall':'UTF-8'}</p>
<p class="mb-0">{$delivery_addr->address1|escape:'htmlall':'UTF-8'}</p>
{if $delivery_addr->address2}
<p class="mb-0">{$delivery_addr->address2|escape:'htmlall':'UTF-8'}</p>
{/if}
<p class="mb-0">
{$delivery_addr->postcode|escape:'htmlall':'UTF-8'} {$delivery_addr->city|escape:'htmlall':'UTF-8'}{if $delivery_addr->id_state}, {State::getNameById($delivery_addr->id_state)|escape:'htmlall':'UTF-8'}{/if}
</p>
<p class="mb-0">
{$delivery_addr->country|escape:'htmlall':'UTF-8'}
</p>
{if $pickup_point_id}
<p class="mb-0 mt-1">
<span class="colissimo-pickup-point-number">
{l s='Pickup point No.:' mod='colissimo'}
{$pickup_point_id|escape:'htmlall':'UTF-8'}
</span>
</p>
{/if}
</div>
<div class="info-block-col col-md-6">
<div class="row justify-content-between no-gutters">
<strong>{l s='Contact details' mod='colissimo'}</strong>
</div>
<p class="mb-0">{$customer->firstname|escape:'htmlall':'UTF-8'} {$customer->lastname|escape:'htmlall':'UTF-8'}</p>
<p class="mb-0">{l s='Phone:' mod='colissimo'} {$delivery_addr->phone|escape:'htmlall':'UTF-8'}</p>
<p class="mb-0">{l s='Mobile:' mod='colissimo'} {$delivery_addr->phone_mobile|escape:'htmlall':'UTF-8'}</p>
<p class="mb-0"><a href="mailto:{$customer->email|escape:'htmlall':'UTF-8'}">{$customer->email|escape:'htmlall':'UTF-8'}</a></p>
</div>
</div>
</div>
{/block}
{block name="labels_actions_top"}
<div class="row mt-4">
<div class="col-sm-12 colissimo-create-label {if $coliship_enabled}coliship-enabled{/if}">
<form method="post" action="{$link->getAdminLink('AdminColissimoAffranchissement')|escape:'htmlall':'UTF-8'}">
<input type="hidden" name="colissimo_orderBox[]" value="{$id_colissimo_order|intval}"/>
<button name="submitProcessColissimoSelection" type="submit" class="btn btn-primary">
<i class="icon icon-plus-circle"></i>
{l s='Create a label' mod='colissimo'}
</button>
</form>
</div>
</div>
{/block}
{block name="colissimo_table"}
<div id="block-colissimo-shipments" class="colissimo-shipments-{$id_colissimo_order|intval}">
{include file="./_shipments.tpl"}
</div>
{/block}
{block name="labels_actions_bottom"}
{if $shipments}
<p class="colissimo-update-order-tracking">
<button class="btn btn-primary" data-colissimo-order-id="{$id_colissimo_order|intval}">
<i class="icon icon-refresh"></i> {l s='Update tracking of this order' mod='colissimo'}
</button>
</p>
{/if}
{/block}
{block name="javascript_block"}
{literal}
<script type="text/javascript">
var newTheme = true;
</script>
{/literal}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,50 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<tr class="sub-tr colissimo-address-detail-{$id_colissimo_order|intval}">
<td colspan="{$nb_col|intval}" class="sub-td">
<div class="border-top">
<div class="row">
<div class="col-lg-6">
<button data-id="{$id_colissimo_order|intval}" class="btn btn-primary btn-close">
<i class="icon icon-times"></i> {l s='Close without saving' mod='colissimo'}
</button>
{$form_html}
</div>
</div>
</td>
</tr>
{literal}
<script>
var addressErrorMessage = "{/literal}{l s='Address could not be saved.' mod='colissimo'}{literal}";
var genericErrorMessage = "{/literal}{l s='An error occured. Please try again.' mod='colissimo'}{literal}";
$('.colissimo-update-addr').submit(function (e) {
e.preventDefault();
submitAddress($(this));
});
</script>
{/literal}

View File

@@ -0,0 +1,33 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-docs-alert alert alert-warning">
<p>{l s='We noticed that you reached the limit of the number of Colissimo documents (labels, CN23, deposit slips) stored on the server.' mod='colissimo'}</p>
<p>{l s='We advise you to free some space by clicking the button below.' mod='colissimo'} {l s='Documents older than %d days will be deleted.' sprintf=$docs_lifetime|intval mod='colissimo'}</p>
<button class="btn btn-danger" id="colissimo-purge-documents">
<i class="icon icon-trash"></i>
{l s='Delete %d file(s)' sprintf=$docs_to_delete|intval mod='colissimo'}
</button>
</div>

View File

@@ -0,0 +1,63 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-info">
{l s='All orders have been processed.' mod='colissimo'}
</div>
<div class="colissimo-download-result-buttons">
{if $input_label || $input_return_label || $input_cn23}
<div class="form-group">
<form method="post"
id="colissimo-form-documents"
action="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadDocuments">
<label for="colissimo-file-list">{l s='Documents' mod='colissimo'}</label>
<select name="colissimo_file_type" id="colissimo-file-list">
<option selected="selected" value="all">{l s='All documents' mod='colissimo'}</option>
<option value="labels">{l s='Labels' mod='colissimo'}</option>
<option value="return_labels">{l s='Return labels' mod='colissimo'}</option>
<option value="cn23">{l s='CN23' mod='colissimo'}</option>
</select>
<input type="hidden" name="colissimo_label_ids" value="{$input_label|escape:'htmlall':'UTF-8'}"/>
</form>
</div>
<button type="submit" class="btn btn-primary btn-print" value="1" name="print">
<i class="icon icon-print"></i>
{l s='Print PDF' mod='colissimo'}
</button>
<button type="submit" class="btn btn-primary btn-print-thermal" value="1" name="print">
<i class="icon icon-print"></i>
{l s='Print thermal labels' mod='colissimo'}
</button>
<button type="submit" class="btn btn-primary btn-download" value="1" name="download">
<i class="icon icon-download"></i>
{l s='Download' mod='colissimo'}
</button>
{/if}
</div>
{if !$input_label && !$input_return_label && !$input_cn23}
<div class="alert alert-warning">
{l s='No labels or documents have been generated. Please review errors.' mod='colissimo'}
</div>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,34 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="col-lg-offset-3">
<input type="hidden" name="id_colissimo_pickup_point" value="{$pickup_point.colissimo_id|escape:'html':'UTF-8'}"/>
<p style="font-weight: bold;">{$pickup_point.company_name|escape:'html':'UTF-8'}</p>
<p>
{$pickup_point.address1|escape:'html':'UTF-8'}<br/>
{$pickup_point.zipcode|escape:'html':'UTF-8'} {$pickup_point.city|escape:'html':'UTF-8'}<br/>
{$pickup_point.country|escape:'html':'UTF-8'}
</p>
</div>

View File

@@ -0,0 +1,106 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="modal-header">
<h4 class="modal-title">{l s='Colissimo service selection' mod='colissimo'}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Available Colissimo services' mod='colissimo'}</label>
<div class="col-lg-9">
<select class="col-lg-4" name="colissimo_service_to_associate" id="colissimo-service-to-associate">
{foreach $colissimo_services as $id_service => $name}
{if $id_service || $colissimo_widget_token}
<option value="{$id_service|intval}">
{$name|escape:'html':'UTF-8'}
</option>
{/if}
{/foreach}
</select>
</div>
</div>
<div class="colissimo-pickup-point-selection">
<button class="btn btn-primary col-lg-offset-3 colissimo-pickup-point-btn">
{l s='Select a pickup point' mod='colissimo'}
</button>
<div class="pickup-point-selected">
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit"
name="submitColissimoValidateService"
class="col-lg-offset-3 btn btn-primary colissimo-submit-update-service">
<i class="icon icon-check"></i>
{l s='Validate' mod='colissimo'}
</button>
</div>
<script type="text/javascript">
{literal}
$('.admincolissimoaffranchissement .colissimo-form-update-service').off('submit').on('submit', function (e) {
e.preventDefault();
var $form = $(this);
var data = {
'controller': 'AdminColissimoAffranchissement',
'ajax': 1,
'token': tokenAffranchissement,
'action': 'validateServiceUpdate'
};
data = $form.serialize() + '&' + $.param(data);
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: data
}).fail(function (jqXHR, textStatus) {
showErrorMessage(genericErrorMessage);
}).done(function (data) {
if (!data.error) {
var row = $('tr.row-id-order-' + data.order.id_order);
row.find('td.colissimo-delivery-addr').html(data.html_address);
row.find('td.colissimo-service').html(data.html_service);
row.find('td.colissimo-insurance').html(data.html_insurance);
if (data.order.relais) {
row.find('td.colissimo-d150 input[type="checkbox"]').prop('disabled', true);
} else {
row.find('td.colissimo-d150 input[type="checkbox"]').prop('disabled', false);
}
} else {
showErrorMessage(data.message);
}
}).always(function (data) {
$('.colissimo-back-widget').modal('hide');
});
});
{/literal}
</script>

View File

@@ -0,0 +1,122 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="bootstrap colissimo-back-widget modal fade">
<div class="modal-dialog modal-lg">
<form class="form-horizontal colissimo-form-update-service" method="post">
<input type="hidden" name="upd_id_order" value="{$id_order|intval}"/>
<div class="modal-content step-selection">
{include file="./modal-service-selection-form.tpl"}
</div>
<div id="colissimo-widget-container" class="modal-content step-widget" style="display: none">
</div>
</form>
</div>
<script type="text/javascript">
{literal}
var colissimoToken = '{/literal}{$colissimo_widget_token|escape:'htmlall':'UTF-8'}{literal}';
var colissimoPreparationTime = {/literal}{$preparation_time|intval}{literal};
var widgetLang = "{/literal}{$colissimo_widget_lang|escape:'htmlall':'UTF-8'}{literal}";
var colissimoDeliveryAddress = {
address: "{/literal}{$delivery_addr.address|strip_tags|addslashes}{literal}",
zipcode: "{/literal}{$delivery_addr.zipcode|escape:'htmlall':'UTF-8'}{literal}",
city: "{/literal}{$delivery_addr.city|strip_tags|addslashes}{literal}",
isoCountry: "{/literal}{$delivery_addr.iso_country|escape:'htmlall':'UTF-8'}{literal}"
};
var phones = [{"mask": "\+\(##\)########[#][#][#][#]"}];
$('.colissimo-pickup-point-selection').hide();
$('#colissimo-service-to-associate').on('change', function () {
if (parseInt($(this).val()) == 0) {
$('.colissimo-pickup-point-selection').show();
} else {
$('.colissimo-pickup-point-selection').hide();
}
});
$('.colissimo-back-widget').on('hidden.bs.modal', function () {
$(this).remove();
});
$('.colissimo-pickup-point-btn').off('click').on('click', function (e) {
e.preventDefault();
$('.colissimo-back-widget .modal-content.step-selection').hide();
$('.colissimo-back-widget .modal-content.step-widget').show();
$('.colissimo-widget-container').frameColissimoOpen({
"ceLang": widgetLang,
"callBackFrame": 'callBackFrame',
"URLColissimo": "https://ws.colissimo.fr",
"ceCountryList": colissimoDeliveryAddress['isoCountry'],
"ceCountry": colissimoDeliveryAddress['isoCountry'],
"dyPreparationTime": colissimoPreparationTime,
"ceAddress": colissimoDeliveryAddress['address'],
"ceZipCode": colissimoDeliveryAddress['zipcode'],
"ceTown": colissimoDeliveryAddress['city'],
"token": colissimoToken
});
$('.colissimo-back-widget').removeClass('bootstrap');
});
function callBackFrame(point) {
var infoPoint = new Object({
colissimo_id: point['identifiant'],
company_name: point['nom'],
address1: point['adresse1'],
address2: point['adresse2'],
address3: point['adress3'],
city: point['localite'],
zipcode: point['codePostal'],
country: point['libellePays'],
iso_country: point['codePays'],
product_code: point['typeDePoint'],
network: point['reseau']
});
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoAffranchissement',
ajax: 1,
token: tokenAffranchissement,
action: 'selectPickupPoint',
infoPoint: JSON.stringify(infoPoint),
}
}).fail(function (jqXHR, textStatus) {
}).done(function (data) {
$('.colissimo-back-widget .modal-content.step-selection .pickup-point-selected').html(data.result_html);
}).always(function (data) {
$('.colissimo-back-widget').addClass('bootstrap');
$('.colissimo-back-widget .modal-content.step-selection').show();
$('.colissimo-back-widget .modal-content.step-widget').hide();
$('#colissimo-widget-container').html('');
});
}
{/literal}
</script>
</div>

View File

@@ -0,0 +1,68 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="border-top">
<div class="panel">
<p class="colissimo-order-summary-title">{l s='Order summary' mod='colissimo'}</p>
<p class="colissimo-order-summary">
<span><b>{l s='Total order (tax incl.):' mod='colissimo'}</b></span>&nbsp;{displayPrice price=$order_totals.amount currency=$order_totals.id_currency}
<br/>
<span><b>{l s='Total shipping (tax incl.):' mod='colissimo'}</b></span>&nbsp;{displayPrice price=$order_totals.shipping currency=$order_totals.id_currency}
<br/>
<span><b>{l s='Total weight:' mod='colissimo'}</b></span>&nbsp;{$order_totals.weight|floatval} {$order_totals.weight_unit|escape:'htmlall':'UTF-8'}
<br/>
</p>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span class="title_box ">{l s='Product name' mod='colissimo'}</span></th>
<th><span class="title_box ">{l s='Reference' mod='colissimo'}</span></th>
<th><span class="title_box ">{l s='Quantity' mod='colissimo'}</span></th>
<th>
<span class="title_box ">{l s='Unit price' mod='colissimo'}</span>
<small class="text-muted">{l s='(tax excl.)' mod='colissimo'}</small>
</th>
<th>
<span class="title_box ">{l s='Unit weight' mod='colissimo'}</span>
<small class="text-muted">{l s='(%s)' sprintf=$order_totals.weight_unit|escape:'htmlall':'UTF-8' mod='colissimo'}</small>
</th>
</tr>
</thead>
<tbody>
{foreach $order_details as $order_detail}
<tr class="product-line-row">
<td>{$order_detail.product_name|escape:'htmlall':'UTF-8'}</td>
<td>{$order_detail.product_reference|escape:'htmlall':'UTF-8'}</td>
<td>{$order_detail.product_quantity|escape:'htmlall':'UTF-8'}</td>
<td>{displayPrice price=$order_detail.unit_price_tax_excl|floatval currency=$order_totals.id_currency|intval}</td>
<td>{$order_detail.product_weight|floatval}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>

View File

@@ -0,0 +1,34 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-progress-bar">
<div class="step {$step[1]['state']|escape:'htmlall':'UTF-8'}">1<p>{l s='Selection' mod='colissimo'}</p></div>
<div class="step-line {$step[1]['line']|escape:'htmlall':'UTF-8'}"></div>
<div class="step {$step[2]['state']|escape:'htmlall':'UTF-8'} step-config">2<p>{l s='Configuration' mod='colissimo'}</p></div>
<div class="step-line">
<div class="js-step-line"></div>
</div>
<div class="step incomplete">3<p>{l s='Impression' mod='colissimo'}</p></div>
</div>

View File

@@ -0,0 +1,50 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if !$order.relais}
<i class="addr-status icon {if $order.address_valid}icon-check{else}icon-times{/if}"></i>
<i class="icon icon-pencil"></i>
{/if}
<div>
<b>{$order.delivery_addr->lastname|escape:'html':'UTF-8'|upper} {$order.delivery_addr->firstname|escape:'html':'UTF-8'|upper}</b><br/>
{$order.delivery_addr->company|escape:'html':'UTF-8'}<br/>
{$order.delivery_addr->address1|escape:'html':'UTF-8'}<br/>
{if $order.delivery_addr->address2}
{$order.delivery_addr->address2|escape:'html':'UTF-8'}
<br/>
{/if}
{$order.delivery_addr->postcode|escape:'html':'UTF-8'} {$order.delivery_addr->city|escape:'html':'UTF-8'}{if $order.delivery_state}, {$order.delivery_state|escape:'html':'UTF-8'}{/if}
<br/>
{$order.delivery_addr->country|escape:'html':'UTF-8'}
{if $order.relais}
<p>{l s='Mobile phone provided by customer' mod='colissimo'}</p>
<input type="text"
autocomplete="tel-national"
name="colissimo_pickup_mobile_{$key|intval}"
id="colissimo-pickup-mobile_{$key|intval}"
value="{$order.delivery_addr->phone_mobile|escape:'html':'UTF-8'}"
class="colissimo-pickup-mobile-phone input fixed-width-lg"/>
{/if}
</div>

View File

@@ -0,0 +1,30 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<input type="checkbox"
{if $order.insurance == 1}checked="checked" {/if}
{if $order.insurance < 0}disabled="disabled"{/if}
name="colissimo_insurance_{$key|intval}"
/>

View File

@@ -0,0 +1,158 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if !$result['label']['error']}
<div class="results-line">
<span>{l s='Label' mod='colissimo'}</span>
<div class="results-btn">
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$result['label']['id']|intval}">
<i class="icon icon-download"></i>
</a>
{if $result['label']['view']}
<a title="{l s='Print PDF' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$result['label']['id']|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$result['label']['base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-print"></i>
</a>
{else}
<a title="{l s='Print' mod='colissimo'}"
onclick="printThermal('{$result['label']['base64']|escape:'html':'UTF-8'}');">
<i class="icon icon-print"></i>
</a>
{/if}
</div>
</div>
{if $result['label']['cn23']}
<div class="results-line">
<span>{l s='CN23' mod='colissimo'}</span>
<div class="results-btn">
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$result['label']['id']|intval}">
<i class="icon icon-download"></i>
</a>
<a title="{l s='Print PDF' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$result['label']['id']|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$result['label']['cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-print"></i>
</a>
</div>
</div>
{/if}
{if $result['return_label']}
{if !$result['return_label']['error']}
<div class="results-line">
<span>{l s='Return Label' mod='colissimo'}</span>
<div class="results-btn">
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadLabel&id_label={$result['return_label']['id']|intval}">
<i class="icon icon-download"></i>
</a>
<a title="{l s='Print PDF' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewLabel&id_label={/literal}{$result['return_label']['id']|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$result['return_label']['base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-print"></i>
</a>
</div>
</div>
{if $result['return_label']['cn23']}
<div class="results-line">
<span>{l s='Return CN23' mod='colissimo'}</span>
<div class="results-btn">
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLabel')|escape:'htmlall':'UTF-8'}&action=downloadCN23&id_label={$result['return_label']['id']|intval}">
<i class="icon icon-download"></i>
</a>
<a title="{l s='Print PDF' mod='colissimo'}"
onclick="printJS({literal}{
printable: baseAdminDir + 'index.php?controller=AdminColissimoLabel&action=viewCN23&id_label={/literal}{$result['return_label']['id']|intval}{literal}&token=' + tokenLabel,
showModal: true,
fallbackPrintable: `data:application/pdf;base64,{/literal}{$result['return_label']['cn23_base64']|escape:'html':'UTF-8'}{literal}`,
modalMessage: {/literal}'{l s='Preparing printing' mod='colissimo'}'{literal},
}{/literal});">
<i class="icon icon-print"></i>
</a>
</div>
</div>
{/if}
{else}
<div class="results-line">
<a href="#"
class="colissimo-error-modal"
data-id="return-label-error-modal-{$result['id_colissimo_order']|intval}">
<i class="icon icon-times-circle">&nbsp;</i>{l s='Error with return label' mod='colissimo'}
<br/>{l s='(see details)' mod='colissimo'}
</a>
<div id="return-label-error-modal-{$result['id_colissimo_order']|intval}" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger clearfix">
{$result['return_label']['message']|escape:'htmlall':'UTF-8'}
<button type="button" class="btn btn-danger pull-right" data-dismiss="modal">
<i class="icon-remove"></i>&nbsp;
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
{/if}
{else}
<div>
<a href="#" class="colissimo-error-modal" data-id="label-error-modal-{$result['id_colissimo_order']|intval}">
<i class="icon icon-times-circle">&nbsp;</i>{l s='Error with label' mod='colissimo'}
<br/>{l s='(see details)' mod='colissimo'}
</a>
<div id="label-error-modal-{$result['id_colissimo_order']|intval}" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger clearfix">
{$result['label']['message']|escape:'htmlall':'UTF-8'}
<button type="button" class="btn btn-danger pull-right" data-dismiss="modal">
<i class="icon-remove"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,30 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$order.service|escape:'htmlall':'UTF-8'}<br/>
<a class="colissimo-service-selection btn" href="#" data-id-order="{$order.id_order|intval}">
<i class="icon icon-refresh"></i>
{l s='Choose another service' mod='colissimo'}
</a>

View File

@@ -0,0 +1,30 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<tr class="sub-tr colissimo-order-detail-{$id_colissimo_order|intval}">
<td colspan="{$nb_col|intval}" class="sub-td">
{include file="./order-resume-content.tpl"}
</td>
</tr>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,193 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $orders}
<a href="{$link->getAdminLink('AdminColissimoAffranchissement')|escape:'htmlall':'UTF-8'}" class="btn btn-primary">
<i class="icon icon-chevron-left"></i> {l s='Back to selection' mod='colissimo'}
</a>
{/if}
<div id="colissimo-process" style="display: none">
<img src="{$data.img_path|escape:'html':'UTF-8'}loading.svg"/>
</div>
<div id="colissimo-process-result"></div>
{if $orders}
<form method="post" class="form-horizontal" id="colissimo-affranchissement-configuration">
<div class="colissimo-configuration panel collapse in">
<div>
<table class="table colissimo-configuration-table">
<thead>
<tr>
<th></th>
<th><span class="title_box text-center">{l s='Reference' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='ID' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='Delivery address' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='Service' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='Include' mod='colissimo'}
<br/>{l s='return label' mod='colissimo'}</span>
</th>
<th><span class="title_box text-center">{l s='Insurance' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='TA' mod='colissimo'}</span></th>
<th>
<span class="title_box text-center">{l s='D150' mod='colissimo'}</span>
<span class="text-muted text-center">{l s='(non machinable)' mod='colissimo'}</span>
</th>
<th><span class="title_box text-center">{l s='Weight' mod='colissimo'}</span></th>
<th><span class="title_box text-center">{l s='Result' mod='colissimo'}</span></th>
</tr>
</thead>
<tbody>
{foreach $orders as $key => $order}
<tr class="row-id-order-{$order.id_order|intval}">
<td>
<input class="colissimo-order-selection"
type="checkbox"
checked="checked"
name="colissimo_order_{$key|intval}">
</td>
<td class="text-left pointer col-reference-plus">
<i class="icon icon-plus-circle"></i> {$order.reference|escape:'htmlall':'UTF-8'}
</td>
<td class="text-center">
{$order.id_order|intval}
</td>
<td class="text-left colissimo-delivery-addr">
{include file="../_partials/td-affranchissement-delivery-address.tpl"}
</td>
<td class="text-center colissimo-service">
{include file="../_partials/td-affranchissement-service.tpl"}
</td>
<td class="text-center colissimo-return-label">
<input {if $order.return_label < 0}disabled="disabled"{/if}
type="checkbox" {if $order.return_label == 1}checked="checked"{/if}
name="colissimo_return_label_{$key|intval}"/>
</td>
<td class="text-center colissimo-insurance">
{include file="../_partials/td-affranchissement-insurance.tpl"}
</td>
<td class="text-center colissimo-ta">
<input {if !$order.ftd}disabled="disabled"{/if} type="checkbox" name="colissimo_ta_{$key|intval}"/>
</td>
<td class="text-center colissimo-d150">
<input {if $order.relais}disabled="disabled"{/if} type="checkbox" name="colissimo_d150_{$key|intval}"/>
</td>
<td class="text-center colissimo-weight">
<div class="input-group input fixed-width-sm">
<input type="text"
onchange="this.value = this.value.replace(/,/g, '.')"
name="colissimo_weight_{$key|intval}"
value="{$order.total_weight|floatval}"
class="input fixed-width-sm">
<span class="input-group-addon">{$order.weight_unit|escape:'htmlall':'UTF-8'}</span>
</div>
</td>
<td class="text-center colissimo-order-result colissimo-order-result-{$key|intval}">
--
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<button id="submit-process-colissimo-configuration"
name="submitProcessColissimoConfiguration"
class="btn btn-primary pull-right">
<i class="process-icon- icon-refresh"></i> {l s='Process these shipments' mod='colissimo'}
</button>
<div class="clearfix"></div>
</div>
</form>
<a href="{$link->getAdminLink('AdminColissimoAffranchissement')|escape:'htmlall':'UTF-8'}" class="btn btn-primary">
<i class="icon icon-chevron-left"></i> {l s='Back to selection' mod='colissimo'}
</a>
{else}
<div class="alert alert-info">
{l s='There is no shipments to process for now.' mod='colissimo'}
</div>
{/if}
{if isset($show_modal)}
<div id="colissimo-modal-auto" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
{l s='Colissimo auto postage process' mod='colissimo'}
</h4>
</div>
<div class="modal-body">
<div class="alert alert-info">
<p>
{l s='Postage mode is configured to "Auto". You can change postage default settings like insurance, include returns... in the' mod='colissimo'}
<a target="_blank"
href="{$link->getAdminLink('AdminModules')|escape:'htmlall':'UTF-8'}&configure=colissimo">
{l s='configuration of the module' mod='colissimo'}
</a>
{l s='(Back-office tab).' mod='colissimo'}
</p>
</div>
<p class="modal-confirm">
<i class="icon icon-print"></i>
{l s='Do you want to generate %d label(s)?' sprintf=$orders|count mod='colissimo'}
</p>
<div class="modal-actions">
<button class="btn btn-danger" data-dismiss="modal">
<i class="process-icon- icon-times"></i>
{l s='No, review shipment options' mod='colissimo'}
</button>
<button class="btn btn-primary" id="colissimo-modal-start-process">
<i class="process-icon- icon-check"></i>
{l s='Yes, start process' mod='colissimo'}
</button>
</div>
</div>
</div>
</div>
</div>
{/if}
{literal}
<script type="text/javascript">
var loaderPath = {/literal}'{$data.img_path|escape:'html':'UTF-8'}loading.svg'{literal};
var queueingText = "{/literal}{l s='Queueing...' mod='colissimo'}{literal}";
var noOrdersText = "{/literal}{l s='Please select at least one order.' mod='colissimo'}{literal}";
var state_token = '{/literal}{getAdminToken tab='AdminStates'}{literal}';
var showModal = {/literal}{if isset($show_modal)}1{else}0{/if}{literal};
var genericErrorMessage = "{/literal}{l s='An error occured. Please try again.' mod='colissimo'}{literal}";
var tokenAffranchissement = '{/literal}{getAdminToken tab='AdminColissimoAffranchissement'}{literal}';
var tokenLabel = '{/literal}{getAdminToken tab='AdminColissimoLabel'}{literal}';
$(document).off('click').on('click', '.colissimo-service-selection', function (e) {
e.preventDefault();
var idOrder = $(this).attr('data-id-order');
$(this).find('i').toggleClass('icon-spin icon-spinner');
$(this).find('i').removeClass('icon-refresh');
$(this).toggleClass('disabled');
loadColissimoServiceModalUpdate(idOrder);
});
</script>
{/literal}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-info">
{l s='Please upload your shipping numbers here via a .csv file' mod='colissimo'}<br/><br/>
<span>{l s='You can see below examples of .csv files' mod='colissimo'}</span><br/><br/>
<i class="icon icon-download-alt"></i>
<a href="{$csv_path|escape:'htmlall':'UTF-8'}"
target="_blank">
{l s='Download .csv file example' mod='colissimo'}
</a><br/><br/>
<img src="{$img_path|escape:'htmlall':'UTF-8'}shipping-numbers.png">
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,32 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="row">
<div class="col-sm-9">
{$helper_upload}
</div>
</div>
<button type="submit" name="submitColishipImport" class="btn btn-primary">
<i class="process-icon- process-icon-upload"></i> {l s='Import shipping numbers' mod='colissimo'}
</button>

View File

@@ -0,0 +1,75 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<form method="post" class="form-horizontal" id="colissimo-coliship-form" enctype="multipart/form-data" novalidate>
<div class="colissimo-coliship panel collapse in">
{if isset($import_csv) && $import_csv}
{include file="./_partials/import-shipping-numbers-help.tpl"}
{include file="./_partials/shipping-numbers-upload.tpl"}
{else}
<div class="coliship-step">
<p class="coliship-step-title">{l s='1- Launch your Coliship plugin' mod='colissimo'}</p>
<p class="coliship-step-subtitle">{l s='If you don\'t have the plugin installed, you can download it in the Coliship interface' mod='colissimo'}</p>
</div>
<div class="coliship-step">
<p class="coliship-step-title">{l s='2- Download orders that are ready to be shipped via Coliship' mod='colissimo'}</p>
<p class="coliship-step-subtitle">
{l s='Orders that currently have one of the statuses configured in the' mod='colissimo'}
<a target="_blank" href="{$link->getAdminLink('AdminModules')|escape:'htmlall':'UTF-8'}&configure=colissimo">{l s='"Back-office settings"' mod='colissimo'}</a>
{l s='section of the module will be included.' mod='colissimo'}
</p>
<a href="{$link->getAdminLink('AdminColissimoColiship')|escape:'htmlall':'UTF-8'}&action=exportCsv"
class="btn btn-primary">
<i class="process-icon- process-icon-download-alt"></i> {l s='Download .csv file' mod='colissimo'}
</a>
<p class="coliship-tips">
<i class="icon icon-lightbulb"></i>
{l s='Tips: if you use the scan import method, right click on the button and choose "Save link as" to download the file directly in the right directory' mod='colissimo'}
</p>
</div>
<div class="coliship-step">
<p class="coliship-step-title">{l s='3- Navigate to Coliship web interface to import and print labels ("Automated" menu)' mod='colissimo'}</p>
<a href="{$coliship_url|escape:'htmlall':'UTF-8'}" target="_blank" class="btn btn-primary btn-coliship">
{l s='Go to Coliship' mod='colissimo'} <i class="icon icon-chevron-right"></i>
</a>
<div class="alert alert-info">
{l s='Before you start importing orders in Coliship, make sure you configured the format of import and export as stated in the documentation.' mod='colissimo'}
<br/>
{l s='You should upload it in the Coliship interface, "Settings" menu, then "Import" tab.' mod='colissimo'}<br/><br/>
<i class="icon icon-download-alt"></i>
<a href="{$admin_url|escape:'htmlall':'UTF-8'}&action=downloadFmt"
target="_blank">
{l s='Download .fmt file' mod='colissimo'}
</a>
</div>
</div>
<div class="coliship-step">
<p class="coliship-step-title">{l s='4- Import the .csv file generated' mod='colissimo'}</p>
<p class="coliship-step-subtitle">{l s='The .csv file can be found in the location that you configured in Coliship (menu "Settings > Export")' mod='colissimo'}</p>
{include file="./_partials/shipping-numbers-upload.tpl"}
</div>
{/if}
</div>
</form>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,34 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<tr class="sub-tr colissimo-order-detail-{$id_colissimo_order|intval}">
<td colspan="{$nb_col|intval}" class="sub-td">
<div class="border-top">
<div class="panel">
{$order_resume_content_html}
</div>
</div>
</td>
</tr>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,42 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-info colissimo-dashboard-intro">
<p>{l s='On this page, you can find tracking of your orders shipped with Colissimo.' mod='colissimo'} {l s='The flag' mod='colissimo'}
<i class="icon icon-warning"></i> {l s='is shown when an anomaly is detected in one the shipments.' mod='colissimo'}
</p>
<p>{l s='Please note that delivered orders are shown for a period of 15 days.' mod='colissimo'}</p>
<p class="colissimo-tracking-update">
<b>{l s='Tracking update:' mod='colissimo'}</b><br />
{l s='Orders statuses are updated automatically when you open the dashboard.' mod='colissimo'}
{l s='Please note that a delay of 2 hours is needed before automatically updating the statuses again.' mod='colissimo'}
</p>
<p>{l s='Statuses can also be updated manually using the button below :' mod='colissimo'}</p>
<form method="post" id="colissimoUpdateAllTracking">
<button type="submit" name="submitUpdateAllTracking" class="btn btn-primary">
<i class="icon icon-refresh"></i> {l s='Update all trackings' mod='colissimo'}
</button>
</form>
</div>

View File

@@ -0,0 +1,29 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<input type="hidden" name="id_colissimo_order" value="{$tr.id_colissimo_order|intval}"/>
{if $flag}
<i class="icon icon-warning"></i>
{/if}

View File

@@ -0,0 +1,58 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-process-update-tracking">
<p>{l s='Please wait while updating %d order(s) tracking' sprintf=$orders_count|intval mod='colissimo'}</p>
<img src="{$img_path|escape:'htmlall':'UTF-8'}loading_tracking.svg"/>
</div>
{literal}
<script type="text/javascript">
$(document).ready(function () {
var colissimoDashboardUrl = baseAdminDir + currentIndex + '&token=' + token;
$.ajax({
type: 'POST',
dataType: 'json',
url: baseAdminDir + 'index.php',
data: {
controller: 'AdminColissimoDashboard',
ajax: 1,
token: token,
action: 'updateAllOrderTracking',
force_update: '{/literal}{$force_update|intval}{literal}'
}
}).fail(function (jqXHR, textStatus) {
window.location.replace(colissimoDashboardUrl);
}).done(function (data) {
var successLabels = data.success_labels;
var totalLabels = data.total_labels;
window.location.replace(colissimoDashboardUrl + '&total_labels=' + totalLabels + '&success_labels=' + successLabels);
}).always(function () {
});
});
</script>
{/literal}

View File

@@ -0,0 +1,31 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}&action=download&id_deposit_slip={$id|intval}"
title="{l s='Print' mod='colissimo'}"
class="btn btn-default">
<i class="icon-print"></i>
{l s='Print' mod='colissimo'}
</a>

View File

@@ -0,0 +1,36 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
<p class="text-left"><b>{$nb_deposit_slip|intval} {l s='postage slip(s) generated:' mod='colissimo'}</b></p>
{foreach $data as $id => $info}
<a href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}&action=download&id_deposit_slip={$id|intval}"
class="btn btn-primary">
<i class="icon icon-arrow-circle-o-down"></i> {l s='Download deposit slip' mod='colissimo'} #{$info.number|intval}
</a>
<br/>
<br/>
{/foreach}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,39 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-deposit-slip-menu row">
<div class="col-md-6 col-sm-12">
<a href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}" {if $page_selected == 'form'}class="selected"{/if}>
<i class="icon icon-file-text-alt"></i>
Deposit slip creation
</a>
</div>
<div class="col-md-6 col-sm-12">
<a href="{$link->getAdminLink('AdminColissimoDepositSlip')|escape:'htmlall':'UTF-8'}&render=history" {if $page_selected == 'history'}class="selected"{/if}>
<i class="icon icon-history"></i>
History
</a>
</div>
</div>

View File

@@ -0,0 +1,225 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
{include file='./_partials/sub-menu.tpl'}
<div class="alert alert-info">
<p>{l s='On this page, you can edit postage slip for orders that have not been shipped yet.' mod='colissimo'}</p>
<p>{l s='Select orders for which you want to edit a postage slip:' mod='colissimo'}</p>
<ul>
<li>{l s='By ticking orders in the list' mod='colissimo'}</li>
<li>{l s='By filling manually parcel numbers in the input below' mod='colissimo'}</li>
<li>{l s='By scanning barcode of labels in the input below' mod='colissimo'}</li>
</ul>
</div>
<form method="post" class="form-horizontal">
<div class="row">
<div class="panel">
<div class="row space">
<div class="col-md-4">
<div class="colissimo-barcode">
<span>{l s='Fill the parcel numbers or scan the labels barcode using a scanner' mod='colissimo'}</span><br/>
<img src="{$data.img_path|escape:'htmlall':'UTF-8'}icons/icon-barcode.png"/>
<div class="fixed-width-xl">
<input type="text" name="colissimo_parcel_number_barcode"
id="colissimo-parcel-number-barcode"
maxlength="13"
class="input fixed-width-xl"/>
</div>
</div>
</div>
<div class="col-md-8">
<div class="pull-right js-colissimo-deposit-slip-actions colissimo-deposit-slip-actions">
<span>{l s='Number of parcel(s) selected:' mod='colissimo'} </span>
<span class="js-colissimo-count-selected">0</span>
<button type="submit" class="btn btn-primary btn-print" id="submit-process-colissimo-deposit-slip">
<i class="process-icon- icon-print"></i>
{l s='Print a delivery slip' mod='colissimo'}
</button>
<div id="deposit-slip-result" style="display: none;"></div>
</div>
</div>
</div>
<p class="colissimo-shipments-waiting">{l s='Parcels of the day' mod='colissimo'}</p>
<table id="parcelsOfToday">
<thead>
<tr>
<th></th>
<th>{l s='Order reference' mod='colissimo'}</th>
<th>{l s='Order ID' mod='colissimo'}</th>
<th>{l s='Tracking number' mod='colissimo'}</th>
<th>{l s='Customer' mod='colissimo'}</th>
<th>{l s='Order status' mod='colissimo'}</th>
<th>Status background</th>
<th>Status color</th>
<th>{l s='Date of order' mod='colissimo'}</th>
<th>{l s='Date of label creation' mod='colissimo'}</th>
</tr>
</thead>
</table>
<p class="colissimo-shipments-waiting">{l s='Older parcels' mod='colissimo'}</p>
<table id="olderParcels">
<thead>
<tr>
<th></th>
<th>{l s='Order reference' mod='colissimo'}</th>
<th>{l s='Order ID' mod='colissimo'}</th>
<th>{l s='Tracking number' mod='colissimo'}</th>
<th>{l s='Customer' mod='colissimo'}</th>
<th>{l s='Order status' mod='colissimo'}</th>
<th>Status background</th>
<th>Status color</th>
<th>{l s='Date of order' mod='colissimo'}</th>
<th>{l s='Date of label creation' mod='colissimo'}</th>
</tr>
</thead>
</table>
</div>
</div>
</form>
</div>
{literal}
<script type="text/javascript">
var noLabelSelectedText = "{/literal}{l s='Please select at least one label.' mod='colissimo'}{literal}";
var noWaitingShipmentsText = "{/literal}{l s='No waiting shipments' mod='colissimo'}{literal}";
var genericErrorMessage = "{/literal}{l s='An error occured. Please try again.' mod='colissimo'}{literal}";
var successMessage = "{/literal}{l s='Deposit slip generated successfully.' mod='colissimo'}{literal}";
var tableParcelsOfToday;
var tableOlderParcels;
$(document).ready(function () {
var barcodeInput = $('#colissimo-parcel-number-barcode');
var dataTablesOptions = {
dom:
"<'row'<'col-sm-12 dt-control-buttons'lB>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
language: {
url: datatables_lang_file,
},
columns: [
{
sortable: false,
className: 'select-checkbox',
render: function (data, type, row) {
return '';
}
},
{
data: 'reference',
render: function (data, type, row, meta) {
return '<a target="_blank" href="' + orders_url + '&vieworder&id_order=' + row.id_order + '">' + data + ' <i class="icon icon-external-link"></a>';
}
},
{
data: 'id_order'
},
{
data: 'shipping_number',
className: 'strong'
},
{
data: 'customer',
className: 'text-upper'
},
{
data: 'state_name',
render: function (data, type, row, meta) {
return '<span class="label color_field" style="background-color: ' + row.state_bg + '; color: ' + row.state_color + '">' + data + '</span>';
}
},
{
data: 'state_bg',
visible: false
},
{
data: 'state_color',
visible: false
},
{
data: 'order_date_add'
},
{
data: 'label_date_add'
}
],
buttons: [
'selectAll',
'selectNone',
],
select: {
style: 'multi',
selector: 'td:first-child'
},
drawCallback: function (settings) {
$('.dt-buttons button').addClass('btn btn-primary');
},
order: [[9, 'desc']]
};
tableParcelsOfToday = $('#parcelsOfToday').DataTable(Object.assign({}, dataTablesOptions, {
ajax: {
url: datatables_url,
data: {
ajax: 1,
action: 'listParcelsOfToday'
}
},
rowCallback: function (row, data) {
tableParcelsOfToday.row(row).select();
}
}));
tableOlderParcels = $('#olderParcels').DataTable(Object.assign({}, dataTablesOptions, {
ajax: {
url: datatables_url,
data: {
ajax: 1,
action: 'listOlderParcels'
}
}
}));
barcodeInput.focus();
barcodeInput.typeWatch({
captureLength: 12,
highlight: true,
wait: 50,
callback: function () {
findLabel(tableParcelsOfToday, tableOlderParcels);
}
});
$.each([tableParcelsOfToday, tableOlderParcels], function () {
this.on('select deselect', function (e, dt, type, indexes) {
var count1 = tableParcelsOfToday.rows({selected: true}).count();
var count2 = tableOlderParcels.rows({selected: true}).count();
$('.js-colissimo-count-selected').text(count1 + count2);
});
});
});
</script>
{/literal}

View File

@@ -0,0 +1,28 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
{include file='./_partials/sub-menu.tpl'}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,74 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{include "../_partials/header.back.tpl"}
<div id="bo-colissimo">
<div class="form-wrapper">
{if !$show_migration}
<ul class="nav nav-tabs">
<li {if $active == 'intro'}class="active"{/if}>
<a href="#intro" data-toggle="tab">{l s='Introduction' mod='colissimo'}</a>
</li>
<li {if $active == 'account'}class="active"{/if}>
<a href="#account" data-toggle="tab"><i
class="icon icon-user"></i> {l s='My Colissimo account' mod='colissimo'}
</a>
</li>
<li {if $active == 'fo'}class="active"{/if}>
<a href="#fo" data-toggle="tab"><i class="icon icon-truck"></i> {l s='Front-Office settings' mod='colissimo'}
</a>
</li>
<li {if $active == 'bo'}class="active"{/if}>
<a href="#bo" data-toggle="tab"><i class="icon icon-cogs"></i> {l s='Back-Office settings' mod='colissimo'}
</a>
</li>
<li {if $active == 'files'}class="active"{/if}>
<a href="#files" data-toggle="tab"><i class="icon icon-file-pdf-o"></i> {l s='Files management' mod='colissimo'}
</a>
</li>
</ul>
<div class="tab-content panel">
<div id="intro" class="tab-pane {if $active == 'intro'}active{/if}">
{include file="./tab-intro.tpl"}
</div>
<div id="account" class="tab-pane {if $active == 'account'}active{/if}">
{include file="./tab-account.tpl"}
</div>
<div id="fo" class="tab-pane {if $active == 'fo'}active{/if}">
{include file="./tab-front.tpl"}
</div>
<div id="bo" class="tab-pane {if $active == 'bo'}active{/if}">
{include file="./tab-back.tpl"}
</div>
<div id="files" class="tab-pane {if $active == 'files'}active{/if}">
{include file="./tab-files.tpl"}
</div>
</div>
{else}
{include file="../migration/migration.tpl"}
{/if}
</div>
</div>

View File

@@ -0,0 +1,761 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<form class="form-horizontal"
action="#"
name="colissimo_account_config_form"
id="colissimo-account-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Configuration' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Your account number is indicated on your contract' mod='colissimo'}">
{l s='Enable logs' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg ">
<input type="radio"
value="1"
name="COLISSIMO_LOGS"
id="COLISSIMO_LOGS_on"
{if $form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_LOGS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_LOGS"
id="COLISSIMO_LOGS_off"
{if !$form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_LOGS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<p class="alert-text">
{l s='Logs files are stored in the logs directory of the module. Files are rotated every month.' mod='colissimo'}
<br/>
{l s='You can download the current file by clicking' mod='colissimo'}
<a target="_blank"
href="{$link->getAdminLink('AdminColissimoLogs')|escape:'htmlall':'UTF-8'}&action=downloadLogFile">{l s='here' mod='colissimo'}</a>.<br/>
</p>
</div>
</div>
</div>
<div class="col-lg-offset-3 colissimo-box">
<div class="panel">
<div class="row">
<p class="colissimo-box-title col-lg-offset-3">{l s='Colissimo Box credentials' mod='colissimo'}</p>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Your account number is indicated on your contract' mod='colissimo'}">
{l s='Contract number' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text"
name="COLISSIMO_ACCOUNT_LOGIN"
class="input fixed-width-xxl"
value="{$form_data['COLISSIMO_ACCOUNT_LOGIN']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='The password was sent by email to the contract address' mod='colissimo'}">
{l s='Password' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input type="password"
name="COLISSIMO_ACCOUNT_PASSWORD"
class="input fixed-width-xxl"
value="{$form_data['COLISSIMO_ACCOUNT_PASSWORD']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Check your product list on your contract' mod='colissimo'}">
{l s='Account type' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['FRANCE'])}checked="true"{/if}
value="FRANCE">
{l s='France (home, PUDO, return)' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['OM'])}checked="true"{/if}
value="OM">
{l s='Overseas (home)' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['EUROPE'])}checked="true"{/if}
value="EUROPE">
{l s='Europe' mod='colissimo'}
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
name="COLISSIMO_ACCOUNT_TYPE[][]"
{if isset($form_data['COLISSIMO_ACCOUNT_TYPE']['WORLDWIDE'])}checked="true"{/if}
value="WORLDWIDE">
{l s='Worldwide' mod='colissimo'}
</label>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoAccountConfigForm">
<i class="process-icon-save"></i>
{l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
<div class="panel">
<div class="panel-heading">
<i class="icon-envelope"></i>
{l s='Colissimo Address' mod='colissimo'}
</div>
<div class="clearfix">
<div class="alert alert-info">
{l s='Please enter your physical address for your returns in case of non-delivery (no CEDEX admitted)' mod='colissimo'}
</div>
<div class="row colissimo-return-address">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Use a different address for the reception of return shipement' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg colissimo-set-return-address">
<input type="radio"
value="1"
name="COLISSIMO_USE_RETURN_ADDRESS"
id="COLISSIMO_USE_RETURN_ADDRESS_on"
{if $form_data['COLISSIMO_USE_RETURN_ADDRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_RETURN_ADDRESS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_RETURN_ADDRESS"
id="COLISSIMO_USE_RETURN_ADDRESS_off"
{if !$form_data['COLISSIMO_USE_RETURN_ADDRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_RETURN_ADDRESS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<form class="form-horizontal adr-form"
action="#"
name="colissimo_sender_config_form"
id="colissimo-sender-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
{l s='Shipping Address' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Company' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-company_counter">35</span>
<input type="text"
autocomplete="organization"
id="sender-company"
name="sender_company"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_company']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Lastname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-lastname_counter">35</span>
<input type="text"
autocomplete="family-name"
id="sender-lastname"
name="sender_lastname"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_lastname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Firstname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="sender-firstname_counter">35</span>
<input type="text"
autocomplete="given-name"
id="sender-firstname"
name="sender_firstname"
class="input fixed-width-lg"
required="required"
value="{$form_data['sender_firstname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address 1' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address1_counter">35</span>
<input type="text"
autocomplete="address-line1"
id="sender-address1"
name="sender_address1"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_address1']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 2' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address2_counter">35</span>
<input type="text"
autocomplete="address-line2"
id="sender-address2"
name="sender_address2"
class="input fixed-width-xxl"
value="{$form_data['sender_address2']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 3' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address3_counter">35</span>
<input type="text"
autocomplete="address-line3"
id="sender-address3"
name="sender_address3"
class="input fixed-width-xxl"
value="{$form_data['sender_address3']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 4' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-address4_counter">35</span>
<input type="text"
autocomplete="address-line4"
id="sender-address4"
name="sender_address4"
class="input fixed-width-xxl"
value="{$form_data['sender_address4']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='City' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-city_counter">30</span>
<input type="text"
autocomplete="address-level2"
id="sender-city"
name="sender_city"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_city']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Zipcode' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-sm">
<input type="text"
autocomplete="postal-code"
name="sender_zipcode"
class="input fixed-width-sm"
value="{$form_data['sender_zipcode']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group"><label class="control-label col-lg-3 required">
<span>{l s='Country' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="sender_country" class="chosen fixed-width-lg" style="display: none;">
{foreach from=$address_countries key=iso item=name}
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['sender_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['sender_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<div class="chosen-container chosen-container-single chosen-container-single-nosearch"
style="width: 250px;"
title="">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="validate-phone">
<div class="form-group">
<label class="control-label col-lg-3 required"> {l s='Phone' mod='colissimo'}</label>
<div class="col-lg-9">
<input type="text"
id="sender-phone"
name="sender_phone[main]"
class="input fixed-width-xl"
value="{$form_data['sender_phone']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_valid.png"
class="colissimo-mobile-valid js-colissimo-mobile-valid"/>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_invalid.png"
class="colissimo-mobile-invalid js-colissimo-mobile-invalid"/>
</div>
<input type="hidden" class="js-colissimo-is-mobile-valid" name="colissimo_is_mobile_valid" value=""/>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Email' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="sender-email_counter">80</span>
<input type="text"
autocomplete="email"
id="sender-email"
name="sender_email"
class="input fixed-width-xxl"
required="required"
value="{$form_data['sender_email']|escape:'htmlall':'UTF-8'}"
data-maxchar="80"
maxlength="80">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoSenderAddressConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
<div class="col-md-6 col-sm-12" id="colissimo-return-address">
<form class="form-horizontal adr-form"
action="#"
name="colissimo_return_config_form"
id="colissimo-return-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
{l s='Return Address' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Company' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-company_counter">35</span>
<input type="text"
autocomplete="organization"
id="return-company"
name="return_company"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_company']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Lastname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-lastname_counter">35</span>
<input type="text"
autocomplete="family-name"
id="return-lastname"
name="return_lastname"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_lastname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Firstname' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-lg">
<span class="input-group-addon" id="return-firstname_counter">35</span>
<input type="text"
autocomplete="given-name"
id="return-firstname"
name="return_firstname"
class="input fixed-width-lg"
required="required"
value="{$form_data['return_firstname']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address 1' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address1_counter">35</span>
<input type="text"
autocomplete="address-line1"
id="return-address1"
name="return_address1"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address1']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 2' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address2_counter">35</span>
<input type="text"
autocomplete="address-line2"
id="return-address2"
name="return_address2"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address2']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 3' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address3_counter">35</span>
<input type="text"
autocomplete="address-line3"
id="return-address3"
name="return_address3"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address3']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>{l s='Address 4' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-address4_counter">35</span>
<input type="text"
autocomplete="address-line4"
id="return-address4"
name="return_address4"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_address4']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='City' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-city_counter">30</span>
<input type="text"
autocomplete="address-level2"
id="return-city"
name="return_city"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_city']|escape:'htmlall':'UTF-8'}"
data-maxchar="35"
maxlength="35">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Zipcode' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-sm">
<input type="text"
autocomplete="postal-code"
name="return_zipcode"
class="input fixed-width-sm"
value="{$form_data['return_zipcode']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group"><label class="control-label col-lg-3 required">
<span>{l s='Country' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="return_country" class="chosen fixed-width-lg" style="display: none;">
{foreach from=$address_countries key=iso item=name}
<option value="{$iso|escape:'html':'UTF-8'}"
{if $form_data['return_country'] == $iso }selected{/if}>
{$name|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<div class="chosen-container chosen-container-single chosen-container-single-nosearch"
style="width: 100%;"
title="">
<a class="chosen-single" tabindex="-1">
<span>France</span>
<div><b></b></div>
</a>
<div class="chosen-drop">
<div class="chosen-search">
<input type="text" autocomplete="off" readonly="">
</div>
<ul class="chosen-results"></ul>
</div>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="validate-phone">
<div class="form-group">
<label class="control-label col-lg-3 required"> {l s='Phone' mod='colissimo'}</label>
<div class="col-lg-9">
<input type="text"
id="return-phone"
name="return_phone[main]"
class="input fixed-width-xl"
value="{$form_data['return_phone']|escape:'htmlall':'UTF-8'}"
required="required">
</div>
</div>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_valid.png"
class="colissimo-mobile-valid js-colissimo-mobile-valid"/>
<img src="{$colissimo_img_path|escape:'html':'UTF-8'}icons/icon_invalid.png"
class="colissimo-mobile-invalid js-colissimo-mobile-invalid"/>
</div>
<input type="hidden" class="js-colissimo-is-mobile-valid" name="colissimo_is_mobile_valid" value=""/>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Email' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xxl">
<span class="input-group-addon" id="return-email_counter">80</span>
<input type="text"
autocomplete="email"
id="return-email"
name="return_email"
class="input fixed-width-xxl"
required="required"
value="{$form_data['return_email']|escape:'htmlall':'UTF-8'}"
data-maxchar="80"
maxlength="80">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoreturnAddressConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
var genericErrorMessage = "{/literal}{l s='Webservice connexion could not be checked' mod='colissimo'}{literal}";
var colissimoCredentialsToken = '{/literal}{getAdminToken tab='AdminColissimoTestCredentials'}{literal}';
var addressErrorMessage = "{/literal}{l s='An error occured. Please try again.' mod='colissimo'}{literal}";
var token = '{/literal}{getAdminToken tab='AdminModules'}{literal}';
var colissimoSenderPhone = '{/literal}{$form_data['sender_country']|escape:'htmlall':'UTF-8'}{literal}';
var colissimoReturnPhone = '{/literal}{$form_data['return_country']|escape:'htmlall':'UTF-8'}{literal}';
var onlyCountries = {/literal}{$address_countries|array_keys|json_encode}{literal};
$(document).ready(function () {
$(document).on('click', '#colissimo-check-credentials', function () {
var colissimoCheckCredentials = $('#colissimo-check-credentials');
testWSCredentials(colissimoCheckCredentials);
});
});
</script>
{/literal}

View File

@@ -0,0 +1,607 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<form class="form-horizontal"
action="#"
name="colissimo_bo_config_form"
id="colissimo-bo-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='General settings' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Enter your order preparation time' mod='colissimo'}">
{l s='Preparation time' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input value="{$form_data['COLISSIMO_ORDER_PREPARATION_TIME']|intval}"
type="text"
name="COLISSIMO_ORDER_PREPARATION_TIME"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='day(s)' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='Label generation' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="colissimo-generate-label-statuses[]">
<span class="label-tooltip"
data-html="false"
data-toggle="tooltip"
data-original-title="{l s='Tip : press + hold Ctrl then click on statuses to select several options quickly' mod='colissimo'}">
{l s='Statuses that allow to generate labels' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="form-control-static row">
<div class="col-xs-6">
<select id="availableSwap"
class="availableSwap"
name="COLISSIMO_GENERATE_LABEL_STATUSES_available[]"
multiple="multiple">
<optgroup label="{l s='Available statuses' mod='colissimo'}">
{foreach $order_states as $id => $state}
{if !isset($form_data['COLISSIMO_GENERATE_LABEL_STATUSES'][$id])}
<option value="{$id|intval}">
{$state|escape:'htmlall':'UTF-8'}
</option>
{/if}
{/foreach}
</optgroup>
</select>
<a href="#" class="btn btn-default btn-block addSwap" id="addSwap">
{l s='Add' mod='colissimo'} <i class="icon-arrow-right"></i>
</a>
</div>
<div class="col-xs-6">
<select id="selectedSwap" class="selectedSwap"
name="COLISSIMO_GENERATE_LABEL_STATUSES[]"
multiple="multiple">
<optgroup label="{l s='Selected statuses' mod='colissimo'}">
{foreach $order_states as $id => $state}
{if isset($form_data['COLISSIMO_GENERATE_LABEL_STATUSES'][$id])}
<option value="{$id|intval}">
{$state|escape:'htmlall':'UTF-8'}
</option>
{/if}
{/foreach}
</optgroup>
</select>
<a href="#" class="btn btn-default btn-block removeSwap" id="removeSwap">
<i class="icon-arrow-left"></i> {l s='Remove' mod='colissimo'}
</a>
</div>
<p class="help-block">
<i class="icon icon-warning"></i> {l s='If no statuses are selected, all statuses will be considered as selected (wording...)' mod='colissimo'}
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='If you choose Yes, orders will change to Shipping in progress after the generation of the first label' mod='colissimo'}">
{l s='Update order status after label generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-shipping-in-progress">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_SHIPPING_IN_PROGRESS"
id="COLISSIMO_USE_SHIPPING_IN_PROGRESS_on"
{if $form_data['COLISSIMO_USE_SHIPPING_IN_PROGRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_SHIPPING_IN_PROGRESS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_SHIPPING_IN_PROGRESS"
id="COLISSIMO_USE_SHIPPING_IN_PROGRESS_off"
{if !$form_data['COLISSIMO_USE_SHIPPING_IN_PROGRESS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_SHIPPING_IN_PROGRESS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='If you choose Yes, orders will change to Handled by carrier after the generation of the first deposit slip' mod='colissimo'}">
{l s='Update order status after deposit slip generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-handled-by-carrier">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_HANDLED_BY_CARRIER"
id="COLISSIMO_USE_HANDLED_BY_CARRIER_on"
{if $form_data['COLISSIMO_USE_HANDLED_BY_CARRIER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_HANDLED_BY_CARRIER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_HANDLED_BY_CARRIER"
id="COLISSIMO_USE_HANDLED_BY_CARRIER_off"
{if !$form_data['COLISSIMO_USE_HANDLED_BY_CARRIER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_HANDLED_BY_CARRIER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Send an email with the Non-Authenticated tracking page URL to customers after label generation' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-enable-pna-mail">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_PNA_MAIL"
id="COLISSIMO_ENABLE_PNA_MAIL_on"
{if $form_data['COLISSIMO_ENABLE_PNA_MAIL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_PNA_MAIL_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_PNA_MAIL"
id="COLISSIMO_ENABLE_PNA_MAIL_off"
{if !$form_data['COLISSIMO_ENABLE_PNA_MAIL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_PNA_MAIL_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Label printing mode' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-generate-label-prestashop">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_GENERATE_LABEL_PRESTASHOP"
id="COLISSIMO_GENERATE_LABEL_PRESTASHOP_on"
{if $form_data['COLISSIMO_GENERATE_LABEL_PRESTASHOP']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_LABEL_PRESTASHOP_on">{l s='PrestaShop BO' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_GENERATE_LABEL_PRESTASHOP"
id="COLISSIMO_GENERATE_LABEL_PRESTASHOP_off"
{if !$form_data['COLISSIMO_GENERATE_LABEL_PRESTASHOP']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_LABEL_PRESTASHOP_off">{l s='Coliship' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-label-generation-mode-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Postage mode in PrestaShop\'s BO' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-postage-mode-manual">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_POSTAGE_MODE_MANUAL"
id="COLISSIMO_POSTAGE_MODE_MANUAL_on"
{if $form_data['COLISSIMO_POSTAGE_MODE_MANUAL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_POSTAGE_MODE_MANUAL_on">{l s='Manual' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_POSTAGE_MODE_MANUAL"
id="COLISSIMO_POSTAGE_MODE_MANUAL_off"
{if !$form_data['COLISSIMO_POSTAGE_MODE_MANUAL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_POSTAGE_MODE_MANUAL_off">{l s='Auto' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Use a thermal printer' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-thermal-printer">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_THERMAL_PRINTER"
id="COLISSIMO_USE_THERMAL_PRINTER_on"
{if $form_data['COLISSIMO_USE_THERMAL_PRINTER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_THERMAL_PRINTER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_THERMAL_PRINTER"
id="COLISSIMO_USE_THERMAL_PRINTER_off"
{if !$form_data['COLISSIMO_USE_THERMAL_PRINTER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_THERMAL_PRINTER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Label format' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_LABEL_FORMAT" class=" fixed-width-xxl">
{foreach $label_formats as $id => $name}
<option {if $id == $form_data['COLISSIMO_LABEL_FORMAT']}selected="selected"{/if}
value="{$id|escape:'htmlall':'UTF-8'}">
{$name|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-thermal-printer-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Printer port' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-ethernet">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_USE_ETHERNET"
id="COLISSIMO_USE_ETHERNET_on"
{if $form_data['COLISSIMO_USE_ETHERNET']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_ETHERNET_on">{l s='Ethernet' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_USE_ETHERNET"
id="COLISSIMO_USE_ETHERNET_off"
{if !$form_data['COLISSIMO_USE_ETHERNET']|intval}checked="checked"{/if}>
<label for="COLISSIMO_USE_ETHERNET_off">{l s='USB' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-thermal-printer-usb">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Protocole' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_USB_PROTOCOLE" class=" fixed-width-xxl">
{foreach $usb_protocoles as $id => $name}
<option {if $id == $form_data['COLISSIMO_USB_PROTOCOLE']}selected="selected"{/if}
value="{$id|escape:'htmlall':'UTF-8'}">
{$name|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='If you do not know which value to chose, please refer to your printer user guide' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="colissimo-thermal-printer-ethernet">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Printer IP address' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input type="text"
value="{$form_data['COLISSIMO_PRINTER_IP_ADDR']|escape:'htmlall':'UTF-8'}"
name="COLISSIMO_PRINTER_IP_ADDR"
class="input fixed-width-xxl">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='International shipments' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='(e.g. 620411)' mod='colissimo'}">
{l s='Default HS Code of your products' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<input type="text"
name="COLISSIMO_DEFAULT_HS_CODE"
value="{$form_data['COLISSIMO_DEFAULT_HS_CODE']|escape:'htmlall':'UTF-8'}"
class="input fixed-width-xxl">
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='For more information:' mod='colissimo'} https://douane.gouv.nc/le-tarif-douanier/nomenclature-tarifaire
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='EORI Number' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input type="text"
value="{$form_data['COLISSIMO_EORI_NUMBER']|escape:'htmlall':'UTF-8'}"
name="COLISSIMO_EORI_NUMBER"
class="input fixed-width-xxl">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='For more information:' mod='colissimo'}
http://douane.gouv.fr/articles/a10901-numero-eori-economic-operator-registration-and-identification
<span></span>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoBackConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
<form class="form-horizontal"
action="#"
name="colissimo_shipments_config_form"
id="colissimo-shipments-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Default shipping settings' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Ad Valorem Insurance' mod='colissimo'}">
{l s='Insure shipments' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_INSURE_SHIPMENTS"
id="COLISSIMO_INSURE_SHIPMENTS_on"
{if $form_data['COLISSIMO_INSURE_SHIPMENTS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_INSURE_SHIPMENTS_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_INSURE_SHIPMENTS"
id="COLISSIMO_INSURE_SHIPMENTS_off"
{if !$form_data['COLISSIMO_INSURE_SHIPMENTS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_INSURE_SHIPMENTS_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable Colissimo merchandises return' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-enable-return">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_RETURN"
id="COLISSIMO_ENABLE_RETURN_on"
{if $form_data['COLISSIMO_ENABLE_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_RETURN_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_RETURN"
id="COLISSIMO_ENABLE_RETURN_off"
{if !$form_data['COLISSIMO_ENABLE_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_RETURN_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-enable-return-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Only scanned parcels will be charged' mod='colissimo'}">
{l s='Print return labels for each shipment' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-use-handled-by-carrier">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_AUTO_PRINT_RETURN_LABEL"
id="COLISSIMO_AUTO_PRINT_RETURN_LABEL_on"
{if $form_data['COLISSIMO_AUTO_PRINT_RETURN_LABEL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_AUTO_PRINT_RETURN_LABEL_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_AUTO_PRINT_RETURN_LABEL"
id="COLISSIMO_AUTO_PRINT_RETURN_LABEL_off"
{if !$form_data['COLISSIMO_AUTO_PRINT_RETURN_LABEL']|intval}checked="checked"{/if}>
<label for="COLISSIMO_AUTO_PRINT_RETURN_LABEL_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
<i class='icon icon-lightbulb'></i>
{l s='Choose «Yes» if you want to include return label inside packages.' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span>
{l s='Display return labels in customer\'s account' mod='colissimo'}
</span>
</label>
<div class="col-lg-9 colissimo-display-return-label-customer">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_on"
{if $form_data['COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_off"
{if !$form_data['COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_DISPLAY_RETURN_LABEL_CUSTOMER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="colissimo-generate-label-customer-inputs">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Allow customers to generate their return label' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_on"
{if $form_data['COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER"
id="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_off"
{if !$form_data['COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER']|intval}checked="checked"{/if}>
<label for="COLISSIMO_GENERATE_RETURN_LABEL_CUSTOMER_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Customers will be able to generate and print return labels themselves' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable mailbox return' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_MAILBOX_RETURN"
id="COLISSIMO_ENABLE_MAILBOX_RETURN_on"
{if $form_data['COLISSIMO_ENABLE_MAILBOX_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_MAILBOX_RETURN_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_MAILBOX_RETURN"
id="COLISSIMO_ENABLE_MAILBOX_RETURN_off"
{if !$form_data['COLISSIMO_ENABLE_MAILBOX_RETURN']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_MAILBOX_RETURN_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoShipmentsConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,109 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<form class="form-horizontal"
action="#"
name="colissimo_files_config_form"
id="colissimo-files-config-form"
method="post"
enctype="multipart/form-data">
<div class="panel">
<div class="panel-heading">
<i class="icon-cogs"></i>
{l s='Files management' mod='colissimo'}
</div>
<div class="row">
<div class="alert alert-info">
{l s='In this form, you can configure when to display an alert to delete documents.' mod='colissimo'}<br/>
{l s='It allows you to free some space periodically depending on the quantity of documents you create.' mod='colissimo'}
<br/>
{l s='Default settings correspond approximately to a volume of 50 orders per day so the alert shows up every two weeks.' mod='colissimo'}
<br/>
{l s='The alert will be shown on the Colissimo Postage page.' mod='colissimo'}
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Files include labels, customs documents and deposit slips' mod='colissimo'}">
{l s='Number of files triggering the alert' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input type="text"
value="{$form_data['COLISSIMO_FILES_LIMIT']|intval}"
name="COLISSIMO_FILES_LIMIT"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='files' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Number of days during which you want to keep documents' mod='colissimo'}">
{l s='Documents lifetime' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group input fixed-width-xs">
<input type="text"
value="{$form_data['COLISSIMO_FILES_LIFETIME']|intval}"
name="COLISSIMO_FILES_LIFETIME"
class="input fixed-width-xs">
<span class="input-group-addon">{l s='day(s)' mod='colissimo'}</span>
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Documents dating more than this number of days will be deleted.' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="row colissimo-docs-disk-usage">
<label class="control-label col-lg-3 bold">
<span>{l s='Disk usage of documents directory' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<span>
{$form_data['documents_dir_size']|escape:'htmlall':'UTF-8'}
{l s='(%d files)' sprintf=$form_data['documents_dir_count']|intval mod='colissimo'}
</span>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoFilesConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>

View File

@@ -0,0 +1,229 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<form class="form-horizontal"
action="#"
name="colissimo_widget_config_form"
id="colissimo-widget-config-form"
method="post"
enctype="multipart/form-data">
<div class="alert alert-info">
{l s='While installing the module, 4 carriers have been created.' mod='colissimo'}<br/>
<a href="{$link->getAdminLink('AdminCarriers')|escape:'htmlall':'UTF-8'}"
target="_blank">{l s='Click here to configure their zones, ranges and prices.' mod='colissimo'}</a><br/><br/>
<b><i class="icon icon-warning"></i> {l s='In order for the module to work properly, please do not delete these carriers' mod='colissimo'}
</b>
</div>
<div class="panel">
<div class="panel-heading">
{l s='Brexit' mod='colissimo'}
</div>
<div class="row">
<div class="brexit-intro">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}icons/icon_uk.png"/>
<p>{l s='As you probably know, the coming withdrawal of the United Kingdom from the European Union will impact deliveries to the UK. The timeline of the Brexit is still uncertain but you can enable Brexit mode below when the withdrawal will be effective in order to apply changes caused by the Brexit.' mod='colissimo'}</p>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>
{l s='Enable Brexit' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg colissimo-enable-brexit">
<input type="radio"
value="1"
name="COLISSIMO_ENABLE_BREXIT"
id="COLISSIMO_ENABLE_BREXIT_on"
{if $form_data['COLISSIMO_ENABLE_BREXIT']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_BREXIT_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_ENABLE_BREXIT"
id="COLISSIMO_ENABLE_BREXIT_off"
{if !$form_data['COLISSIMO_ENABLE_BREXIT']|intval}checked="checked"{/if}>
<label for="COLISSIMO_ENABLE_BREXIT_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoEnableBrexit">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
<div class="panel">
<div class="panel-heading">
{l s='Pick-up service' mod='colissimo'}
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 ">
<span class="label-tooltip"
data-toggle="tooltip"
data-html="true"
data-original-title="{l s='Choosing "Yes" (default option) will give you access to the latest features of the Widget.' mod='colissimo'}<br />{l s='Choose "No" if you experience any problems with the display of the Widget (conflict with other modules or theme). The module will use local files that you will be able to override if needed.' mod='colissimo'}">
{l s='Use default Colissimo widget' mod='colissimo'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg ">
<input type="radio"
value="1"
name="COLISSIMO_WIDGET_REMOTE"
id="COLISSIMO_WIDGET_REMOTE_on"
{if $form_data['COLISSIMO_LOGS']|intval}checked="checked"{/if}>
<label for="COLISSIMO_WIDGET_REMOTE_on">{l s='Yes' mod='colissimo'}</label>
<input type="radio"
value="0"
name="COLISSIMO_WIDGET_REMOTE"
id="COLISSIMO_WIDGET_REMOTE_off"
{if !$form_data['COLISSIMO_WIDGET_REMOTE']|intval}checked="checked"{/if}>
<label for="COLISSIMO_WIDGET_REMOTE_off">{l s='No' mod='colissimo'}</label>
<a class="slide-button btn"></a>
</span>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Do not forget to empty PrestaShop cache if you change this option' mod='colissimo'}
<span></span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Webservice URL' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<input value="{$form_data['COLISSIMO_WIDGET_ENDPOINT']|escape:'htmlall':'UTF-8'}"
type="text"
name="COLISSIMO_WIDGET_ENDPOINT"
class="input fixed-width-xxl"
required="required">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<a class="btn btn-primary col-lg-offset-3" id="colissimo-check-widget">
<i class="icon icon-check"></i> {l s='Check availability' mod='colissimo'}
</a>
<hr/>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<p class="colissimo-subtitle">{l s='Display preferences' mod='colissimo'}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Address fields color' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-lg">
<input type="color"
data-hex="true"
class="color mColorPickerInput"
name="COLISSIMO_WIDGET_COLOR_2"
value="{$form_data['COLISSIMO_WIDGET_COLOR_2']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Sections hightlighted in orange in the example below' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span>{l s='Pickup list color' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-lg">
<input type="color"
data-hex="true"
class="color mColorPickerInput"
name="COLISSIMO_WIDGET_COLOR_1"
value="{$form_data['COLISSIMO_WIDGET_COLOR_1']|escape:'htmlall':'UTF-8'}">
</div>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div x-ms-format-detection="none" class="help-block">
{l s='Sections hightlighted in grey in the example below' mod='colissimo'}
<span></span>
</div>
</div>
</div>
<div class="form-group"><label class="control-label col-lg-3 ">
<span>{l s='Text font' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<select name="COLISSIMO_WIDGET_FONT" class=" fixed-width-xxl">
{foreach $widget_fonts as $id => $font}
<option {if $id == $form_data['COLISSIMO_WIDGET_FONT']|escape:'htmlall':'UTF-8'}selected="selected"{/if}
value="{$id|intval}">
{$font|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
<div class="col-lg-9 col-lg-offset-3"></div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 ">
<span>{l s='Display example' mod='colissimo'}</span>
</label>
<div class="col-lg-9">
<img src="{$data['img_path']|escape:'htmlall':'UTF-8'}colissimo_widget.png"/>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default pull-right" name="submitColissimoWidgetConfigForm">
<i class="process-icon-save"></i> {l s='Save' mod='colissimo'}
</button>
</div>
</div>
</form>
{literal}
<script type="text/javascript">
var genericErrorMessage = "{/literal}{l s='Webservice connexion could not be checked' mod='colissimo'}{literal}";
var colissimoCredentialsToken = '{/literal}{getAdminToken tab='AdminColissimoTestCredentials'}{literal}';
$(document).ready(function () {
$(document).on('click', '#colissimo-check-widget', function () {
var checkWidget = $('#colissimo-check-widget');
testWidgetCredentials(checkWidget);
});
});
</script>
{/literal}

View File

@@ -0,0 +1,69 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="row colissimo-background">
<div class="col-lg-12 col-md-12">
<h1>{l s='Colissimo Official' mod='colissimo'}</h1>
<p class="text-intro">
{l s='Offer your customers the services of Colissimo France\'s No. 1 home delivery service.' mod='colissimo'}<br/>
{l s='La Poste Group\'s parcel delivery operator, Colissimo helps you in managing your shipments in France and abroad.' mod='colissimo'}
</p>
<p class="colissimo-link">
<a href="{$colissimo_links.delivery_details|escape:'htmlall':'UTF-8'}"
target="_blank">
{l s='More details on our delivery solutions ' mod='colissimo'}
</a>
</p>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-1.png"/>
<p class="step-title">{l s='A contract is required to use this module' mod='colissimo'}</p>
<p class="step-text">{l s='This module works for clients under "Facilité" & "Privilège" contract.' mod='colissimo'}</p>
</div>
<a href="{$colissimo_links.subscribe|escape:'htmlall':'UTF-8'}"
class="btn colissimo-btn">
{l s='Subscribe to Colissimo' mod='colissimo'}
</a>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-2.png"/>
<p class="step-title">{l s='Synchronize your store with Colissimo services by logging on the following page' mod='colissimo'}</p>
</div>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-3.png"/>
<p class="step-title">{l s='Set up and customize your PUDO display' mod='colissimo'}</p>
<p class="step-text">{l s='This module works for clients under "Facilité" & "Privilège" contract.' mod='colissimo'}</p>
</div>
<div class="colissimo-step">
<img src="{$colissimo_img_path|escape:'htmlall':'UTF-8'}intro/colissimo-4.png"/>
<p class="step-title">{l s='Save time in your order management' mod='colissimo'}</p>
<ul>
<li>{l s='Edit labels from your merchant back office' mod='colissimo'}</li>
<li>{l s='Export your orders in Coliship' mod='colissimo'}</li>
<li>{l s='Ready-to-print customs documents for your internal shipments' mod='colissimo'}</li>
<li>{l s='Enable Colissimo return label service' mod='colissimo'}</li>
<li>{l s='Edit your deposit slip' mod='colissimo'}</li>
</ul>
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,72 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="colissimo-migration">
<ps-panel>
<div class="row">
<p class="colissimo-migration-title">{l s='Migration from other Colissimo modules' mod='colissimo'}</p>
<div id="colissimo-migration-content">
<div class="colissimo-migration-step1">
<div class="alert alert-warning">
{l s='Before starting a migration, make sure your Colissimo contract allows you to use webservices. If in doubt, please contact your Colissimo sales representative.' mod='colissimo'}<br/>
{l s='Modules listed below and their associated carriers will simply be disabled.' mod='colissimo'}<br/>
{l s='Afterwards, you should check carriers prices, module configuration and set your account type(s) into "My Colissimo Account" tab.' mod='colissimo'}<br/>
</div>
<p class="colissimo-maintenance">
<strong>
<i class="icon icon-warning-sign"></i>
{l s='We strongly advise you to turn the maintenance mode on.' mod='colissimo'}
</strong>
</p>
<p>{l s='We noticed you currently have the following Colissimo module(s) installed and enabled:' mod='colissimo'}</p>
<ul>
{foreach $modules_to_migrate as $module_to_migrate}
<li>{$module_to_migrate|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ul>
<p class="colissimo-migration-question">
<strong>{l s='Do you want to migrate data such as module configuration, carrier pricing, labels?' mod='colissimo'}</strong>
</p>
<button class="btn btn-danger" data-migrate="0">
<i class="process-icon- icon-times"></i>
{l s='No, I will configure the module myself' mod='colissimo'}
</button>
<button class="btn btn-primary" data-migrate="1">
<i class="process-icon- icon-check"></i>
{l s='Yes, migrate the modules now' mod='colissimo'}
</button>
</div>
</div>
</div>
</ps-panel>
</div>
{literal}
<script type="text/javascript">
var genericMigrationErrorMessage = "{/literal}{l s='A problem occur while migrating from other module.' mod='colissimo'}{literal}";
var modulesToMigrate = {/literal}{$modules_to_migrate|json_encode}{literal};
var colissimoTokenMigration = '{/literal}{getAdminToken tab='AdminColissimoMigration'}{literal}';
</script>
{/literal}

View File

@@ -0,0 +1,53 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="colissimo-migration-step2">
<p class="migration-intro">
{l s='Please wait modules data are migrating...' mod='colissimo'}
</p>
<ul class="steps">
<li class="step-credentials">
<i class="icon icon-check"></i>
{l s='Retrieving credentials' mod='colissimo'}
</li>
<li class="step-carriers">
<i class="icon icon-check"></i>
{l s='Retrieving carriers pricing' mod='colissimo'}
</li>
<li class="step-configuration">
<i class="icon icon-check"></i>
{l s='Updating configuration' mod='colissimo'}
</li>
<li class="step-data">
<i class="icon icon-check"></i>
{l s='Updating existing data' mod='colissimo'}
</li>
<li class="step-documents">
<i class="icon icon-check"></i>
{l s='Copying shipments documents' mod='colissimo'}
</li>
</ul>
<div id="colissimo-migration-result"></div>
</div>

View File

@@ -0,0 +1,32 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-success">
<p>{l s='The migration of the module(s) is completed. You can now finish configuring the module and verify settings.' mod='colissimo'}</p>
<a href="{$link->getAdminLink('AdminModules')|escape:'htmlall':'UTF-8'}&configure=colissimo" class="btn btn-primary">
<i class="icon icon-cogs"></i>
{l s='Configuration' mod='colissimo'}
</a>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,36 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p class="item">{l s='Front Widget' mod='colissimo'}</p>
<p>
{l s='If you experience any problems with the display of the widget, you can now chose to use files embedded locally.' mod='colissimo'}<br/>
{l s='You will also be able to override CSS and JS files locally at your convenience.' mod='colissimo'}<br/>
{l s='This option can be changed in the Front-Office tab.' mod='colissimo'}
</p>
<p class="item">{l s='Customs declarations' mod='colissimo'}</p>
<p>
{l s='You can now configure your EORI (Economic Operator Registration and Identification) number.' mod='colissimo'}<br/>
{l s='Go to the Back-Office tab, and fill your number in the "International Shipments" section.' mod='colissimo'}
</p>

View File

@@ -0,0 +1,46 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p class="item">{l s='Order association & Change of Colissimo service' mod='colissimo'}</p>
<p>
{l s='From an order page, you can now associate an order placed with another carrier to the module.' mod='colissimo'}<br/>
{l s='You will be able to select the Colissimo service (with or without proof of delivery, pickup points) during the association.' mod='colissimo'}<br/>
{l s='When generating your labels, a new button will allow you to change the service with which you want to ship the order.' mod='colissimo'}
</p>
<p class="item">{l s='New status after label and deposit slip generation' mod='colissimo'}</p>
<p>
{l s='Two new statuses are available: "Shipping in progress" and "Handled by carrier".' mod='colissimo'}<br/>
{l s='From the module configuration, you can choose weither or not you want to update the order statuses after label and deposit slip generation.' mod='colissimo'}
</p>
<p class="item">{l s='Deleting labels' mod='colissimo'}</p>
<p>
{l s='Inside the dashboard and inside every order page, a new button to delete labels is displayed next to the shipment numbers.' mod='colissimo'}<br/>
{l s='Please note that deleting a label will also delete the associated return label and custom documents like CN23.' mod='colissimo'}
<img class="img img-responsive" src="{$data.img_path|escape:'htmlall':'UTF-8'}whatsnew/1-1-0-delete-label.png" />
</p>
<p class="item">{l s='Display of shipment insurance' mod='colissimo'}</p>
<p>
{l s='Inside the dashboard and inside every order page, an information about the insurance of shipments is now displayed.' mod='colissimo'}<br/>
</p>

View File

@@ -0,0 +1,58 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p class="item">{l s='Brexit update' mod='colissimo'}</p>
<p>
<img class="img img-responsive img-flag-uk" src="{$data.img_path|escape:'htmlall':'UTF-8'}icons/icon_uk.png" />
{l s='As you probably know, the coming withdrawal of the United Kingdom from the European Union will impact deliveries to the UK.' mod='colissimo'}<br/>
{l s='The timeline of the Brexit being still uncertain, in order to anticipate it, the module has now a Brexit "mode" that can be enabled when the withdrawal will become effective.' mod='colissimo'}<br/>
{l s='Please note the following changes regarding the Brexit:' mod='colissimo'}<br />
</p>
<ul>
<li>{l s='Pickup point delivery option in UK won\'t be offered anymore' mod='colissimo'}</li>
<li>{l s='The CN23 document will become mandatory' mod='colissimo'}</li>
</ul>
<p class="item">{l s='New Timeline to track shipments' mod='colissimo'}</p>
<p>
{l s='A brand new tracking page is now offered to your customers.' mod='colissimo'}<br/>
{l s='The design of the page is closer to the one on laposte.fr and display a clear and understandable timeline in 5 steps.' mod='colissimo'}<br/>
<img class="img img-responsive img-timeline" src="{$data.img_path|escape:'htmlall':'UTF-8'}whatsnew/1-2-0-timeline.png" />
</p>
<p class="item">{l s='HS Code, short description and origin country per product & category' mod='colissimo'}</p>
<p>
{l s='The module allows you to configure customs informations at a product level and at a category level, in addition to the existing module level.' mod='colissimo'}<br/>
{l s='For example, for a given product, HS code is taken in priority at the product level. In case the information is not filled, HS code is taken at the category of the product level.' mod='colissimo'}<br/>
{l s='Finally, if the information is also not filled, the value setted in the configuration of the module will be used.' mod='colissimo'}<br/>
</p>
<p class="item">{l s='Ship orders from Overseas departments' mod='colissimo'}</p>
<p>
{l s='You can ship your orders from Guadeloupe, French Guiana, Martinique, Reunion, Mayotte, Saint Pierre and Miquelon, Saint Martin or Saint Barthelemy.' mod='colissimo'}<br/>
{l s='Shipping address can be configured in the "My account" tab.' mod='colissimo'}
</p>
<p class="item">{l s='Address for return shipments' mod='colissimo'}</p>
<p>
{l s='A different address can be used to receive return shipments from the customers.' mod='colissimo'}<br/>
{l s='The adress is optional and can be also configured in the "My account" tab.' mod='colissimo'}
</p>

View File

@@ -0,0 +1,54 @@
{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="modal-body">
<h1>Colissimo v1.4.0</h1>
<h2>{l s='Print labels using thermal printer' mod='colissimo'}</h2>
<p>{l s='If you have a thermal printer, you can now using it to print labels with ZPL or DPL format.' mod='colissimo'}</p>
<p>{l s='To do so, you need to configure how the printer is connected to your network or you machine beforehand.' mod='colissimo'}</p>
<p>{l s='In the module configuration:' mod='colissimo'}</p>
<ul>
<li>{l s='Switch to "Yes", the option "Use a thermal printer"' mod='colissimo'}</li>
<li>{l s='Select a label format compatible with your printer' mod='colissimo'}</li>
<li>{l s='Choose if your printer is using the Ethernet or the USB port' mod='colissimo'}</li>
<ul>
<li>{l s='With a USB port, you need to select a protocole (DATAMAX, INTERMEC OR ZEBRA)' mod='colissimo'}</li>
<li>{l s='With a Ethernet port, you need to fill the local IP address of the printer' mod='colissimo'}</li>
</ul>
</ul>
<p><i>{l s='Please refer to the user manual of the thermal printer if you have trouble configuring these options' mod='colissimo'}</i></p>
<h3>{l s='Important' mod='colissimo'}</h3>
<p>{l s='In order to print labels using thermal printers, you need to install a lightweight program "PrintColissimo" (Windows only).' mod='colissimo'}</p>
<p>{l s='This program is downloadable in your La Poste / Colissimo Box account.' mod='colissimo'}</p>
<p>{l s='To make sure that this program is installed and works properly, navigate to this url: http://localhost:8000' mod='colissimo'}</p>
<p>
{l s='You shoud see the following message:' mod='colissimo'}
Solution d'impression Web - thermique et PDF
</p>
<h2>{l s='Order page is PrestaShop 1.7.7 ready!' mod='colissimo'}</h2>
<p>{l s='The module is already compatible with the coming minor version of PrestaShop.' mod='colissimo'}</p>
<p>{l s='You won\'t need to do anything in case you upgrade the software.' mod='colissimo'}</p>
</div>